Lines Matching +full:sh +full:- +full:rtc
1 // SPDX-License-Identifier: GPL-2.0
3 * arch/sh/boards/dreamcast/rtc.c
5 * Dreamcast AICA RTC routines.
12 #include <linux/rtc.h>
16 /* The AICA RTC has an Epoch of 1/1/1950, so we must subtract 20 years (in
21 /* The AICA RTC is represented by a 32-bit seconds counter stored in 2 16-bit
27 * aica_rtc_gettimeofday - Get the time from the AICA RTC
28 * @dev: the RTC device (ignored)
29 * @tm: pointer to resulting RTC time structure
31 * Grabs the current RTC seconds counter and adjusts it to the Unix Epoch.
47 t = (u32)(val1 - TWENTY_YEARS); in aica_rtc_gettimeofday()
55 * aica_rtc_settimeofday - Set the AICA RTC to the current time
56 * @dev: the RTC device (ignored)
57 * @tm: pointer to new RTC time structure
59 * Adjusts the given @tv to the AICA Epoch and sets the RTC seconds counter.
90 pdev = platform_device_register_data(NULL, "rtc-generic", -1, in aica_time_init()