From 46c8ebc8cddb81e879d08030f030eca53b123ca9 Mon Sep 17 00:00:00 2001 From: Hannes Petermaier Date: Tue, 8 Apr 2014 08:39:20 +0200 Subject: Add board_mmc_init(...) function for init mmc1 only Since B&R boards uses only MMC-Controller #1, it only wastes time if we initialize #0 first to see that there is nothing. Cc: Acked-by: Pantelis Antoniou Signed-off-by: Hannes Petermaier --- board/BuR/common/common.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'board/BuR/common') diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c index 4c926ce700..25cbe62b1f 100644 --- a/board/BuR/common/common.c +++ b/board/BuR/common/common.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -214,3 +215,9 @@ int board_eth_init(bd_t *bis) return rv; } #endif /* CONFIG_DRIVER_TI_CPSW */ +#if defined(CONFIG_GENERIC_MMC) && !defined(CONFIG_SPL_BUILD) +int board_mmc_init(bd_t *bis) +{ + return omap_mmc_init(1, 0, 0, -1, -1); +} +#endif -- cgit v1.2.1