mn10300: use RTC_DRV_CMOS instead of CONFIG_RTC
nn10300 has a dependency on mc146818_get_time/mc146818_set_time, which we want to move from the mc146818rtc.h header into the rtc subsystem, which in turn is not usable on mn10300. This changes mn10300 to use the modern rtc-cmos driver instead of the old RTC driver, and that in turn lets us completely remove the read_persistent_clock/update_persistent_clock callbacks. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
This commit is contained in:

committed by
Alexandre Belloni

parent
c361db5c2c
commit
5ee98ab3a8
@@ -75,9 +75,9 @@
|
||||
#define RTC_PORT(x) 0xd8600000
|
||||
#define RTC_ALWAYS_BCD 1 /* RTC operates in binary mode */
|
||||
|
||||
#define CMOS_READ(addr) __SYSREG(0xd8600000 + (addr), u8)
|
||||
#define CMOS_READ(addr) __SYSREG(0xd8600000 + (u32)(addr), u8)
|
||||
#define CMOS_WRITE(val, addr) \
|
||||
do { __SYSREG(0xd8600000 + (addr), u8) = val; } while (0)
|
||||
do { __SYSREG(0xd8600000 + (u32)(addr), u8) = val; } while (0)
|
||||
|
||||
#define RTC_IRQ RTIRQ
|
||||
|
||||
|
Reference in New Issue
Block a user