From fbf1b08a938fc69643222eeac351c2affdaf6d13 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Sat, 27 Feb 2016 19:18:52 +0100 Subject: omap_hsmmc: Board-specific TWL6030 MMC power initialization Boards using the TWL6030 regulator may not all use the LDOs the same way. Some might also not use MMC1 at all, so VMMC would't have to be enabled. This delegates TWL6030 MMC power initializations to board-specific functions, that may still call twl6030_power_mmc_init for the default behavior. Signed-off-by: Paul Kocialkowski --- board/ti/panda/panda.c | 6 ++++++ board/ti/sdp4430/sdp.c | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'board/ti') diff --git a/board/ti/panda/panda.c b/board/ti/panda/panda.c index eb9ce63..959a23f 100644 --- a/board/ti/panda/panda.c +++ b/board/ti/panda/panda.c @@ -11,6 +11,7 @@ #include #include #include +#include #include "panda_mux_data.h" @@ -291,6 +292,11 @@ int board_mmc_init(bd_t *bis) { return omap_mmc_init(0, 0, 0, -1, -1); } + +void board_mmc_power_init(void) +{ + twl6030_power_mmc_init(0); +} #endif #ifdef CONFIG_USB_EHCI diff --git a/board/ti/sdp4430/sdp.c b/board/ti/sdp4430/sdp.c index 1e9ef9e..c456745 100644 --- a/board/ti/sdp4430/sdp.c +++ b/board/ti/sdp4430/sdp.c @@ -80,6 +80,12 @@ int board_mmc_init(bd_t *bis) omap_mmc_init(1, 0, 0, -1, -1); return 0; } + +void board_mmc_power_init(void) +{ + twl6030_power_mmc_init(0); + twl6030_power_mmc_init(1); +} #endif /* -- cgit v1.1