diff options
author | Peng Fan <peng.fan@nxp.com> | 2016-02-23 12:50:49 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-04-05 14:04:29 +0800 |
commit | 9d1094112c27fec9b0eaef0c09f488c38ee812dd (patch) | |
tree | 3f3d91bc4fb4c17414541286e1e11af77f539cf2 | |
parent | ada56a50c577719f7004ecb3674940d445d927d2 (diff) | |
download | u-boot-imx-9d1094112c27fec9b0eaef0c09f488c38ee812dd.zip u-boot-imx-9d1094112c27fec9b0eaef0c09f488c38ee812dd.tar.gz u-boot-imx-9d1094112c27fec9b0eaef0c09f488c38ee812dd.tar.bz2 |
MLK-12434-6: mx6slevk: dynamic setting mmcdev and mmcroot
Dynamic setting mmcdev and mmcroot for mx6slevk.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 3308f3c48c644938c415ead23ed9acedc2fd7981)
-rw-r--r-- | board/freescale/mx6slevk/mx6slevk.c | 8 | ||||
-rw-r--r-- | include/configs/mx6slevk.h | 1 |
2 files changed, 9 insertions, 0 deletions
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=" \ |