]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_MCFRTC et al to Kconfig
authorTom Rini <trini@konsulko.com>
Wed, 23 Mar 2022 21:19:51 +0000 (17:19 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2022 14:28:46 +0000 (10:28 -0400)
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>
13 files changed:
arch/m68k/include/asm/immap.h
configs/M53017EVB_defconfig
configs/M5329AFEE_defconfig
configs/M5329BFEE_defconfig
configs/M5373EVB_defconfig
configs/astro_mcf5373l_defconfig
drivers/rtc/Kconfig
drivers/rtc/mcfrtc.c
include/configs/M53017EVB.h
include/configs/M5329EVB.h
include/configs/M5373EVB.h
include/configs/astro_mcf5373l.h
include/configs/stmark2.h

index 02aa95aaf262cfab634aa3279fed5328ab8a378b..ead62cd03871ff701d2e596fe1961ea7593f5e60 100644 (file)
 #define CONFIG_SYS_FEC1_IOBASE         (MMAP_FEC1)
 #define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
 
-#define CONFIG_SYS_MCFRTC_BASE         (MMAP_RTC)
-
 /* Timer */
 #ifdef CONFIG_MCFTMR
 #define CONFIG_SYS_UDELAY_BASE         (MMAP_DTMR0)
 
 #define CONFIG_SYS_FEC0_IOBASE         (MMAP_FEC)
 #define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
-#define CONFIG_SYS_MCFRTC_BASE         (MMAP_RTC)
 
 /* Timer */
 #ifdef CONFIG_MCFTMR
 #endif
 
 #define MMAP_DSPI                      MMAP_DSPI0
-#define CONFIG_SYS_MCFRTC_BASE         (MMAP_RTC)
 
 /* Timer */
 #ifdef CONFIG_MCFTMR
index 52daf5dfe2551e67c8d7ab5699341735ee64f740..784796664a8461f7ca29c6d0113d730c77bf0c25 100644 (file)
@@ -39,4 +39,6 @@ CONFIG_SYS_FLASH_CFI=y
 CONFIG_DM_ETH=y
 CONFIG_MCFFEC=y
 CONFIG_MII=y
+CONFIG_MCFRTC=y
+CONFIG_SYS_MCFRTC_BASE=0xFC0A8000
 CONFIG_MCFUART=y
index 4cf68639e281c0cd35157af51c978496e0f6dc79..134ddfb2a1417876e1c750a475d11045f400ecc2 100644 (file)
@@ -41,4 +41,6 @@ CONFIG_MTD_RAW_NAND=y
 CONFIG_DM_ETH=y
 CONFIG_MCFFEC=y
 CONFIG_MII=y
+CONFIG_MCFRTC=y
+CONFIG_SYS_MCFRTC_BASE=0xFC0A8000
 CONFIG_MCFUART=y
index efe320784a6a0b4ef0abf4658de920f52b87c7c8..a86c754e22171969f073c58ccf15b08f6981a961 100644 (file)
@@ -41,4 +41,6 @@ CONFIG_MTD_RAW_NAND=y
 CONFIG_DM_ETH=y
 CONFIG_MCFFEC=y
 CONFIG_MII=y
+CONFIG_MCFRTC=y
+CONFIG_SYS_MCFRTC_BASE=0xFC0A8000
 CONFIG_MCFUART=y
index 643637399bd29edad857c8a3df171b6c21e287f1..ac9680ba2e9d04d7495433893cd29f029e30eecc 100644 (file)
@@ -41,4 +41,6 @@ CONFIG_MTD_RAW_NAND=y
 CONFIG_DM_ETH=y
 CONFIG_MCFFEC=y
 CONFIG_MII=y
+CONFIG_MCFRTC=y
+CONFIG_SYS_MCFRTC_BASE=0xFC0A8000
 CONFIG_MCFUART=y
index 81f5ccd99116a661e10277d94f09f8c0e91de803..9eb985c92b78c082b25b004fb57dcbd46ec6e5a4 100644 (file)
@@ -40,5 +40,7 @@ CONFIG_FLASH_CFI_DRIVER=y
 CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
 CONFIG_SYS_FLASH_PROTECTION=y
 CONFIG_SYS_FLASH_CFI=y
+CONFIG_MCFRTC=y
+CONFIG_SYS_MCFRTC_BASE=0xFC0A8000
 CONFIG_MCFUART=y
 CONFIG_WATCHDOG=y
index 71777cdd05f796e5f5b7421b8d500851586f5ad3..7a6c6efb4b06f696e3b7acdd224b56725d69ac0d 100644 (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
index e10638ec7dd3249b526adaa1ac01094de92af7c5..d2ac889c3095edba6a89440236696721199ec803 100644 (file)
 
 #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
 
index 6e2bdbe61225bcaab07d91f10d93340fbe169c0d..7011a4b81f772c80b6cc98869061618f5e61adf2 100644 (file)
@@ -36,8 +36,6 @@
 #      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
-#define CONFIG_MCFRTC
-#undef RTC_DEBUG
 #define CONFIG_SYS_RTC_CNT             (0x8000)
 #define CONFIG_SYS_RTC_SETUP           (RTC_OCEN_OSCBYP | RTC_OCEN_CLKEN)
 
index b6b53960c761bbb79423f8ebef1465cb41536a8f..cfb2507a7b46461f41c6de862be3733536dab928 100644 (file)
@@ -33,9 +33,6 @@
 #      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
-#define CONFIG_MCFRTC
-#undef RTC_DEBUG
-
 /* I2C */
 
 #ifdef CONFIG_MCFFEC
index b45f15be0e9893215c5004a25f9b00a413f02f71..20102a2b9a2a528cd03e910c6f8ff40d12eda99a 100644 (file)
@@ -35,9 +35,6 @@
 #      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
-#define CONFIG_MCFRTC
-#undef RTC_DEBUG
-
 /* I2C */
 
 #ifdef CONFIG_MCFFEC
index b84b7db2e64c1da6dd34bea943c514d5f788c2e2..f81f84550aa8bd76738504c18411d90634df790c 100644 (file)
@@ -51,9 +51,6 @@
 #define ENABLE_JFFS    1
 #endif
 
-#define CONFIG_MCFRTC
-#undef RTC_DEBUG
-
 /* I2C */
 
 /*
index e1f2ee0a22b23c39cf6cd0584ba5887de3a2e5f5..994be1c2202278104985357b3dd551e75448b6d8 100644 (file)
@@ -35,7 +35,6 @@
        ""
 
 /* Realtime clock */
-#undef CONFIG_MCFRTC
 #define CONFIG_RTC_MCFRRTC
 #define CONFIG_SYS_MCFRRTC_BASE                0xFC0A8000