]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nand: Kconfig: Change dependency for NAND_ARASAN
authorMichal Simek <michal.simek@xilinx.com>
Wed, 19 Aug 2020 07:59:52 +0000 (09:59 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 23 Sep 2020 08:31:40 +0000 (10:31 +0200)
NAND_ARASAN selecting DM_MTD uunconditionally. Driver can be enabled with
!DM that's why Kconfig it showing it as error:

WARNING: unmet direct dependencies detected for DM_MTD
  Depends on [n]: DM [=n]
  Selected by [y]:
  - NAND_ARASAN [=y] && MTD_RAW_NAND [=y]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
configs/xilinx_zynqmp_mini_nand_defconfig
configs/xilinx_zynqmp_mini_nand_single_defconfig
configs/xilinx_zynqmp_virt_defconfig
drivers/mtd/nand/raw/Kconfig

index a7cd93ebed97c7d2f1e7e887f112b2c73e22ef49..6ada8623ab0775ca3b78404884113bf4473ba7fa 100644 (file)
@@ -49,6 +49,7 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 # CONFIG_DM_DEVICE_REMOVE is not set
 # CONFIG_MMC is not set
 CONFIG_MTD=y
+CONFIG_DM_MTD=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_NAND_ARASAN=y
 CONFIG_SYS_NAND_MAX_CHIPS=2
index fb657bf1b26cc0d971f580f2712ff3d8ba038065..04e17482fa2aaab7a3c604fb1103d5420962aa38 100644 (file)
@@ -49,6 +49,7 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 # CONFIG_DM_DEVICE_REMOVE is not set
 # CONFIG_MMC is not set
 CONFIG_MTD=y
+CONFIG_DM_MTD=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_NAND_ARASAN=y
 CONFIG_ARM_DCC=y
index 23d7ddf2d07997a2fc9dccb76d2c572688155e67..2f72d04f477a0b5c3111da61df1c957c50e3763e 100644 (file)
@@ -95,6 +95,7 @@ CONFIG_MMC_HS200_SUPPORT=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ZYNQ=y
 CONFIG_MTD=y
+CONFIG_DM_MTD=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_NAND_ARASAN=y
 CONFIG_SYS_NAND_MAX_CHIPS=2
index 06b2ff972cad0bd5dda717ddaf6d98b56a2b3925..df4cbd52cf5c40ec6e0e39296aa4f29580ea4170 100644 (file)
@@ -233,7 +233,7 @@ endif
 config NAND_ARASAN
        bool "Configure Arasan Nand"
        select SYS_NAND_SELF_INIT
-       select DM_MTD
+       depends on DM_MTD
        imply CMD_NAND
        help
          This enables Nand driver support for Arasan nand flash