Home
last modified time | relevance | path

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

/openbmc/linux/drivers/rtc/
H A Drtc-zynqmp.c183 unsigned int calibval; in xlnx_rtc_read_offset() local
186 calibval = readl(xrtcdev->reg_base + RTC_CALIB_RD); in xlnx_rtc_read_offset()
188 offset_val = calibval & RTC_TICK_MASK; in xlnx_rtc_read_offset()
193 if (calibval & RTC_FR_EN) in xlnx_rtc_read_offset()
194 offset_val += ((calibval & RTC_FR_MASK) >> RTC_FR_DATSHIFT) in xlnx_rtc_read_offset()
207 unsigned int calibval; in xlnx_rtc_set_offset() local
236 calibval = max_tick + RTC_CALIB_DEF; in xlnx_rtc_set_offset()
239 calibval |= RTC_FR_EN; in xlnx_rtc_set_offset()
241 calibval |= (fract_tick << RTC_FR_DATSHIFT); in xlnx_rtc_set_offset()
243 writel(calibval, (xrtcdev->reg_base + RTC_CALIB_WR)); in xlnx_rtc_set_offset()