From: Marek Vasut Date: Tue, 21 Jul 2015 14:17:39 +0000 (+0200) Subject: arm: socfpga: config: Exclude CONFIG_SPI_FLASH_MTD from SPL build X-Git-Tag: v2015.10-rc2~351 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cbc9544d275c3964db0bd7b7e510be9172b43cb8;p=u-boot arm: socfpga: config: Exclude CONFIG_SPI_FLASH_MTD from SPL build We do not need full MTD support in the SPL build, it only adds size and is not usable in any way. Exclude it. Signed-off-by: Marek Vasut --- diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index b5d69d70b1..24f2ec01b1 100644 --- a/include/configs/socfpga_common.h +++ b/include/configs/socfpga_common.h @@ -197,7 +197,9 @@ unsigned int cm_get_l4_sp_clk_hz(void); /* Enable multiple SPI NOR flash manufacturers */ #define CONFIG_SPI_FLASH_STMICRO /* Micron/Numonyx flash */ #define CONFIG_SPI_FLASH_SPANSION /* Spansion flash */ +#ifndef CONFIG_SPL_BUILD #define CONFIG_SPI_FLASH_MTD +#endif /* QSPI reference clock */ #ifndef __ASSEMBLY__ unsigned int cm_get_qspi_controller_clk_hz(void);