MLK-12434-6: mx6slevk: dynamic setting mmcdev and mmcroot
authorPeng Fan <peng.fan@nxp.com>
Tue, 23 Feb 2016 04:50:49 +0000 (12:50 +0800)
committerYe Li <ye.li@nxp.com>
Wed, 5 Apr 2017 06:04:29 +0000 (14:04 +0800)
Dynamic setting mmcdev and mmcroot for mx6slevk.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 3308f3c48c644938c415ead23ed9acedc2fd7981)

board/freescale/mx6slevk/mx6slevk.c
include/configs/mx6slevk.h

index 2e2d5b2..a40c1be 100644 (file)
@@ -627,6 +627,14 @@ int board_init(void)
        return 0;
 }
 
+int board_late_init(void)
+{
+#ifdef CONFIG_ENV_IS_IN_MMC
+       board_late_mmc_env_init();
+#endif
+       return 0;
+}
+
 int checkboard(void)
 {
        puts("Board: MX6SLEVK\n");
index 5d8274d..7131389 100644 (file)
@@ -63,6 +63,7 @@
        "mmcdev=1\0" \
        "mmcpart=1\0" \
        "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
+       "mmcautodetect=yes\0" \
        "mmcargs=setenv bootargs console=${console},${baudrate} " \
                "root=${mmcroot}\0" \
        "loadbootscript=" \