Lines Matching refs:rtc_writel
60 #define rtc_writel(dev, reg, val) writel((val), (dev)->rtc_base + (reg)) macro
74 rtc_writel(rtc, LPC24XX_CCR, LPC178X_CCALEN); in lpc24xx_rtc_set_time()
76 rtc_writel(rtc, LPC24XX_SEC, tm->tm_sec); in lpc24xx_rtc_set_time()
77 rtc_writel(rtc, LPC24XX_MIN, tm->tm_min); in lpc24xx_rtc_set_time()
78 rtc_writel(rtc, LPC24XX_HOUR, tm->tm_hour); in lpc24xx_rtc_set_time()
79 rtc_writel(rtc, LPC24XX_DOW, tm->tm_wday); in lpc24xx_rtc_set_time()
80 rtc_writel(rtc, LPC24XX_DOM, tm->tm_mday); in lpc24xx_rtc_set_time()
81 rtc_writel(rtc, LPC24XX_DOY, tm->tm_yday); in lpc24xx_rtc_set_time()
82 rtc_writel(rtc, LPC24XX_MONTH, tm->tm_mon); in lpc24xx_rtc_set_time()
83 rtc_writel(rtc, LPC24XX_YEAR, tm->tm_year); in lpc24xx_rtc_set_time()
85 rtc_writel(rtc, LPC24XX_CCR, LPC24XX_CLKEN | LPC178X_CCALEN); in lpc24xx_rtc_set_time()
137 rtc_writel(rtc, LPC24XX_AMR, LPC24XX_ALARM_DISABLE); in lpc24xx_rtc_set_alarm()
139 rtc_writel(rtc, LPC24XX_ALSEC, tm->tm_sec); in lpc24xx_rtc_set_alarm()
140 rtc_writel(rtc, LPC24XX_ALMIN, tm->tm_min); in lpc24xx_rtc_set_alarm()
141 rtc_writel(rtc, LPC24XX_ALHOUR, tm->tm_hour); in lpc24xx_rtc_set_alarm()
142 rtc_writel(rtc, LPC24XX_ALDOM, tm->tm_mday); in lpc24xx_rtc_set_alarm()
143 rtc_writel(rtc, LPC24XX_ALDOW, tm->tm_wday); in lpc24xx_rtc_set_alarm()
144 rtc_writel(rtc, LPC24XX_ALDOY, tm->tm_yday); in lpc24xx_rtc_set_alarm()
145 rtc_writel(rtc, LPC24XX_ALMON, tm->tm_mon); in lpc24xx_rtc_set_alarm()
146 rtc_writel(rtc, LPC24XX_ALYEAR, tm->tm_year); in lpc24xx_rtc_set_alarm()
149 rtc_writel(rtc, LPC24XX_AMR, 0); in lpc24xx_rtc_set_alarm()
159 rtc_writel(rtc, LPC24XX_AMR, 0); in lpc24xx_rtc_alarm_irq_enable()
161 rtc_writel(rtc, LPC24XX_AMR, LPC24XX_ALARM_DISABLE); in lpc24xx_rtc_alarm_irq_enable()
176 rtc_writel(rtc, LPC24XX_AMR, LPC24XX_ALARM_DISABLE); in lpc24xx_rtc_interrupt()
180 rtc_writel(rtc, LPC24XX_ILR, rtc_iir); in lpc24xx_rtc_interrupt()
238 rtc_writel(rtc, LPC24XX_ILR, LPC24XX_RTCCIF | LPC24XX_RTCALF); in lpc24xx_rtc_probe()
241 rtc_writel(rtc, LPC24XX_CCR, LPC24XX_CLKEN | LPC178X_CCALEN); in lpc24xx_rtc_probe()
272 rtc_writel(rtc, LPC24XX_AMR, LPC24XX_ALARM_DISABLE); in lpc24xx_rtc_remove()
273 rtc_writel(rtc, LPC24XX_CIIR, 0); in lpc24xx_rtc_remove()
275 rtc_writel(rtc, LPC24XX_CCR, LPC178X_CCALEN); in lpc24xx_rtc_remove()