[U-Boot] [PATCH v3 2/2] config_fallbacks: default CONFIG_SYS_MMC_ENV_DEV to 0

Hector Palacios hector.palacios at digi.com
Thu Jan 23 13:39:20 CET 2014


Since function mmc_get_env_devno is __weak and can be overridden by
board code, boards do not need to mandatory define
CONFIG_SYS_MMC_ENV_DEV.
If the constant is not defined, define it to 0 by default.

Signed-off-by: Hector Palacios <hector.palacios at digi.com>
Reviewed-by: Stephen Warren <swarren at nvidia.com>
---

Notes:
    Changes since v2:
    - Move CONFIG_SYS_MMC_ENV_DEV to config_fallbacks
    Changes since v1:
    - Use default define if not set

 include/config_fallbacks.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/config_fallbacks.h b/include/config_fallbacks.h
index 7a6f55feb12e..b17fb28d90b9 100644
--- a/include/config_fallbacks.h
+++ b/include/config_fallbacks.h
@@ -54,6 +54,9 @@
 #endif
 
 #if defined(CONFIG_MMC)
+#if !defined(CONFIG_SYS_MMC_ENV_DEV)
+#define CONFIG_SYS_MMC_ENV_DEV 0
+#endif
 #if !defined(CONFIG_SYS_MMC_ENV_PART)
 #define CONFIG_SYS_MMC_ENV_PART 0
 #endif


More information about the U-Boot mailing list