Lines Matching refs:rtsr
50 unsigned int rtsr; in sa1100_rtc_interrupt() local
55 rtsr = readl_relaxed(info->rtsr); in sa1100_rtc_interrupt()
57 writel_relaxed(0, info->rtsr); in sa1100_rtc_interrupt()
60 if (rtsr & (RTSR_ALE | RTSR_HZE)) { in sa1100_rtc_interrupt()
64 writel_relaxed((RTSR_AL | RTSR_HZ) & (rtsr >> 2), info->rtsr); in sa1100_rtc_interrupt()
73 writel_relaxed(RTSR_AL | RTSR_HZ, info->rtsr); in sa1100_rtc_interrupt()
77 if (rtsr & RTSR_AL) in sa1100_rtc_interrupt()
78 rtsr &= ~RTSR_ALE; in sa1100_rtc_interrupt()
79 writel_relaxed(rtsr & (RTSR_ALE | RTSR_HZE), info->rtsr); in sa1100_rtc_interrupt()
82 if (rtsr & RTSR_AL) in sa1100_rtc_interrupt()
84 if (rtsr & RTSR_HZ) in sa1100_rtc_interrupt()
96 u32 rtsr; in sa1100_rtc_alarm_irq_enable() local
100 rtsr = readl_relaxed(info->rtsr); in sa1100_rtc_alarm_irq_enable()
102 rtsr |= RTSR_ALE; in sa1100_rtc_alarm_irq_enable()
104 rtsr &= ~RTSR_ALE; in sa1100_rtc_alarm_irq_enable()
105 writel_relaxed(rtsr, info->rtsr); in sa1100_rtc_alarm_irq_enable()
129 u32 rtsr; in sa1100_rtc_read_alarm() local
132 rtsr = readl_relaxed(info->rtsr); in sa1100_rtc_read_alarm()
133 alrm->enabled = (rtsr & RTSR_ALE) ? 1 : 0; in sa1100_rtc_read_alarm()
134 alrm->pending = (rtsr & RTSR_AL) ? 1 : 0; in sa1100_rtc_read_alarm()
143 writel_relaxed(readl_relaxed(info->rtsr) & in sa1100_rtc_set_alarm()
144 (RTSR_HZE | RTSR_ALE | RTSR_AL), info->rtsr); in sa1100_rtc_set_alarm()
147 writel_relaxed(readl_relaxed(info->rtsr) | RTSR_ALE, info->rtsr); in sa1100_rtc_set_alarm()
149 writel_relaxed(readl_relaxed(info->rtsr) & ~RTSR_ALE, info->rtsr); in sa1100_rtc_set_alarm()
160 seq_printf(seq, "RTSR\t\t\t: 0x%08x\n", readl_relaxed(info->rtsr)); in sa1100_rtc_proc()
236 writel_relaxed(RTSR_AL | RTSR_HZ, info->rtsr); in sa1100_rtc_init()
284 info->rtsr = base + 0x10; in sa1100_rtc_probe()
289 info->rtsr = base + 0x8; in sa1100_rtc_probe()
306 writel_relaxed(0, info->rtsr); in sa1100_rtc_remove()