Home
last modified time | relevance | path

Searched refs:rycr (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/rtc/
H A Drtc-pxa.c98 static void tm_calc(u32 rycr, u32 rdcr, struct rtc_time *tm) in tm_calc() argument
100 tm->tm_year = ((rycr & RYxR_YEAR_MASK) >> RYxR_YEAR_S) - 1900; in tm_calc()
101 tm->tm_mon = (((rycr & RYxR_MONTH_MASK) >> RYxR_MONTH_S)) - 1; in tm_calc()
102 tm->tm_mday = (rycr & RYxR_DAY_MASK); in tm_calc()
103 tm->tm_wday = ((rycr & RDxR_DOW_MASK) >> RDxR_DOW_S) - 1; in tm_calc()
223 u32 rycr, rdcr; in pxa_rtc_read_time() local
225 rycr = rtc_readl(pxa_rtc, RYCR); in pxa_rtc_read_time()
228 tm_calc(rycr, rdcr, tm); in pxa_rtc_read_time()