1
0
Fork 0
forked from len0rd/rockbox

1) Set svn:keywords where they should've been set

2) Onda VX747 specific changes


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18080 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2008-07-17 10:13:56 +00:00
parent ccf4ce98fd
commit 1f692e5f55
10 changed files with 408 additions and 222 deletions

View file

@ -293,15 +293,11 @@ int rtc_ioctl(unsigned int cmd,struct rtc_time *val,unsigned int epo)
}
#endif
#define udelay(x) for(i=0; i<x*100000; i++) asm("nop");
void rtc_init(void)
{
int i;
REG_RTC_RSR = 0;
while(!(REG_RTC_RCR & 0x80));
REG_RTC_RCR = 1;
REG_RTC_RCR = RTC_RCR_RTCE;
udelay(70);
while(!(REG_RTC_RCR & 0x80));
REG_RTC_RGR = 0x7fff;
while( !(REG_RTC_RCR & RTC_RCR_WRDY) );
REG_RTC_RGR = (0x7fff | RTC_RGR_LOCK);
udelay(70);
}