diff mbox series

[3/5] env: Make ENV_IS_IN_SPI_FLASH depend on SPI flash being present

Message ID 20240110184610.3909763-3-trini@konsulko.com
State Accepted
Commit 9913a8212888034dea8a432a9977d2c930900e1f
Delegated to: Tom Rini
Headers show
Series [1/5] omap3: Make SPL_OMAP3_ID_NAND depend on NAND_OMAP_GPMC | expand

Commit Message

Tom Rini Jan. 10, 2024, 6:46 p.m. UTC
In order for our environment to be present on SPI flash we need to
depend not on the symbol for a SPI controller but rather that SPI flash
of some sort is present. Update the dependencies.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 env/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/env/Kconfig b/env/Kconfig
index f5f09692332d..7885c8bf8311 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -342,7 +342,7 @@  config ENV_IS_IN_REMOTE
 
 config ENV_IS_IN_SPI_FLASH
 	bool "Environment is in SPI flash"
-	depends on !CHAIN_OF_TRUST && SPI
+	depends on !CHAIN_OF_TRUST && (SPI_FLASH || DM_SPI_FLASH)
 	default y if ARMADA_XP
 	default y if INTEL_BAYTRAIL
 	default y if INTEL_BRASWELL