diff options
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/system-jz4740.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c index c741d9f311..033b42214b 100644 --- a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c | |||
@@ -887,6 +887,16 @@ void system_reboot(void) | |||
887 | while (1); | 887 | while (1); |
888 | } | 888 | } |
889 | 889 | ||
890 | void system_exception_wait(void) | ||
891 | { | ||
892 | /* check for power button without including any .h file */ | ||
893 | while (1) | ||
894 | { | ||
895 | if( (~(*(volatile unsigned int *)(0xB0010300))) & (1 << 29) ) | ||
896 | break; | ||
897 | } | ||
898 | } | ||
899 | |||
890 | void power_off(void) | 900 | void power_off(void) |
891 | { | 901 | { |
892 | /* Put system into hibernate mode */ | 902 | /* Put system into hibernate mode */ |