Lines Matching +full:start +full:- +full:year
1 // SPDX-License-Identifier: GPL-2.0
49 rtcs = of_find_compatible_node(NULL, "rtc", "ds1385-rtc"); in chrp_time_init()
58 base = r.start; in chrp_time_init()
84 * Set the hardware clock. -- Cort
121 * sheets anyway ... -- Markus Kuhn in chrp_set_rtc_time()
132 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local
140 year = chrp_cmos_clock_read(RTC_YEAR); in chrp_get_rtc_time()
149 year = bcd2bin(year); in chrp_get_rtc_time()
151 if (year < 70) in chrp_get_rtc_time()
152 year += 100; in chrp_get_rtc_time()
153 tm->tm_sec = sec; in chrp_get_rtc_time()
154 tm->tm_min = min; in chrp_get_rtc_time()
155 tm->tm_hour = hour; in chrp_get_rtc_time()
156 tm->tm_mday = day; in chrp_get_rtc_time()
157 tm->tm_mon = mon; in chrp_get_rtc_time()
158 tm->tm_year = year; in chrp_get_rtc_time()