]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
nand: atmel: Rework ATMEL_EBI and DM_NAND_ATMEL interaction
authorTom Rini <trini@konsulko.com>
Fri, 26 Sep 2025 15:31:36 +0000 (09:31 -0600)
committerMichael Trimarchi <michael@amarulasolutions.com>
Thu, 9 Oct 2025 18:57:27 +0000 (20:57 +0200)
The way that the NAND driver under DM_NAND_ATMEL is probed is by the
dummy memory driver controlled by ATMEL_EBI. Rather than require that
for NAND to work both be enabled, make NAND select ATMEL_EBI and do not
prompt for ATMEL_EBI as it only triggers the probe for NAND.

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
drivers/memory/Kconfig
drivers/mtd/nand/raw/Kconfig

index 7c40f176987d72cd1514d187caf04eaf947e90ad..18238765ead699d16baf557c327dc54378bbd081 100644 (file)
@@ -14,7 +14,7 @@ config MEMORY
          For now this uclass has no methods yet.
 
 config ATMEL_EBI
-       bool "Support for Atmel EBI"
+       bool
        help
          Driver for Atmel EBI controller. This is a dummy
          driver. Doesn't provide an access to EBI controller. Select
index 3059b00662be6e4d359eeb36a5330c66970761d0..754b99bf3eb6b3e39ffae9dbca75cc87a0b99093 100644 (file)
@@ -51,6 +51,7 @@ config SYS_NAND_NO_SUBPAGE_WRITE
 config DM_NAND_ATMEL
        bool "Support Atmel NAND controller with DM support"
        depends on ARCH_AT91
+       select ATMEL_EBI
        select SYS_NAND_SELF_INIT
        imply SYS_NAND_USE_FLASH_BBT
        help