Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/rtc/
Drtc-ftrtc010.c32 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 …]
Drtc-lpc32xx.c43 __raw_readl((dev)->rtc_base + (reg))
45 __raw_writel((val), (dev)->rtc_base + (reg))
48 void __iomem *rtc_base; member
198 rtc->rtc_base = devm_ioremap_resource(&pdev->dev, res); in lpc32xx_rtc_probe()
199 if (IS_ERR(rtc->rtc_base)) in lpc32xx_rtc_probe()
200 return PTR_ERR(rtc->rtc_base); in lpc32xx_rtc_probe()
Drtc-lpc24xx.c59 #define rtc_readl(dev, reg) readl((dev)->rtc_base + (reg))
60 #define rtc_writel(dev, reg, val) writel((val), (dev)->rtc_base + (reg))
63 void __iomem *rtc_base; member
205 rtc->rtc_base = devm_ioremap_resource(&pdev->dev, res); in lpc24xx_rtc_probe()
206 if (IS_ERR(rtc->rtc_base)) in lpc24xx_rtc_probe()
207 return PTR_ERR(rtc->rtc_base); in lpc24xx_rtc_probe()
Drtc-sirfsoc.c45 u32 rtc_base; member
62 regmap_read(rtcdrv->regmap, rtcdrv->rtc_base + offset, &val); in sirfsoc_rtc_readl()
69 regmap_write(rtcdrv->regmap, rtcdrv->rtc_base + offset, val); in sirfsoc_rtc_writel()
303 err = of_property_read_u32(np, "reg", &rtcdrv->rtc_base); in sirfsoc_rtc_probe()
/Linux-v5.4/arch/mips/generic/
Dboard-ranchu.c39 void __iomem *rtc_base; in ranchu_measure_hpt_freq() local
46 rtc_base = of_iomap(np, 0); in ranchu_measure_hpt_freq()
47 if (!rtc_base) in ranchu_measure_hpt_freq()
54 rtc_start = read_rtc_time(rtc_base); in ranchu_measure_hpt_freq()
58 rtc_current = read_rtc_time(rtc_base); in ranchu_measure_hpt_freq()
74 iounmap(rtc_base); in ranchu_measure_hpt_freq()
/Linux-v5.4/arch/mips/emma/markeins/
Dsetup.c50 static unsigned int __init detect_bus_frequency(unsigned long rtc_base) in detect_bus_frequency() argument