Searched refs:rtc_base (Results 1 – 6 of 6) sorted by relevance
/drivers/rtc/ |
D | rtc-tegra.c | 62 void __iomem *rtc_base; /* NULL if not initialized. */ member 75 return readl(info->rtc_base + TEGRA_RTC_REG_BUSY) & 1; in tegra_rtc_check_busy() 119 msec = readl(info->rtc_base + TEGRA_RTC_REG_MILLI_SECONDS); in tegra_rtc_read_time() 120 sec = readl(info->rtc_base + TEGRA_RTC_REG_SHADOW_SECONDS); in tegra_rtc_read_time() 165 writel(sec, info->rtc_base + TEGRA_RTC_REG_SECONDS); in tegra_rtc_set_time() 168 readl(info->rtc_base + TEGRA_RTC_REG_SECONDS)); in tegra_rtc_set_time() 179 sec = readl(info->rtc_base + TEGRA_RTC_REG_SECONDS_ALARM0); in tegra_rtc_read_alarm() 196 tmp = readl(info->rtc_base + TEGRA_RTC_REG_INTR_STATUS); in tegra_rtc_read_alarm() 212 status = readl(info->rtc_base + TEGRA_RTC_REG_INTR_MASK); in tegra_rtc_alarm_irq_enable() 218 writel(status, info->rtc_base + TEGRA_RTC_REG_INTR_MASK); in tegra_rtc_alarm_irq_enable() [all …]
|
D | rtc-gemini.c | 40 void __iomem *rtc_base; member 77 sec = readl(rtc->rtc_base + GEMINI_RTC_SECOND); in gemini_rtc_read_time() 78 min = readl(rtc->rtc_base + GEMINI_RTC_MINUTE); in gemini_rtc_read_time() 79 hour = readl(rtc->rtc_base + GEMINI_RTC_HOUR); in gemini_rtc_read_time() 80 days = readl(rtc->rtc_base + GEMINI_RTC_DAYS); in gemini_rtc_read_time() 81 offset = readl(rtc->rtc_base + GEMINI_RTC_RECORD); in gemini_rtc_read_time() 101 sec = readl(rtc->rtc_base + GEMINI_RTC_SECOND); in gemini_rtc_set_time() 102 min = readl(rtc->rtc_base + GEMINI_RTC_MINUTE); in gemini_rtc_set_time() 103 hour = readl(rtc->rtc_base + GEMINI_RTC_HOUR); in gemini_rtc_set_time() 104 day = readl(rtc->rtc_base + GEMINI_RTC_DAYS); in gemini_rtc_set_time() [all …]
|
D | rtc-lpc32xx.c | 53 __raw_readl((dev)->rtc_base + (reg)) 55 __raw_writel((val), (dev)->rtc_base + (reg)) 58 void __iomem *rtc_base; member 220 rtc->rtc_base = devm_ioremap_resource(&pdev->dev, res); in lpc32xx_rtc_probe() 221 if (IS_ERR(rtc->rtc_base)) in lpc32xx_rtc_probe() 222 return PTR_ERR(rtc->rtc_base); in lpc32xx_rtc_probe()
|
D | rtc-lpc24xx.c | 64 #define rtc_readl(dev, reg) readl((dev)->rtc_base + (reg)) 65 #define rtc_writel(dev, reg, val) writel((val), (dev)->rtc_base + (reg)) 68 void __iomem *rtc_base; member 210 rtc->rtc_base = devm_ioremap_resource(&pdev->dev, res); in lpc24xx_rtc_probe() 211 if (IS_ERR(rtc->rtc_base)) in lpc24xx_rtc_probe() 212 return PTR_ERR(rtc->rtc_base); in lpc24xx_rtc_probe()
|
D | rtc-sirfsoc.c | 46 u32 rtc_base; member 63 regmap_read(rtcdrv->regmap, rtcdrv->rtc_base + offset, &val); in sirfsoc_rtc_readl() 70 regmap_write(rtcdrv->regmap, rtcdrv->rtc_base + offset, val); in sirfsoc_rtc_writel() 322 err = of_property_read_u32(np, "reg", &rtcdrv->rtc_base); in sirfsoc_rtc_probe()
|
/drivers/clocksource/ |
D | tegra20_timer.c | 52 static void __iomem *rtc_base; variable 120 u32 ms = readl(rtc_base + RTC_MILLISECONDS); in tegra_rtc_read_ms() 121 u32 s = readl(rtc_base + RTC_SHADOW_SECONDS); in tegra_rtc_read_ms() 241 rtc_base = of_iomap(np, 0); in tegra20_init_rtc() 242 if (!rtc_base) { in tegra20_init_rtc()
|