From 832ce20278db00aeeed5576f1296a6d905d31563 Mon Sep 17 00:00:00 2001 From: Frieder Schrempf Date: Wed, 23 Oct 2019 07:41:20 +0000 Subject: 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 Reviewed-by: Stefan Roese Reviewed-by: Simon Goldschmidt Acked-by: Lukasz Majewski Reviewed-by: Heiko Schocher Reviewed-by: Jagan Teki --- configs/socfpga_mcvevk_defconfig | 1 + 1 file changed, 1 insertion(+) (limited to 'configs/socfpga_mcvevk_defconfig') diff --git a/configs/socfpga_mcvevk_defconfig b/configs/socfpga_mcvevk_defconfig index e977cd77073..605ffd7c2b0 100644 --- a/configs/socfpga_mcvevk_defconfig +++ b/configs/socfpga_mcvevk_defconfig @@ -42,6 +42,7 @@ CONFIG_DM_I2C=y CONFIG_SYS_I2C_DW=y CONFIG_DM_MMC=y CONFIG_MMC_DW=y +CONFIG_SPI_FLASH_MTD=y CONFIG_DM_ETH=y CONFIG_PHY_GIGE=y CONFIG_ETH_DESIGNWARE=y -- cgit v1.2.3