Searched refs:rtc_ctrl (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/drivers/rtc/ |
D | rtc-wm8350.c | 94 u16 rtc_ctrl; in wm8350_rtc_settime() local 116 rtc_ctrl = wm8350_reg_read(wm8350, WM8350_RTC_TIME_CONTROL); in wm8350_rtc_settime() 118 } while (--retries && !(rtc_ctrl & WM8350_RTC_STS)); in wm8350_rtc_settime() 188 u16 rtc_ctrl; in wm8350_rtc_stop_alarm() local 199 rtc_ctrl = wm8350_reg_read(wm8350, WM8350_RTC_TIME_CONTROL); in wm8350_rtc_stop_alarm() 201 } while (retries-- && !(rtc_ctrl & WM8350_RTC_ALMSTS)); in wm8350_rtc_stop_alarm() 203 if (!(rtc_ctrl & WM8350_RTC_ALMSTS)) in wm8350_rtc_stop_alarm() 213 u16 rtc_ctrl; in wm8350_rtc_start_alarm() local 222 rtc_ctrl = wm8350_reg_read(wm8350, WM8350_RTC_TIME_CONTROL); in wm8350_rtc_start_alarm() 224 } while (retries-- && rtc_ctrl & WM8350_RTC_ALMSTS); in wm8350_rtc_start_alarm() [all …]
|
D | rtc-davinci.c | 165 u8 rtc_ctrl, rtc_cctrl; in davinci_rtc_interrupt() local 185 rtc_ctrl = rtcss_read(davinci_rtc, PRTCSS_RTC_CTRL); in davinci_rtc_interrupt() 186 rtc_ctrl |= PRTCSS_RTC_CTRL_TMRFLG; in davinci_rtc_interrupt() 187 rtcss_write(davinci_rtc, rtc_ctrl, PRTCSS_RTC_CTRL); in davinci_rtc_interrupt() 204 u8 rtc_ctrl; in davinci_rtc_ioctl() local 210 rtc_ctrl = rtcss_read(davinci_rtc, PRTCSS_RTC_CTRL); in davinci_rtc_ioctl() 214 rtc_ctrl |= PRTCSS_RTC_CTRL_WEN | PRTCSS_RTC_CTRL_WDTFLG; in davinci_rtc_ioctl() 217 rtc_ctrl &= ~PRTCSS_RTC_CTRL_WEN; in davinci_rtc_ioctl() 223 rtcss_write(davinci_rtc, rtc_ctrl, PRTCSS_RTC_CTRL); in davinci_rtc_ioctl()
|
D | rtc-ab8500.c | 143 u8 rtc_ctrl, value; in ab8500_rtc_read_alarm() local 149 AB8500_RTC_STAT_REG, &rtc_ctrl); in ab8500_rtc_read_alarm() 153 if (rtc_ctrl & RTC_ALARM_ENA) in ab8500_rtc_read_alarm() 353 u8 rtc_ctrl; in ab8500_rtc_probe() local 370 AB8500_RTC_STAT_REG, &rtc_ctrl); in ab8500_rtc_probe() 375 if (!(rtc_ctrl & RTC_STATUS_DATA)) { in ab8500_rtc_probe()
|
D | rtc-zynqmp.c | 170 u32 rtc_ctrl; in xlnx_init_rtc() local 173 rtc_ctrl = readl(xrtcdev->reg_base + RTC_CTRL); in xlnx_init_rtc() 174 rtc_ctrl |= RTC_BATT_EN; in xlnx_init_rtc() 175 writel(rtc_ctrl, xrtcdev->reg_base + RTC_CTRL); in xlnx_init_rtc()
|