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>
This commit is contained in:
Tom Rini
2022-03-23 17:19:51 -04:00
parent b7872641a8
commit 3c205a6e4a
13 changed files with 18 additions and 20 deletions

View File

@@ -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

View File

@@ -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