Searched refs:ctl2 (Results 1 – 1 of 1) sorted by relevance
83 uchar sec, min, hour, mday, wday, mon, year, ctl2; in rtc_get() local102 ctl2 = rtc_read(RTC_CTL2_REG_ADDR); in rtc_get()103 if (ctl2 & RTC_CTL2_BIT_PON) { in rtc_get()108 if (ctl2 & RTC_CTL2_BIT_VDET) { in rtc_get()113 if (!(ctl2 & RTC_CTL2_BIT_XST)) { in rtc_get()170 uchar ctl2; in rtc_reset() local175 ctl2 = rtc_read(RTC_CTL2_REG_ADDR); in rtc_reset()176 ctl2 &= ~(RTC_CTL2_BIT_PON | RTC_CTL2_BIT_VDET); in rtc_reset()177 ctl2 |= RTC_CTL2_BIT_XST | RTC_CTL2_BIT_VDSL; in rtc_reset()178 rtc_write (RTC_CTL2_REG_ADDR, ctl2); in rtc_reset()