From e78c02f07f8a335b4c160dbe3b255d3fc1f80247 Mon Sep 17 00:00:00 2001 From: Jean-Jacques Hiblot Date: Wed, 15 Feb 2017 15:17:09 +0100 Subject: ti: boot: Register the MMC controllers in SPL in the same way as in u-boot commit 3eb68c53ebd8aee9ed2b9b58761856a366c2764f branch ti-u-boot-2017.01 To keep a consistent MMC device mapping in SPL and in u-boot, let's register the MMC controllers the same way in u-boot and in the SPL. In terms of boot time, it doesn't hurt to register more controllers than needed because the MMC device is initialized only prior being accessed for the first time. Having the same device mapping in SPL and u-boot allows us to use the environment in SPL whatever the MMC boot device. Tested-by: Sekhar Nori Signed-off-by: Jean-Jacques Hiblot --- board/BuR/common/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/BuR/common/common.c') diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c index ce4acc13e0..677e043797 100644 --- a/board/BuR/common/common.c +++ b/board/BuR/common/common.c @@ -684,7 +684,7 @@ int board_eth_init(bd_t *bis) return rv; } #endif /* defined(CONFIG_DRIVER_TI_CPSW) && !defined(CONFIG_SPL_BUILD) */ -#if defined(CONFIG_GENERIC_MMC) && !defined(CONFIG_SPL_BUILD) +#if defined(CONFIG_GENERIC_MMC) int board_mmc_init(bd_t *bis) { return omap_mmc_init(1, 0, 0, -1, -1); -- cgit v1.2.3