Searched refs:sp_rtc (Results 1 – 1 of 1) sorted by relevance
67 struct sunplus_rtc *sp_rtc = dev_get_drvdata(dev); in sp_get_seconds() local69 *secs = (unsigned long)readl(sp_rtc->reg_base + RTC_TIMER_OUT); in sp_get_seconds()74 struct sunplus_rtc *sp_rtc = dev_get_drvdata(dev); in sp_set_seconds() local76 writel((u32)secs, sp_rtc->reg_base + RTC_TIMER_SET); in sp_set_seconds()102 struct sunplus_rtc *sp_rtc = dev_get_drvdata(dev); in sp_rtc_set_alarm() local107 writel((u32)alarm_time, sp_rtc->reg_base + RTC_ALARM_SET); in sp_rtc_set_alarm()114 struct sunplus_rtc *sp_rtc = dev_get_drvdata(dev); in sp_rtc_read_alarm() local117 alarm_time = readl(sp_rtc->reg_base + RTC_ALARM_SET); in sp_rtc_read_alarm()132 struct sunplus_rtc *sp_rtc = dev_get_drvdata(dev); in sp_rtc_alarm_irq_enable() local139 sp_rtc->reg_base + RTC_CTRL); in sp_rtc_alarm_irq_enable()[all …]