From e8da4c40a875283230c83358438695c46ba0b0ed Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Tue, 23 Feb 2016 12:48:23 +0800 Subject: MLK-12434-4: mx6sxsabresd: dynamic setting mmcdev and mmcroot Dynamic setting mmcdev and mmcroot for mx6sxsabresd. Signed-off-by: Peng Fan (cherry picked from commit fb53c90269ead4f72028fd9bcc764e4924921a30) --- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'board') 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 * @@ -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"); -- cgit v1.1