Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/rtc/
Drtc-mt7622.c61 #define MTK_RTC_TREG(_t, _f) (0x40 + (0x4 * (_f)) + ((_t) * 0x20)) macro
173 sec = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_SEC)); in mtk_rtc_get_alarm_or_time()
174 min = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_MIN)); in mtk_rtc_get_alarm_or_time()
175 hour = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_HOU)); in mtk_rtc_get_alarm_or_time()
176 wday = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_DOW)); in mtk_rtc_get_alarm_or_time()
177 mday = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_DOM)); in mtk_rtc_get_alarm_or_time()
178 mon = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_MON)); in mtk_rtc_get_alarm_or_time()
179 year = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_YEA)); in mtk_rtc_get_alarm_or_time()
180 } while (sec != mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_SEC))); in mtk_rtc_get_alarm_or_time()
201 mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_YEA), year); in mtk_rtc_set_alarm_or_time()
[all …]