summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-12-20 04:00:45 +0100
committerMarek Vasut <marex@denx.de>2015-12-22 21:30:02 +0100
commiteba522a0f7e0bae819633977aa9ad905775a1b68 (patch)
treeb726fb37112eb1c02b8f99364a0ab22280f5aac2
parent4197a0f45b655c00eae738ddecee2a1009e972a3 (diff)
downloadu-boot-imx-eba522a0f7e0bae819633977aa9ad905775a1b68.zip
u-boot-imx-eba522a0f7e0bae819633977aa9ad905775a1b68.tar.gz
u-boot-imx-eba522a0f7e0bae819633977aa9ad905775a1b68.tar.bz2
arm: socfpga: Enable DFU MMC support only if DM_MMC is enabled
It is not possible to compile DFU MMC support if the MMC support is not compiled into U-Boot. 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>
-rw-r--r--include/configs/socfpga_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index ff7a300..2d1765d 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -248,7 +248,9 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
#define CONFIG_USB_FUNCTION_MASS_STORAGE
#define CONFIG_USB_FUNCTION_DFU
+#ifdef CONFIG_DM_MMC
#define CONFIG_DFU_MMC
+#endif
#define CONFIG_SYS_DFU_DATA_BUF_SIZE (32 * 1024 * 1024)
#define DFU_DEFAULT_POLL_TIMEOUT 300