From 4ae4e2307d114d422e46bdff319a85f2d22834b2 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Thu, 26 Feb 2009 22:58:10 +0000 Subject: 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 --- firmware/drivers/rtc/rtc_jz4740.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware') 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; } -- cgit v1.2.3