mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
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>
This commit is contained in:
parent
8f7ed08eb3
commit
4197a0f45b
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue