Ingenic Jz4740: add a delay between enabling the RTC clock and setting the RTC time

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20862 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2009-05-06 19:45:33 +00:00
parent b5886beb81
commit 84ea3f2530

View file

@ -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();
udelay(100);
REG_RTC_RSR = lval;
__cpm_stop_rtc();