Searched refs:RTC_READ4 (Results 1 – 1 of 1) sorted by relevance
51 #define RTC_READ4(_sc, reg) \ macro112 rev = RTC_READ4(sc, RTC_REVISION); in am335x_rtc_attach()160 while (--timeout && RTC_READ4(rtc_sc, RTC_STATUS) & RTC_STATUS_RUN) in am335x_rtc_pmic_pwr_toggle()169 ct.sec = FROMBCD(RTC_READ4(rtc_sc, RTC_SECONDS) & 0x7f); in am335x_rtc_pmic_pwr_toggle()170 ct.min = FROMBCD(RTC_READ4(rtc_sc, RTC_MINUTES) & 0x7f); in am335x_rtc_pmic_pwr_toggle()171 ct.hour = FROMBCD(RTC_READ4(rtc_sc, RTC_HOURS) & 0x3f); in am335x_rtc_pmic_pwr_toggle()172 ct.day = FROMBCD(RTC_READ4(rtc_sc, RTC_DAYS) & 0x3f); in am335x_rtc_pmic_pwr_toggle()173 ct.mon = FROMBCD(RTC_READ4(rtc_sc, RTC_MONTHS) & 0x1f); in am335x_rtc_pmic_pwr_toggle()174 ct.year = FROMBCD(RTC_READ4(rtc_sc, RTC_YEARS) & 0xff); in am335x_rtc_pmic_pwr_toggle()