summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-16 22:49:58 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-16 22:49:58 +0000
commit360d3d720b87f2029c399a468294838a71181f64 (patch)
treefec2a00b06d17c4fe8395757ab3df8399abf0972 /firmware/target/mips/ingenic_jz47xx/system-jz4740.c
parent67a5c56103f5f57d778be90a6babdf5726295bfd (diff)
downloadrockbox-360d3d720b87f2029c399a468294838a71181f64.tar.gz
rockbox-360d3d720b87f2029c399a468294838a71181f64.tar.bz2
rockbox-360d3d720b87f2029c399a468294838a71181f64.zip
Onda VX747:
* Rework battery reading * Get power off back working * Add time to debug view * Convert TABs to spaces in firmware/export/mips*.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20024 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/system-jz4740.c')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/system-jz4740.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
index e37f17c73f..c029dd46bb 100644
--- a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
@@ -509,6 +509,9 @@ void system_exception_wait(void)
void power_off(void)
{
+ /* Enable RTC clock */
+ __cpm_start_rtc();
+
/* Put system into hibernate mode */
__rtc_clear_alarm_flag();
__rtc_clear_hib_stat_all();