[U-Boot,v4,17/20] spl: Kconfig: Enable SPI_FLASH_TINY by default for SPL
diff mbox series

Message ID 20190205055929.24168-18-vigneshr@ti.com
State Accepted
Delegated to: Jagannadha Sutradharudu Teki
Headers show
  • SF: Migrate to Linux SPI NOR framework
Related show

Commit Message

Vignesh Raghavendra Feb. 5, 2019, 5:59 a.m. UTC
SPL only needs to be able to read from SPI Flash to load next stage and
does not really need write/erase etc. Therefore in order to reduce SPI
Flash code size in SPL, enable SPI_FLASH_TINY, that only supports
reading from SPI flash, as default.

Note: Since, SPI_FLASH_TINY does not support SPI_FLASH_BAR,
SPI_FLASH_TINY is not enabled for boards with SPI controllers that
cannot support 4 byte addressing.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> #zynq-microzed
 common/spl/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff mbox series

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 983acca85d9d..935066d66487 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -742,6 +742,7 @@  if SPL_SPI_FLASH_SUPPORT
 	bool "Enable low footprint SPL SPI Flash support"
 	depends on !SPI_FLASH_BAR
+	default y if SPI_FLASH
 	 Enable lightweight SPL SPI Flash support that supports just reading
 	 data/images from flash. No support to write/erase flash. Enable