Searched refs:ctl2 (Results 1 – 1 of 1) sorted by relevance
84 uchar sec, min, hour, mday, wday, mon, year, ctl2; in rtc_get() local103 ctl2 = rtc_read(RTC_CTL2_REG_ADDR); in rtc_get()104 if (ctl2 & RTC_CTL2_BIT_PON) { in rtc_get()109 if (ctl2 & RTC_CTL2_BIT_VDET) { in rtc_get()114 if (!(ctl2 & RTC_CTL2_BIT_XST)) { in rtc_get()172 uchar ctl2; in rtc_reset() local177 ctl2 = rtc_read(RTC_CTL2_REG_ADDR); in rtc_reset()178 ctl2 &= ~(RTC_CTL2_BIT_PON | RTC_CTL2_BIT_VDET); in rtc_reset()179 ctl2 |= RTC_CTL2_BIT_XST | RTC_CTL2_BIT_VDSL; in rtc_reset()180 rtc_write (RTC_CTL2_REG_ADDR, ctl2); in rtc_reset()