Searched refs:prer (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/rtc/ |
H A D | rtc-stm32.c | 104 u16 prer; member 561 .prer = 0x10, 583 .prer = 0x10, 614 .prer = 0x10, 639 unsigned int prer, pred_a, pred_s, pred_a_max, pred_s_max, cr; in stm32_rtc_init() local 685 prer = readl_relaxed(rtc->base + regs->prer); in stm32_rtc_init() 686 prer &= STM32_RTC_PRER_PRED_S | STM32_RTC_PRER_PRED_A; in stm32_rtc_init() 694 if ((cr & STM32_RTC_CR_FMT) == 0 && prer == (pred_s | pred_a)) in stm32_rtc_init() 706 writel_relaxed(pred_s, rtc->base + regs->prer); in stm32_rtc_init() 707 writel_relaxed(pred_a | pred_s, rtc->base + regs->prer); in stm32_rtc_init()
|