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:
parent
ccf4ce98fd
commit
1f692e5f55
10 changed files with 408 additions and 222 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue