Lines Matching refs:rtsr

54 	unsigned int rtsr;  in sa1100_rtc_interrupt()  local
59 rtsr = readl_relaxed(info->rtsr); in sa1100_rtc_interrupt()
61 writel_relaxed(0, info->rtsr); in sa1100_rtc_interrupt()
64 if (rtsr & (RTSR_ALE | RTSR_HZE)) { in sa1100_rtc_interrupt()
68 writel_relaxed((RTSR_AL | RTSR_HZ) & (rtsr >> 2), info->rtsr); in sa1100_rtc_interrupt()
77 writel_relaxed(RTSR_AL | RTSR_HZ, info->rtsr); in sa1100_rtc_interrupt()
81 if (rtsr & RTSR_AL) in sa1100_rtc_interrupt()
82 rtsr &= ~RTSR_ALE; in sa1100_rtc_interrupt()
83 writel_relaxed(rtsr & (RTSR_ALE | RTSR_HZE), info->rtsr); in sa1100_rtc_interrupt()
86 if (rtsr & RTSR_AL) in sa1100_rtc_interrupt()
88 if (rtsr & RTSR_HZ) in sa1100_rtc_interrupt()
131 writel_relaxed(0, info->rtsr); in sa1100_rtc_release()
140 u32 rtsr; in sa1100_rtc_alarm_irq_enable() local
144 rtsr = readl_relaxed(info->rtsr); in sa1100_rtc_alarm_irq_enable()
146 rtsr |= RTSR_ALE; in sa1100_rtc_alarm_irq_enable()
148 rtsr &= ~RTSR_ALE; in sa1100_rtc_alarm_irq_enable()
149 writel_relaxed(rtsr, info->rtsr); in sa1100_rtc_alarm_irq_enable()
176 u32 rtsr; in sa1100_rtc_read_alarm() local
179 rtsr = readl_relaxed(info->rtsr); in sa1100_rtc_read_alarm()
180 alrm->enabled = (rtsr & RTSR_ALE) ? 1 : 0; in sa1100_rtc_read_alarm()
181 alrm->pending = (rtsr & RTSR_AL) ? 1 : 0; in sa1100_rtc_read_alarm()
195 writel_relaxed(readl_relaxed(info->rtsr) & in sa1100_rtc_set_alarm()
196 (RTSR_HZE | RTSR_ALE | RTSR_AL), info->rtsr); in sa1100_rtc_set_alarm()
199 writel_relaxed(readl_relaxed(info->rtsr) | RTSR_ALE, info->rtsr); in sa1100_rtc_set_alarm()
201 writel_relaxed(readl_relaxed(info->rtsr) & ~RTSR_ALE, info->rtsr); in sa1100_rtc_set_alarm()
213 seq_printf(seq, "RTSR\t\t\t: 0x%08x\n", readl_relaxed(info->rtsr)); in sa1100_rtc_proc()
290 writel_relaxed(RTSR_AL | RTSR_HZ, info->rtsr); in sa1100_rtc_init()
322 info->rtsr = base + 0x10; in sa1100_rtc_probe()
327 info->rtsr = base + 0x8; in sa1100_rtc_probe()