Home
last modified time | relevance | path

Searched refs:rtc_ctrl (Results 1 – 4 of 4) sorted by relevance

/linux-4.19.296/drivers/rtc/
Drtc-wm8350.c99 u16 rtc_ctrl; in wm8350_rtc_settime() local
121 rtc_ctrl = wm8350_reg_read(wm8350, WM8350_RTC_TIME_CONTROL); in wm8350_rtc_settime()
123 } while (--retries && !(rtc_ctrl & WM8350_RTC_STS)); in wm8350_rtc_settime()
193 u16 rtc_ctrl; in wm8350_rtc_stop_alarm() local
204 rtc_ctrl = wm8350_reg_read(wm8350, WM8350_RTC_TIME_CONTROL); in wm8350_rtc_stop_alarm()
206 } while (retries-- && !(rtc_ctrl & WM8350_RTC_ALMSTS)); in wm8350_rtc_stop_alarm()
208 if (!(rtc_ctrl & WM8350_RTC_ALMSTS)) in wm8350_rtc_stop_alarm()
218 u16 rtc_ctrl; in wm8350_rtc_start_alarm() local
227 rtc_ctrl = wm8350_reg_read(wm8350, WM8350_RTC_TIME_CONTROL); in wm8350_rtc_start_alarm()
229 } while (retries-- && rtc_ctrl & WM8350_RTC_ALMSTS); in wm8350_rtc_start_alarm()
[all …]
Drtc-davinci.c178 u8 rtc_ctrl, rtc_cctrl; in davinci_rtc_interrupt() local
198 rtc_ctrl = rtcss_read(davinci_rtc, PRTCSS_RTC_CTRL); in davinci_rtc_interrupt()
199 rtc_ctrl |= PRTCSS_RTC_CTRL_TMRFLG; in davinci_rtc_interrupt()
200 rtcss_write(davinci_rtc, rtc_ctrl, PRTCSS_RTC_CTRL); in davinci_rtc_interrupt()
217 u8 rtc_ctrl; in davinci_rtc_ioctl() local
223 rtc_ctrl = rtcss_read(davinci_rtc, PRTCSS_RTC_CTRL); in davinci_rtc_ioctl()
227 rtc_ctrl |= PRTCSS_RTC_CTRL_WEN | PRTCSS_RTC_CTRL_WDTFLG; in davinci_rtc_ioctl()
230 rtc_ctrl &= ~PRTCSS_RTC_CTRL_WEN; in davinci_rtc_ioctl()
236 rtcss_write(davinci_rtc, rtc_ctrl, PRTCSS_RTC_CTRL); in davinci_rtc_ioctl()
Drtc-ab8500.c177 u8 rtc_ctrl, value; in ab8500_rtc_read_alarm() local
183 AB8500_RTC_STAT_REG, &rtc_ctrl); in ab8500_rtc_read_alarm()
187 if (rtc_ctrl & RTC_ALARM_ENA) in ab8500_rtc_read_alarm()
403 u8 rtc_ctrl; in ab8500_rtc_probe() local
420 AB8500_RTC_STAT_REG, &rtc_ctrl); in ab8500_rtc_probe()
425 if (!(rtc_ctrl & RTC_STATUS_DATA)) { in ab8500_rtc_probe()
Drtc-zynqmp.c169 u32 rtc_ctrl; in xlnx_init_rtc() local
172 rtc_ctrl = readl(xrtcdev->reg_base + RTC_CTRL); in xlnx_init_rtc()
173 rtc_ctrl |= RTC_BATT_EN; in xlnx_init_rtc()
174 writel(rtc_ctrl, xrtcdev->reg_base + RTC_CTRL); in xlnx_init_rtc()