diff options
author | Peng Fan <peng.fan@nxp.com> | 2016-02-23 12:45:20 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2016-03-25 13:19:29 +0800 |
commit | 54ea563dbe1804e426afbbf0710ffa815551d92b (patch) | |
tree | 0d7f8d19589b41cc2c78ec35eff535b1c1dcc46b /board/freescale | |
parent | b46b99a901eb194e81fc4836ee2259ad8857f4d3 (diff) | |
download | u-boot-imx-54ea563dbe1804e426afbbf0710ffa815551d92b.zip u-boot-imx-54ea563dbe1804e426afbbf0710ffa815551d92b.tar.gz u-boot-imx-54ea563dbe1804e426afbbf0710ffa815551d92b.tar.bz2 |
MLK-12434-2: mx6qarm2: dynamic setting mmcdev and mmcroot
Dynamic setting mmcdev and mmcroot for mx6qarm2.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/mx6qarm2/mx6qarm2.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/board/freescale/mx6qarm2/mx6qarm2.c b/board/freescale/mx6qarm2/mx6qarm2.c index 5aae721..8563836 100644 --- a/board/freescale/mx6qarm2/mx6qarm2.c +++ b/board/freescale/mx6qarm2/mx6qarm2.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. + * Copyright (C) 2010-2016 Freescale Semiconductor, Inc. * * SPDX-License-Identifier: GPL-2.0+ */ @@ -17,6 +17,7 @@ #include <miiphy.h> #include <netdev.h> #include <usb.h> +#include <asm/arch/sys_proto.h> DECLARE_GLOBAL_DATA_PTR; @@ -115,6 +116,11 @@ int board_mmc_get_env_dev(int devno) return devno - 2; } +int mmc_map_to_kernel_blk(int devno) +{ + return devno + 2; +} + int board_mmc_getcd(struct mmc *mmc) { struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; @@ -276,6 +282,15 @@ 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) { #ifdef CONFIG_MX6DL |