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()
100 u32 rtsr; in sa1100_rtc_alarm_irq_enable() local
104 rtsr = readl_relaxed(info->rtsr); in sa1100_rtc_alarm_irq_enable()
106 rtsr |= RTSR_ALE; in sa1100_rtc_alarm_irq_enable()
108 rtsr &= ~RTSR_ALE; in sa1100_rtc_alarm_irq_enable()
109 writel_relaxed(rtsr, info->rtsr); in sa1100_rtc_alarm_irq_enable()
136 u32 rtsr; in sa1100_rtc_read_alarm() local
139 rtsr = readl_relaxed(info->rtsr); in sa1100_rtc_read_alarm()
140 alrm->enabled = (rtsr & RTSR_ALE) ? 1 : 0; in sa1100_rtc_read_alarm()
141 alrm->pending = (rtsr & RTSR_AL) ? 1 : 0; in sa1100_rtc_read_alarm()
155 writel_relaxed(readl_relaxed(info->rtsr) & in sa1100_rtc_set_alarm()
156 (RTSR_HZE | RTSR_ALE | RTSR_AL), info->rtsr); in sa1100_rtc_set_alarm()
159 writel_relaxed(readl_relaxed(info->rtsr) | RTSR_ALE, info->rtsr); in sa1100_rtc_set_alarm()
161 writel_relaxed(readl_relaxed(info->rtsr) & ~RTSR_ALE, info->rtsr); in sa1100_rtc_set_alarm()
173 seq_printf(seq, "RTSR\t\t\t: 0x%08x\n", readl_relaxed(info->rtsr)); in sa1100_rtc_proc()
250 writel_relaxed(RTSR_AL | RTSR_HZ, info->rtsr); in sa1100_rtc_init()
296 info->rtsr = base + 0x10; in sa1100_rtc_probe()
301 info->rtsr = base + 0x8; in sa1100_rtc_probe()
318 writel_relaxed(0, info->rtsr); in sa1100_rtc_remove()