From ef0f6e7a9993067e96660ae029080d7e944da1f2 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Fri, 26 Sep 2025 09:31:36 -0600 Subject: [PATCH] nand: atmel: Rework ATMEL_EBI and DM_NAND_ATMEL interaction 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 Signed-off-by: Michael Trimarchi --- drivers/memory/Kconfig | 2 +- drivers/mtd/nand/raw/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig index 7c40f176987..18238765ead 100644 --- a/drivers/memory/Kconfig +++ b/drivers/memory/Kconfig @@ -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 diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index 3059b00662b..754b99bf3eb 100644 --- a/drivers/mtd/nand/raw/Kconfig +++ b/drivers/mtd/nand/raw/Kconfig @@ -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 -- 2.47.3