Lines Matching refs:csr_base
37 void __iomem *csr_base; member
47 rtc_time64_to_tm(readl(pdata->csr_base + RTC_CCVR), tm); in xgene_rtc_read_time()
59 writel((u32)rtc_tm_to_time64(tm), pdata->csr_base + RTC_CLR); in xgene_rtc_set_time()
60 readl(pdata->csr_base + RTC_CLR); /* Force a barrier */ in xgene_rtc_set_time()
71 alrm->enabled = readl(pdata->csr_base + RTC_CCR) & RTC_CCR_IE; in xgene_rtc_read_alarm()
81 ccr = readl(pdata->csr_base + RTC_CCR); in xgene_rtc_alarm_irq_enable()
89 writel(ccr, pdata->csr_base + RTC_CCR); in xgene_rtc_alarm_irq_enable()
98 return readl(pdata->csr_base + RTC_CCR) & RTC_CCR_IE ? 1 : 0; in xgene_rtc_alarm_irq_enabled()
105 writel((u32)rtc_tm_to_time64(&alrm->time), pdata->csr_base + RTC_CMR); in xgene_rtc_set_alarm()
125 if (!(readl(pdata->csr_base + RTC_STAT) & RTC_STAT_BIT)) in xgene_rtc_interrupt()
129 readl(pdata->csr_base + RTC_EOI); in xgene_rtc_interrupt()
147 pdata->csr_base = devm_platform_ioremap_resource(pdev, 0); in xgene_rtc_probe()
148 if (IS_ERR(pdata->csr_base)) in xgene_rtc_probe()
149 return PTR_ERR(pdata->csr_base); in xgene_rtc_probe()
175 writel(RTC_CCR_EN, pdata->csr_base + RTC_CCR); in xgene_rtc_probe()