diff mbox series

[5/7] env: sunxi: enable ENV_IS_IN_SPI_FLASH

Message ID 20220111124607.863952-6-andre.przywara@arm.com
State Accepted
Commit 753a85fd151d28a55c6bb4d15bd3bc44dd4b5e22
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series sunxi: Fix U-Boot proper SPI operation | expand

Commit Message

Andre Przywara Jan. 11, 2022, 12:46 p.m. UTC
Now that sunxi uses CONFIG_SPI more sanely, and can also now properly
load the environment from SPI flash, let's enable the symbol that
actually considers the SPI flash when accessing the environment.

As this symbol depends on CONFIG_SPI, which we now only enable if the
board has a SPI flash, we can make if "default y" for all Allwinner
boards.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 env/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/env/Kconfig b/env/Kconfig
index 45b7895047..b9d04725a3 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -320,6 +320,7 @@  config ENV_IS_IN_SPI_FLASH
 	default y if NORTHBRIDGE_INTEL_IVYBRIDGE
 	default y if INTEL_QUARK
 	default y if INTEL_QUEENSBAY
+	default y if ARCH_SUNXI
 	help
 	  Define this if you have a SPI Flash memory device which you
 	  want to use for the environment.