Searched refs:BQ4802_DATA_REG (Results 1 – 2 of 2) sorted by relevance
105 BQ4802_DATA_REG(RTC_CNTRL) = (RTC_HM | RTC_STOP_N); in _init()108 (void) BQ4802_DATA_REG(RTC_FLAGS); in _init()219 reg_cntrl = BQ4802_DATA_REG(RTC_CNTRL); in read_rtc()220 BQ4802_DATA_REG(RTC_CNTRL) = (reg_cntrl | RTC_UTI); in read_rtc()222 rtc->rtc_sec = BCD_TO_BYTE(BQ4802_DATA_REG(RTC_SEC)); in read_rtc()223 rtc->rtc_asec = BCD_TO_BYTE(BQ4802_DATA_REG(RTC_ASEC)); in read_rtc()224 rtc->rtc_min = BCD_TO_BYTE(BQ4802_DATA_REG(RTC_MIN)); in read_rtc()225 rtc->rtc_amin = BCD_TO_BYTE(BQ4802_DATA_REG(RTC_AMIN)); in read_rtc()226 rtc->rtc_hrs = BCD_TO_BYTE(BQ4802_DATA_REG(RTC_HRS)); in read_rtc()227 rtc->rtc_ahrs = BCD_TO_BYTE(BQ4802_DATA_REG(RTC_AHRS)); in read_rtc()[all …]
45 #define BQ4802_DATA_REG(x) (*(volatile uint8_t *)(v_rtc_addr_reg + x)) macro