diff options
| author | Balaji T K <balajitk@ti.com> | 2011-09-08 06:34:57 +0000 | 
|---|---|---|
| committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-09-30 22:00:55 +0200 | 
| commit | 14fa2dd00f4f996c9583c8fba63bfa03f5025ec3 (patch) | |
| tree | ba54542fd79b3f228ec80d87abd0b41ff743c7de /drivers/power/twl6030.c | |
| parent | ecd9af88ac70dec7f0ea33613da2f889cf19e433 (diff) | |
| download | olio-uboot-2014.01-14fa2dd00f4f996c9583c8fba63bfa03f5025ec3.tar.xz olio-uboot-2014.01-14fa2dd00f4f996c9583c8fba63bfa03f5025ec3.zip | |
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 <balajitk@ti.com>
Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'drivers/power/twl6030.c')
| -rw-r--r-- | drivers/power/twl6030.c | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/drivers/power/twl6030.c b/drivers/power/twl6030.c index fef57b433..c5a0038ca 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; |