diff options
author | Vignesh R <vigneshr@ti.com> | 2019-02-05 08:59:25 +0300 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2019-02-07 13:03:21 +0300 |
commit | 778572d7cb1e2df678340fda9b081e4f7bd6c4b3 (patch) | |
tree | 16223f685eb919f2effd4e64d5de2a295aea007c /common | |
parent | 5b66fdb29dc319f9f01f1a22f7b277778224d32d (diff) | |
download | u-boot-778572d7cb1e2df678340fda9b081e4f7bd6c4b3.tar.xz |
mtd: spi: Add lightweight SPI flash stack for SPL
Add a tiny SPI flash stack that just supports reading data/images from
SPI flash. This is useful for boards that have SPL size constraints and
would need to use SPI flash framework just to read images/data from
flash. There is approximately 1.5 to 2KB savings with this.
Based on prior work of reducing spi flash id table by
Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Signed-off-by: Vignesh R <vigneshr@ti.com>
Tested-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Tested-by: Stefan Roese <sr@denx.de>
Tested-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> #zynq-microzed
Diffstat (limited to 'common')
-rw-r--r-- | common/spl/Kconfig | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 138537b4ce..983acca85d 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -739,9 +739,18 @@ config SPL_SPI_FLASH_SUPPORT if SPL_SPI_FLASH_SUPPORT +config SPL_SPI_FLASH_TINY + bool "Enable low footprint SPL SPI Flash support" + depends on !SPI_FLASH_BAR + help + Enable lightweight SPL SPI Flash support that supports just reading + data/images from flash. No support to write/erase flash. Enable + this if you have SPL size limitations and don't need full + fledged SPI flash support. + config SPL_SPI_FLASH_SFDP_SUPPORT bool "SFDP table parsing support for SPI NOR flashes" - depends on !SPI_FLASH_BAR + depends on !SPI_FLASH_BAR && !SPL_SPI_FLASH_TINY help Enable support for parsing and auto discovery of parameters for SPI NOR flashes using Serial Flash Discoverable Parameters (SFDP) |