diff options
author | Tom Rini <trini@konsulko.com> | 2022-03-23 17:19:51 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-01 10:28:46 -0400 |
commit | 3c205a6e4a7a96c9727a286a47fbaaade9adb9ed (patch) | |
tree | d20ff29b083e44e50875539aa0a05c16d7ba5764 /drivers/rtc | |
parent | b7872641a85cc290d3b3beeceaca5169b8138f6f (diff) | |
download | u-boot-3c205a6e4a7a96c9727a286a47fbaaade9adb9ed.tar.gz u-boot-3c205a6e4a7a96c9727a286a47fbaaade9adb9ed.tar.bz2 u-boot-3c205a6e4a7a96c9727a286a47fbaaade9adb9ed.zip |
Convert CONFIG_MCFRTC et al to Kconfig
This converts the following to Kconfig:
CONFIG_MCFRTC
CONFIG_SYS_MCFRTC_BASE
While at it, remove '#undef RTC_DEBUG' from these config files.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/Kconfig | 8 | ||||
-rw-r--r-- | drivers/rtc/mcfrtc.c | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 71777cdd05..7a6c6efb4b 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -168,6 +168,14 @@ config RTC_MC146818 clock with a wide array of features and 50 bytes of general-purpose, battery-backed RAM. The driver supports access to the clock and RAM. +config MCFRTC + bool "Use common CF RTC driver" + depends on M68K + +config SYS_MCFRTC_BASE + hex "Base address for RTC in immap.h" + depends on MCFRTC + config RTC_M41T62 bool "Enable M41T62 driver" help diff --git a/drivers/rtc/mcfrtc.c b/drivers/rtc/mcfrtc.c index e10638ec7d..d2ac889c30 100644 --- a/drivers/rtc/mcfrtc.c +++ b/drivers/rtc/mcfrtc.c @@ -13,10 +13,6 @@ #undef RTC_DEBUG -#ifndef CONFIG_SYS_MCFRTC_BASE -#error RTC_BASE is not defined! -#endif - #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) #define STARTOFTIME 1970 |