diff options
author | Marek Vasut <marex@denx.de> | 2015-12-20 04:00:44 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-12-22 21:30:02 +0100 |
commit | 4197a0f45b655c00eae738ddecee2a1009e972a3 (patch) | |
tree | 2ef233eefe07a1bbcc6c86c29bd71ada1f205068 /include | |
parent | 8f7ed08eb35e7c9660ee7c0bd3df5661ee9a2638 (diff) | |
download | u-boot-4197a0f45b655c00eae738ddecee2a1009e972a3.zip u-boot-4197a0f45b655c00eae738ddecee2a1009e972a3.tar.gz u-boot-4197a0f45b655c00eae738ddecee2a1009e972a3.tar.bz2 |
arm: socfpga: Enable SPL MMC/SPI support only if DM_MMC/SPI is enabled
It is not possible to compile MMC/SPI SPL if the respective DM_MMC/DM_SPI
bits are not enabled. Secure the code with an ifdef to prevent compiler
splat.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Chin Liang See <clsee@altera.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/socfpga_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index 35e4a75..ff7a300 100644 --- a/include/configs/socfpga_common.h +++ b/include/configs/socfpga_common.h @@ -330,8 +330,12 @@ unsigned int cm_get_qspi_controller_clk_hz(void); #define CONFIG_SPL_LIBGENERIC_SUPPORT #define CONFIG_SPL_WATCHDOG_SUPPORT #define CONFIG_SPL_SERIAL_SUPPORT +#ifdef CONFIG_DM_MMC #define CONFIG_SPL_MMC_SUPPORT +#endif +#ifdef CONFIG_DM_SPI #define CONFIG_SPL_SPI_SUPPORT +#endif /* SPL SDMMC boot support */ #ifdef CONFIG_SPL_MMC_SUPPORT |