Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/rtc/
Drtc-nuc900.c49 void __iomem *rtc_reg; member
67 rtc_irq = __raw_readl(rtc->rtc_reg + REG_RTC_RIIR); in nuc900_rtc_interrupt()
71 __raw_writel(rtc_irq, rtc->rtc_reg + REG_RTC_RIIR); in nuc900_rtc_interrupt()
77 __raw_writel(rtc_irq, rtc->rtc_reg + REG_RTC_RIIR); in nuc900_rtc_interrupt()
89 __raw_writel(INIRRESET, nuc900_rtc->rtc_reg + REG_RTC_INIR); in check_rtc_access_enable()
93 __raw_writel(AERPOWERON, nuc900_rtc->rtc_reg + REG_RTC_AER); in check_rtc_access_enable()
95 while (!(__raw_readl(nuc900_rtc->rtc_reg + REG_RTC_AER) & AERRWENB) in check_rtc_access_enable()
140 __raw_writel(__raw_readl(rtc->rtc_reg + REG_RTC_RIER)| in nuc900_alarm_irq_enable()
141 (ALARMINTENB), rtc->rtc_reg + REG_RTC_RIER); in nuc900_alarm_irq_enable()
143 __raw_writel(__raw_readl(rtc->rtc_reg + REG_RTC_RIER)& in nuc900_alarm_irq_enable()
[all …]
Drtc-mv.c53 u32 rtc_reg; in mv_rtc_set_time() local
55 rtc_reg = (bin2bcd(tm->tm_sec) << RTC_SECONDS_OFFS) | in mv_rtc_set_time()
59 writel(rtc_reg, ioaddr + RTC_TIME_REG_OFFS); in mv_rtc_set_time()
61 rtc_reg = (bin2bcd(tm->tm_mday) << RTC_MDAY_OFFS) | in mv_rtc_set_time()
64 writel(rtc_reg, ioaddr + RTC_DATE_REG_OFFS); in mv_rtc_set_time()
141 u32 rtc_reg = 0; in mv_rtc_set_alarm() local
144 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_sec)) in mv_rtc_set_alarm()
147 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_min)) in mv_rtc_set_alarm()
150 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_hour)) in mv_rtc_set_alarm()
153 writel(rtc_reg, ioaddr + RTC_ALARM_TIME_REG_OFFS); in mv_rtc_set_alarm()
[all …]
Drtc-tps65910.c339 u32 rtc_reg; in tps65910_rtc_interrupt() local
341 ret = regmap_read(tps->regmap, TPS65910_RTC_STATUS, &rtc_reg); in tps65910_rtc_interrupt()
345 if (rtc_reg & TPS65910_RTC_STATUS_ALARM) in tps65910_rtc_interrupt()
348 ret = regmap_write(tps->regmap, TPS65910_RTC_STATUS, rtc_reg); in tps65910_rtc_interrupt()
374 u32 rtc_reg; in tps65910_rtc_probe() local
388 ret = regmap_read(tps65910->regmap, TPS65910_RTC_STATUS, &rtc_reg); in tps65910_rtc_probe()
392 ret = regmap_write(tps65910->regmap, TPS65910_RTC_STATUS, rtc_reg); in tps65910_rtc_probe()
404 rtc_reg = TPS65910_RTC_CTRL_STOP_RTC; in tps65910_rtc_probe()
405 ret = regmap_write(tps65910->regmap, TPS65910_RTC_CTRL, rtc_reg); in tps65910_rtc_probe()
Drtc-rc5t583.c185 u32 rtc_reg; in rc5t583_rtc_interrupt() local
187 ret = regmap_read(rc5t583->regmap, RC5T583_RTC_CTL2, &rtc_reg); in rc5t583_rtc_interrupt()
191 if (rtc_reg & GET_YAL_STATUS) { in rc5t583_rtc_interrupt()
194 rtc_reg &= ~GET_YAL_STATUS; in rc5t583_rtc_interrupt()
197 ret = regmap_write(rc5t583->regmap, RC5T583_RTC_CTL2, rtc_reg); in rc5t583_rtc_interrupt()
Drtc-armada38x.c93 u32 (*read_rtc_reg)(struct armada38x_rtc *rtc, u8 rtc_reg);
147 static u32 read_rtc_register(struct armada38x_rtc *rtc, u8 rtc_reg) in read_rtc_register() argument
149 return readl(rtc->regs + rtc_reg); in read_rtc_register()
152 static u32 read_rtc_register_38x_wa(struct armada38x_rtc *rtc, u8 rtc_reg) in read_rtc_register_38x_wa() argument
157 rtc->val_to_freq[i].value = readl(rtc->regs + rtc_reg); in read_rtc_register_38x_wa()
Drtc-palmas.c193 unsigned int rtc_reg; in palmas_clear_interrupts() local
197 &rtc_reg); in palmas_clear_interrupts()
204 rtc_reg); in palmas_clear_interrupts()