Home
last modified time | relevance | path

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

/linux/drivers/rtc/
H A Drtc-zynqmp.c61 struct xlnx_rtc_dev *xrtcdev = dev_get_drvdata(dev); in xlnx_rtc_set_time() local
71 writel(new_time, xrtcdev->reg_base + RTC_SET_TM_WR); in xlnx_rtc_set_time()
81 writel(RTC_INT_SEC, xrtcdev->reg_base + RTC_INT_STS); in xlnx_rtc_set_time()
90 struct xlnx_rtc_dev *xrtcdev = dev_get_drvdata(dev); in xlnx_rtc_read_time() local
92 status = readl(xrtcdev->reg_base + RTC_INT_STS); in xlnx_rtc_read_time()
99 read_time = readl(xrtcdev->reg_base + RTC_CUR_TM); in xlnx_rtc_read_time()
108 read_time = readl(xrtcdev->reg_base + RTC_SET_TM_RD) - 1; in xlnx_rtc_read_time()
117 struct xlnx_rtc_dev *xrtcdev = dev_get_drvdata(dev); in xlnx_rtc_read_alarm() local
119 rtc_time64_to_tm(readl(xrtcdev->reg_base + RTC_ALRM), &alrm->time); in xlnx_rtc_read_alarm()
120 alrm->enabled = readl(xrtcdev->reg_base + RTC_INT_MASK) & RTC_INT_ALRM; in xlnx_rtc_read_alarm()
[all …]