Home
last modified time | relevance | path

Searched refs:RTC_CTRL (Results 1 – 8 of 8) sorted by relevance

/drivers/rtc/
A Drtc-amlogic-a4.c21 #define RTC_CTRL (0x0 << 2) /* Control RTC */ macro
124 regmap_write_bits(rtc->map, RTC_CTRL, RTC_ENABLE, RTC_ENABLE); in aml_rtc_set_time()
126 rtc->rtc_enabled = regmap_test_bits(rtc->map, RTC_CTRL, RTC_ENABLE); in aml_rtc_set_time()
149 regmap_update_bits(rtc->map, RTC_CTRL, in aml_rtc_set_alarm()
181 alarm_enable = regmap_test_bits(rtc->map, RTC_CTRL, RTC_ALRM0_EN); in aml_rtc_read_alarm()
250 regmap_update_bits(rtc->map, RTC_CTRL, in aml_rtc_alarm_enable()
257 regmap_update_bits(rtc->map, RTC_CTRL, in aml_rtc_alarm_enable()
290 rtc->rtc_enabled = regmap_test_bits(rtc->map, RTC_CTRL, RTC_ENABLE); in aml_rtc_init()
294 regmap_write_bits(rtc->map, RTC_CTRL, RTC_OSC_SEL, RTC_OSC_SEL); in aml_rtc_init()
316 regmap_write_bits(rtc->map, RTC_CTRL, RTC_OSC_SEL, 0); in aml_rtc_init()
[all …]
A Drtc-aspeed.c16 #define RTC_CTRL 0x10 macro
27 if (!(readl(rtc->base + RTC_CTRL) & RTC_ENABLE)) { in aspeed_rtc_read_time()
67 ctrl = readl(rtc->base + RTC_CTRL); in aspeed_rtc_set_time()
68 writel(ctrl | RTC_UNLOCK, rtc->base + RTC_CTRL); in aspeed_rtc_set_time()
74 writel(ctrl | RTC_ENABLE, rtc->base + RTC_CTRL); in aspeed_rtc_set_time()
A Drtc-tps6586x.c22 #define RTC_CTRL 0xc0 macro
100 ret = tps6586x_clr_bits(tps_dev, RTC_CTRL, RTC_ENABLE); in tps6586x_rtc_set_time()
113 ret = tps6586x_set_bits(tps_dev, RTC_CTRL, RTC_ENABLE); in tps6586x_rtc_set_time()
235 ret = tps6586x_update(tps_dev, RTC_CTRL, in tps6586x_rtc_probe()
278 tps6586x_update(tps_dev, RTC_CTRL, 0, in tps6586x_rtc_probe()
287 tps6586x_update(tps_dev, RTC_CTRL, 0, in tps6586x_rtc_remove()
A Drtc-sunplus.c22 #define RTC_CTRL 0x40 macro
139 sp_rtc->reg_base + RTC_CTRL); in sp_rtc_alarm_irq_enable()
142 0x0, sp_rtc->reg_base + RTC_CTRL); in sp_rtc_alarm_irq_enable()
294 writel(DIS_SYS_RST_RTC_MASK_BIT | DIS_SYS_RST_RTC, sp_rtc->reg_base + RTC_CTRL); in sp_rtc_probe()
A Drtc-zynqmp.c30 #define RTC_CTRL 0x40 macro
173 rtc_ctrl = readl(xrtcdev->reg_base + RTC_CTRL); in xlnx_init_rtc()
175 writel(rtc_ctrl, xrtcdev->reg_base + RTC_CTRL); in xlnx_init_rtc()
/drivers/mfd/
A Dab8500-sysctrl.c24 #define RTC_CTRL 0x0B macro
/drivers/clk/meson/
A Da1-peripherals.c22 #define RTC_CTRL 0xc macro
236 .offset = RTC_CTRL,
A Dc3-peripherals.c18 #define RTC_CTRL 0x10 macro
154 .offset = RTC_CTRL,

Completed in 15 milliseconds