Lines Matching refs:rtc_base
86 static unsigned int __init detect_bus_frequency(unsigned long rtc_base)
98 c= *(volatile unsigned char*)rtc_base;
99 for(i=0; (c == *(volatile unsigned char*)rtc_base) && (i<100000000); i++);
100 if (c == *(volatile unsigned char*)rtc_base) {
105 c= *(volatile unsigned char*)rtc_base;
106 while (c == *(volatile unsigned char*)rtc_base);
111 c= *(volatile unsigned char*)rtc_base;
112 while (c == *(volatile unsigned char*)rtc_base);
126 unsigned long rtc_base;
132 rtc_base = KSEG1ADDR(DDB_LCS2_BASE);
134 rtc_base = KSEG1ADDR(DDB_LCS1_BASE);
136 rtc_ds1386_init(rtc_base);
140 bus_frequency = detect_bus_frequency(rtc_base);