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()
132 u32 rtsr; in sa1100_rtc_read_alarm() local
135 rtsr = readl_relaxed(info->rtsr); in sa1100_rtc_read_alarm()
136 alrm->enabled = (rtsr & RTSR_ALE) ? 1 : 0; in sa1100_rtc_read_alarm()
137 alrm->pending = (rtsr & RTSR_AL) ? 1 : 0; in sa1100_rtc_read_alarm()
151 writel_relaxed(readl_relaxed(info->rtsr) & in sa1100_rtc_set_alarm()
152 (RTSR_HZE | RTSR_ALE | RTSR_AL), info->rtsr); in sa1100_rtc_set_alarm()
155 writel_relaxed(readl_relaxed(info->rtsr) | RTSR_ALE, info->rtsr); in sa1100_rtc_set_alarm()
157 writel_relaxed(readl_relaxed(info->rtsr) & ~RTSR_ALE, info->rtsr); in sa1100_rtc_set_alarm()
169 seq_printf(seq, "RTSR\t\t\t: 0x%08x\n", readl_relaxed(info->rtsr)); in sa1100_rtc_proc()
246 writel_relaxed(RTSR_AL | RTSR_HZ, info->rtsr); in sa1100_rtc_init()
292 info->rtsr = base + 0x10; in sa1100_rtc_probe()
297 info->rtsr = base + 0x8; in sa1100_rtc_probe()
314 writel_relaxed(0, info->rtsr); in sa1100_rtc_remove()