Kconfig: Migrate CONFIG_RTC_M41T62 define to Kconfig
authorLukasz Majewski <lukma@denx.de>
Thu, 22 Nov 2018 13:54:31 +0000 (14:54 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 3 Dec 2018 15:44:10 +0000 (10:44 -0500)
This patch moves the RTC M41T62 config define to Kconfig.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
configs/bk4r1_defconfig
configs/m53menlo_defconfig
configs/pcm052_defconfig
configs/x600_defconfig
drivers/rtc/Kconfig
include/configs/m53menlo.h
include/configs/pcm052.h
include/configs/x600.h
scripts/config_whitelist.txt

index cf1fd0b6c643617d8381548fc353a079dd4cfd41..9e31b4ac979534d3841f4420fe924f47d7b7cac7 100644 (file)
@@ -40,6 +40,7 @@ CONFIG_SPI_FLASH_MTD=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_MII=y
+CONFIG_RTC_M41T62=y
 CONFIG_DM_SERIAL=y
 CONFIG_FSL_LPUART=y
 CONFIG_SPI=y
index 795f8a3ebc90fd6f713a267a9174a11a1857f64f..dd7aed324f8af4c9daa4f8611ae0715d34c96aa7 100644 (file)
@@ -49,6 +49,7 @@ CONFIG_NAND=y
 CONFIG_NAND_MXC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
+CONFIG_RTC_M41T62=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_HOST_ETHER=y
index 0c8e31a9ece5dfdfa5f68486ea1335bb37acbac4..e207df51a80013d87ca5d11caaf468787af1998a 100644 (file)
@@ -35,5 +35,6 @@ CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_MII=y
+CONFIG_RTC_M41T62=y
 CONFIG_DM_SERIAL=y
 CONFIG_FSL_LPUART=y
index c8f5f662327bec5b806fd4b71561f73322c4a6fc..a96f54c7371363ae99ec5ad533cb84e518d6d603 100644 (file)
@@ -52,6 +52,7 @@ CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
+CONFIG_RTC_M41T62=y
 CONFIG_CONS_INDEX=0
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
index 6038b43230d8f08d49a13218879afc4dfd5ca460..fd0009b2e2d18593017f8f326950d6330807b32f 100644 (file)
@@ -104,4 +104,10 @@ 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 RTC_M41T62
+       bool "Enable M41T62 driver"
+       help
+         Enable driver for ST's M41T62 compatible RTC devices (like RV-4162).
+         It is a serial (I2C) real-time clock (RTC) with alarm.
+
 endmenu
index 94214b135df877d08f924d393fef2ae86aed4bb9..3fca28da6b54324c46a0fdb24503e8ab2cdf3c83 100644 (file)
  * RTC
  */
 #ifdef CONFIG_CMD_DATE
-#define CONFIG_RTC_M41T62
 #define CONFIG_SYS_I2C_RTC_ADDR                0x68
 #define CONFIG_SYS_M41T11_BASE_YEAR    2000
 #endif
index 9997795434124a83e9eaffa3816179bd8766b1cf..e125a38e7d416bc29ead8b48143f1d4004e5ce59 100644 (file)
@@ -58,7 +58,6 @@
 #define CONFIG_SYS_I2C_MXC
 
 /* RTC (actually an RV-4162 but M41T62-compatible) */
-#define CONFIG_RTC_M41T62
 #define CONFIG_SYS_I2C_RTC_ADDR 0x68
 #define CONFIG_SYS_RTC_BUS_NUM 2
 
index a6835ebbd56fb86f80b8870d5d2b5c4f7c232057..639da8012c6f6bed6ea28e59271e77b8ae92e2bd 100644 (file)
@@ -75,7 +75,6 @@
 #define CONFIG_SYS_I2C_SLAVE                   0x02
 #define CONFIG_I2C_CHIPADDRESS                 0x50
 
-#define CONFIG_RTC_M41T62      1
 #define CONFIG_SYS_I2C_RTC_ADDR        0x68
 
 /* FPGA config options */
index b3f525fc02c7a71fd199102bfc6a687a07cfd675..bd14fe22c65573f35492878083e9a37f0bb9dc42 100644 (file)
@@ -1661,7 +1661,6 @@ CONFIG_RTC_DS3231
 CONFIG_RTC_FTRTC010
 CONFIG_RTC_IMXDI
 CONFIG_RTC_M41T11
-CONFIG_RTC_M41T62
 CONFIG_RTC_MC13XXX
 CONFIG_RTC_MCFRRTC
 CONFIG_RTC_MCP79411