summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-11-08 20:55:46 +0100
committerTom Rini <trini@ti.com>2014-12-04 11:04:40 -0500
commitf3e85e4825e02fbd21859c35881f639a2c3e7afd (patch)
tree2166e4d0ef572c57360363b8ba452419beaaf312 /drivers/mmc
parent95de9ab201e9c43c8969321711de9e93e444e420 (diff)
downloadu-boot-imx-f3e85e4825e02fbd21859c35881f639a2c3e7afd.zip
u-boot-imx-f3e85e4825e02fbd21859c35881f639a2c3e7afd.tar.gz
u-boot-imx-f3e85e4825e02fbd21859c35881f639a2c3e7afd.tar.bz2
twl4030: device-index-specific MMC power initializations, common ramp-up delay
Not every device has multiple MMC slots available, so it makes sense to enable only the required LDOs for the available slots. Generic code in omap_hsmmc will enable both VMMC1 and VMMC2, in doubt. Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/omap_hsmmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index bada006..3303eaf 100644
--- a/drivers/mmc/omap_hsmmc.c
+++ b/drivers/mmc/omap_hsmmc.c
@@ -137,8 +137,8 @@ static unsigned char mmc_board_init(struct mmc *mmc)
writel(pbias_lite, &t2_base->pbias_lite);
#endif
#if defined(CONFIG_TWL4030_POWER)
- twl4030_power_mmc_init();
- mdelay(100); /* ramp-up delay from Linux code */
+ twl4030_power_mmc_init(0);
+ twl4030_power_mmc_init(1);
#endif
#if defined(CONFIG_OMAP34XX)
writel(pbias_lite | PBIASLITEPWRDNZ1 |