u-boot-brain/drivers/mtd/spi
Frieder Schrempf 832ce20278 mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD
Most boards currently use SPI_FLASH_MTD only in U-Boot proper, not in
SPL. They often rely on hacks in the board header files to include
this option conditionally. To be able to fix this, we previously
introduced a separate option SPL_SPI_FLASH_MTD.

Therefore we can now adjust the Makefile and change the code in
sf_probe.c and sf_internal.h to use CONFIG_IS_ENABLED(SPI_FLASH_MTD).

We also need to move all occurences of CONFIG_SPI_FLASH_MTD from the
header files to the according defconfigs. The affected boards are
socfpga, aristainetos, cm_fx6, display5, ventana, rcar-gen2, dh_imx6
and da850evm.

We do this all in one patch to guarantee bisectibility.

This change was tested with buildman to make sure it does not
introduce any regressions by comparing the resulting binary sizes.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Acked-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
2019-10-25 00:48:32 +05:30
..
fsl_espi_spl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig mtd: spi: Add a new option SPL_SPI_FLASH_MTD to Kconfig 2019-10-25 00:48:31 +05:30
Makefile mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD 2019-10-25 00:48:32 +05:30
sandbox.c mtd: spi: Switch to new SPI NOR framework 2019-02-07 15:33:21 +05:30
sf_dataflash.c mtd: spi_dataflash: Use spi read then write 2019-09-16 08:09:22 +05:30
sf_internal.h mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD 2019-10-25 00:48:32 +05:30
sf_mtd.c mtd: sf: Make sf_mtd.c more robust 2018-12-06 00:45:36 +05:30
sf_probe.c mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD 2019-10-25 00:48:32 +05:30
sf-uclass.c spl: Allow tiny printf() to be controlled in SPL and TPL 2019-10-08 13:57:45 +08:00
spi-nor-core.c mtd: spi-nor-core: Replace MTD_SPI_NOR_USE_4K_SECTORS with SPI_FLASH_USE_4K_SECTORS 2019-10-25 00:48:32 +05:30
spi-nor-ids.c spi-nor: spi-nor-ids: Add USE_FSR flag for mt25q* and n25q* entry 2019-10-25 00:48:32 +05:30
spi-nor-tiny.c mtd: spi: Add lightweight SPI flash stack for SPL 2019-02-07 15:33:21 +05:30