Lines Matching refs:rtc
42 static struct ftrtc010 *rtc = (struct ftrtc010 *)CONFIG_FTRTC010_BASE; variable
46 writel(FTRTC010_CR_ENABLE, &rtc->cr); in ftrtc010_enable()
61 second = readl(&rtc->sec); in ftrtc010_time()
62 day = readl(&rtc->day); in ftrtc010_time()
63 hour = readl(&rtc->hour); in ftrtc010_time()
64 minute = readl(&rtc->min); in ftrtc010_time()
65 second2 = readl(&rtc->sec); in ftrtc010_time()
80 __func__, readl(&rtc->record)); in rtc_get()
83 now = (ftrtc010_time() + readl(&rtc->record)) / RTC_DIV_COUNT; in rtc_get()
85 now = ftrtc010_time() + readl(&rtc->record); in rtc_get()
112 writel(new - now, &rtc->record); in rtc_set()