summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorBalaji T K <[email protected]>2011-09-08 06:34:57 +0000
committerAlbert ARIBAUD <[email protected]>2011-09-30 22:00:55 +0200
commit14fa2dd00f4f996c9583c8fba63bfa03f5025ec3 (patch)
treeba54542fd79b3f228ec80d87abd0b41ff743c7de /drivers/power
parentecd9af88ac70dec7f0ea33613da2f889cf19e433 (diff)
mmc: omap: config VMMC, MMC1_PBIAS
Config VMMC voltage to 3V for MMC/SD card slot and PBIAS settings needed for OMAP4 Fixes MMC/SD detection on boot from eMMC. Signed-off-by: Balaji T K <[email protected]> Signed-off-by: Aneesh V <[email protected]> Signed-off-by: Sandeep Paulraj <[email protected]>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/twl6030.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/power/twl6030.c b/drivers/power/twl6030.c
index fef57b43377..c5a0038cadc 100644
--- a/drivers/power/twl6030.c
+++ b/drivers/power/twl6030.c
@@ -182,6 +182,13 @@ void twl6030_init_battery_charging(void)
return;
}
+void twl6030_power_mmc_init()
+{
+ /* set voltage to 3.0 and turnon for APP */
+ twl6030_i2c_write_u8(TWL6030_CHIP_PM, 0x15, VMMC_CFG_VOLTATE);
+ twl6030_i2c_write_u8(TWL6030_CHIP_PM, 0x21, VMMC_CFG_STATE);
+}
+
void twl6030_usb_device_settings()
{
u8 data = 0;