]> code.ossystems Code Review - bsp/u-boot.git/commitdiff
wandboard: Use env storage info for mmcdev/mmcpart
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 19 Apr 2013 03:41:59 +0000 (03:41 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Sun, 26 May 2013 02:33:09 +0000 (23:33 -0300)
This makes environment and mmcdev/mmcpart in sync with SYS_MMC_ENV_DEV
and SYS_MMC_ENV_PART settings.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
include/configs/wandboard.h

index 6a07fdefdac1374c068e5ff9fc0f2d20600f8109..fe36b14b44745023dc60ac55a91d17290a1e5a45 100644 (file)
@@ -97,8 +97,8 @@
        "fdt_addr=0x11000000\0" \
        "boot_fdt=try\0" \
        "ip_dyn=yes\0" \
-       "mmcdev=0\0" \
-       "mmcpart=1\0" \
+       "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
+       "mmcpart=" __stringify(CONFIG_SYS_MMC_ENV_PART) "\0" \
        "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
        "mmcargs=setenv bootargs console=${console},${baudrate} " \
                "root=${mmcroot}\0" \
 #define CONFIG_ENV_IS_IN_MMC
 #define CONFIG_ENV_OFFSET              (6 * 64 * 1024)
 #define CONFIG_SYS_MMC_ENV_DEV         0
+#define CONFIG_SYS_MMC_ENV_PART                1
 
 #define CONFIG_OF_LIBFDT
 #define CONFIG_CMD_BOOTZ