Lines Matching refs:rtc
43 static struct ftrtc010 *rtc = (struct ftrtc010 *)CONFIG_FTRTC010_BASE; variable
47 writel(FTRTC010_CR_ENABLE, &rtc->cr); in ftrtc010_enable()
62 second = readl(&rtc->sec); in ftrtc010_time()
63 day = readl(&rtc->day); in ftrtc010_time()
64 hour = readl(&rtc->hour); in ftrtc010_time()
65 minute = readl(&rtc->min); in ftrtc010_time()
66 second2 = readl(&rtc->sec); in ftrtc010_time()
81 __func__, readl(&rtc->record)); in rtc_get()
84 now = (ftrtc010_time() + readl(&rtc->record)) / RTC_DIV_COUNT; in rtc_get()
86 now = ftrtc010_time() + readl(&rtc->record); in rtc_get()
113 writel(new - now, &rtc->record); in rtc_set()