[U-Boot] [PATCH 4/6] am43xx_evm: mmc: do not define DM_MMC for spl

Mugunthan V N mugunthanvnm at ti.com
Mon Sep 28 12:47:50 CEST 2015


Since spl doesn't support DM currently, do not define DM_MMC
for spl build.

Signed-off-by: Mugunthan V N <mugunthanvnm at ti.com>
---
 include/configs/am43xx_evm.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
index 03713e3..3bd104d 100644
--- a/include/configs/am43xx_evm.h
+++ b/include/configs/am43xx_evm.h
@@ -140,6 +140,14 @@
 #define CONFIG_USB_GADGET_DUALSPEED
 #endif
 
+/*
+ * Disable MMC DM for SPL build and can be re-enabled after adding
+ * DM support in SPL
+ */
+#ifdef CONFIG_SPL_BUILD
+#undef CONFIG_DM_MMC
+#endif
+
 #ifndef CONFIG_SPL_BUILD
 /* USB Device Firmware Update support */
 #define CONFIG_USB_FUNCTION_DFU
-- 
2.6.0.rc2.10.gf4d9753



More information about the U-Boot mailing list