diff options
author | Peng Fan <peng.fan@nxp.com> | 2016-02-23 12:48:23 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-04-05 14:04:29 +0800 |
commit | e8da4c40a875283230c83358438695c46ba0b0ed (patch) | |
tree | 6869deefab1816e439dfe45e019e50769236b414 /board | |
parent | 7810c81124f8816fa0a3540f87111786e977fc99 (diff) | |
download | u-boot-imx-e8da4c40a875283230c83358438695c46ba0b0ed.zip u-boot-imx-e8da4c40a875283230c83358438695c46ba0b0ed.tar.gz u-boot-imx-e8da4c40a875283230c83358438695c46ba0b0ed.tar.bz2 |
MLK-12434-4: mx6sxsabresd: dynamic setting mmcdev and mmcroot
Dynamic setting mmcdev and mmcroot for mx6sxsabresd.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit fb53c90269ead4f72028fd9bcc764e4924921a30)
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/mx6sxsabresd/mx6sxsabresd.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c b/board/freescale/mx6sxsabresd/mx6sxsabresd.c index 0460cd9..edb2221 100644 --- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c +++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014 Freescale Semiconductor, Inc. + * Copyright (C) 2014-2016 Freescale Semiconductor, Inc. * * Author: Fabio Estevam <fabio.estevam@freescale.com> * @@ -321,6 +321,11 @@ int board_mmc_get_env_dev(int devno) return devno - 1; } +int mmc_map_to_kernel_blk(int dev_no) +{ + return dev_no + 1; +} + int board_mmc_getcd(struct mmc *mmc) { struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; @@ -540,6 +545,16 @@ 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: MX6SX SABRE SDB\n"); |