From 9d1094112c27fec9b0eaef0c09f488c38ee812dd Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Tue, 23 Feb 2016 12:50:49 +0800 Subject: MLK-12434-6: mx6slevk: dynamic setting mmcdev and mmcroot Dynamic setting mmcdev and mmcroot for mx6slevk. Signed-off-by: Peng Fan (cherry picked from commit 3308f3c48c644938c415ead23ed9acedc2fd7981) --- board/freescale/mx6slevk/mx6slevk.c | 8 ++++++++ include/configs/mx6slevk.h | 1 + 2 files changed, 9 insertions(+) diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c index 2e2d5b2..a40c1be 100644 --- a/board/freescale/mx6slevk/mx6slevk.c +++ b/board/freescale/mx6slevk/mx6slevk.c @@ -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"); diff --git a/include/configs/mx6slevk.h b/include/configs/mx6slevk.h index 5d8274d..7131389 100644 --- a/include/configs/mx6slevk.h +++ b/include/configs/mx6slevk.h @@ -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=" \ -- cgit v1.1