mtd: spi: Add lightweight SPI flash stack for SPL
authorVignesh R <vigneshr@ti.com>
Tue, 5 Feb 2019 05:59:25 +0000 (11:29 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 7 Feb 2019 10:03:21 +0000 (15:33 +0530)
commit778572d7cb1e2df678340fda9b081e4f7bd6c4b3
tree16223f685eb919f2effd4e64d5de2a295aea007c
parent5b66fdb29dc319f9f01f1a22f7b277778224d32d
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
common/spl/Kconfig
drivers/mtd/spi/Makefile
drivers/mtd/spi/sf_internal.h
drivers/mtd/spi/spi-nor-core.c
drivers/mtd/spi/spi-nor-ids.c [new file with mode: 0644]
drivers/mtd/spi/spi-nor-tiny.c [new file with mode: 0644]