]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_FSL_ESDHC_PIN_MUX to Kconfig
authorTom Rini <trini@konsulko.com>
Fri, 2 Dec 2022 21:42:22 +0000 (16:42 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 22 Dec 2022 15:31:48 +0000 (10:31 -0500)
This converts the following to Kconfig:
   CONFIG_FSL_ESDHC_PIN_MUX

Signed-off-by: Tom Rini <trini@konsulko.com>
configs/MPC837XERDB_defconfig
drivers/mmc/Kconfig
drivers/mmc/fsl_esdhc_imx.c
include/configs/MPC837XERDB.h

index 40fc1d1da4a8cee1a02444e037e8afbf0a2b56cd..a227ca86de7497b3216494775618ba60937c5c2e 100644 (file)
@@ -195,6 +195,7 @@ CONFIG_SYS_FSL_I2C_OFFSET=0x3000
 CONFIG_SYS_I2C_SLAVE=0x7F
 CONFIG_SYS_I2C_SPEED=400000
 CONFIG_FSL_ESDHC=y
+CONFIG_FSL_ESDHC_PIN_MUX=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
 CONFIG_FLASH_SHOW_PROGRESS=0
index 5a5a31c75ab966d12a882491aef7879aaa55f58f..878f867c627bf4acea983acc9a863602b2631aca 100644 (file)
@@ -891,6 +891,10 @@ config FSL_USDHC
        help
          This enables the Ultra Secured Digital Host Controller enhancements
 
+config FSL_ESDHC_PIN_MUX
+       bool "Perform esdhc device-tree fixup"
+       depends on (FSL_ESDHC || FSL_ESDHC_IMX) && OF_LIBFDT
+
 endmenu
 
 config SYS_FSL_ERRATUM_ESDHC111
index 5ee3ce78231340f0861ead97566e24662b42a31c..66caf683f741a9219a52d467b4e6bda404473336 100644 (file)
@@ -1360,7 +1360,7 @@ int fsl_esdhc_mmc_init(struct bd_info *bis)
 #if CONFIG_IS_ENABLED(OF_LIBFDT)
 __weak int esdhc_status_fixup(void *blob, const char *compat)
 {
-       if (IS_ENABLED(FSL_ESDHC_PIN_MUX) && !hwconfig("esdhc")) {
+       if (IS_ENABLED(CONFIG_FSL_ESDHC_PIN_MUX) && !hwconfig("esdhc")) {
                do_fixup_by_compat(blob, compat, "status", "disabled",
                                sizeof("disabled"), 1);
                return 1;
index f312ffb37e23baecd0e2d64e7157001727bc0773..dbfcdfb738b02363b58dcf7db6f0ed9bc4f85f4d 100644 (file)
 #define CFG_SYS_PCIE2_IO_PHYS  0xD8000000
 
 #ifdef CONFIG_MMC
-#define CONFIG_FSL_ESDHC_PIN_MUX
 #define CFG_SYS_FSL_ESDHC_ADDR CFG_SYS_MPC83xx_ESDHC_ADDR
 #endif