Searched refs:rtc_base (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/drivers/rtc/ |
D | rtc-msc313.c | 47 void __iomem *rtc_base; member 55 seconds = readw(priv->rtc_base + REG_RTC_MATCH_VAL_L) in msc313_rtc_read_alarm() 56 | ((unsigned long)readw(priv->rtc_base + REG_RTC_MATCH_VAL_H) << 16); in msc313_rtc_read_alarm() 60 if (!(readw(priv->rtc_base + REG_RTC_CTRL) & INT_MASK_BIT)) in msc313_rtc_read_alarm() 71 reg = readw(priv->rtc_base + REG_RTC_CTRL); in msc313_rtc_alarm_irq_enable() 76 writew(reg, priv->rtc_base + REG_RTC_CTRL); in msc313_rtc_alarm_irq_enable() 86 writew((seconds & 0xFFFF), priv->rtc_base + REG_RTC_MATCH_VAL_L); in msc313_rtc_set_alarm() 87 writew((seconds >> 16) & 0xFFFF, priv->rtc_base + REG_RTC_MATCH_VAL_H); in msc313_rtc_set_alarm() 96 return readw(priv->rtc_base + REG_RTC_CTRL) & CNT_EN_BIT; in msc313_rtc_get_enabled() 103 reg = readw(priv->rtc_base + REG_RTC_CTRL); in msc313_rtc_set_enabled() [all …]
|
D | rtc-ftrtc010.c | 32 void __iomem *rtc_base; member 71 sec = readl(rtc->rtc_base + FTRTC010_RTC_SECOND); in ftrtc010_rtc_read_time() 72 min = readl(rtc->rtc_base + FTRTC010_RTC_MINUTE); in ftrtc010_rtc_read_time() 73 hour = readl(rtc->rtc_base + FTRTC010_RTC_HOUR); in ftrtc010_rtc_read_time() 74 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_read_time() 75 offset = readl(rtc->rtc_base + FTRTC010_RTC_RECORD); in ftrtc010_rtc_read_time() 92 sec = readl(rtc->rtc_base + FTRTC010_RTC_SECOND); in ftrtc010_rtc_set_time() 93 min = readl(rtc->rtc_base + FTRTC010_RTC_MINUTE); in ftrtc010_rtc_set_time() 94 hour = readl(rtc->rtc_base + FTRTC010_RTC_HOUR); in ftrtc010_rtc_set_time() 95 day = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_set_time() [all …]
|
D | rtc-lpc32xx.c | 43 __raw_readl((dev)->rtc_base + (reg)) 45 __raw_writel((val), (dev)->rtc_base + (reg)) 48 void __iomem *rtc_base; member 196 rtc->rtc_base = devm_platform_ioremap_resource(pdev, 0); in lpc32xx_rtc_probe() 197 if (IS_ERR(rtc->rtc_base)) in lpc32xx_rtc_probe() 198 return PTR_ERR(rtc->rtc_base); in lpc32xx_rtc_probe()
|
D | rtc-lpc24xx.c | 58 #define rtc_readl(dev, reg) readl((dev)->rtc_base + (reg)) 59 #define rtc_writel(dev, reg, val) writel((val), (dev)->rtc_base + (reg)) 62 void __iomem *rtc_base; member 202 rtc->rtc_base = devm_platform_ioremap_resource(pdev, 0); in lpc24xx_rtc_probe() 203 if (IS_ERR(rtc->rtc_base)) in lpc24xx_rtc_probe() 204 return PTR_ERR(rtc->rtc_base); in lpc24xx_rtc_probe()
|
D | rtc-ti-k3.c | 557 void __iomem *rtc_base; in ti_k3_rtc_probe() local 564 rtc_base = devm_platform_ioremap_resource(pdev, 0); in ti_k3_rtc_probe() 565 if (IS_ERR(rtc_base)) in ti_k3_rtc_probe() 566 return PTR_ERR(rtc_base); in ti_k3_rtc_probe() 568 priv->regmap = devm_regmap_init_mmio(dev, rtc_base, &ti_k3_rtc_regmap_config); in ti_k3_rtc_probe()
|
/linux-6.6.21/arch/mips/generic/ |
D | board-ranchu.c | 39 void __iomem *rtc_base; in ranchu_measure_hpt_freq() local 46 rtc_base = of_iomap(np, 0); in ranchu_measure_hpt_freq() 48 if (!rtc_base) in ranchu_measure_hpt_freq() 55 rtc_start = read_rtc_time(rtc_base); in ranchu_measure_hpt_freq() 59 rtc_current = read_rtc_time(rtc_base); in ranchu_measure_hpt_freq() 75 iounmap(rtc_base); in ranchu_measure_hpt_freq()
|