diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-02-26 22:58:10 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-02-26 22:58:10 +0000 |
commit | 4ae4e2307d114d422e46bdff319a85f2d22834b2 (patch) | |
tree | 6092dfe232e5561f521bd09260a06c6033f86a75 /firmware | |
parent | 73639e8e2e7d5fef3b9c6305f2de74c20a282d4b (diff) |
Ingenic Jz4740 RTC: actually write date to RTC
Touchscreen DAPs: add timescreen keymap
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20122 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/rtc/rtc_jz4740.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/rtc/rtc_jz4740.c b/firmware/drivers/rtc/rtc_jz4740.c index da39b3faf7..61ee0e0c7b 100644 --- a/firmware/drivers/rtc/rtc_jz4740.c +++ b/firmware/drivers/rtc/rtc_jz4740.c @@ -162,7 +162,9 @@ int rtc_write_datetime(unsigned char* buf) lval = jz_mktime(year, rtc_tm->tm_mon, rtc_tm->tm_mday, rtc_tm->tm_hour, rtc_tm->tm_min, rtc_tm->tm_sec); + __cpm_start_rtc(); REG_RTC_RSR = lval; + __cpm_stop_rtc(); return 0; } |