summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBalaji T K <balajitk@ti.com>2011-09-08 06:34:57 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-30 22:00:55 +0200
commit14fa2dd00f4f996c9583c8fba63bfa03f5025ec3 (patch)
treeba54542fd79b3f228ec80d87abd0b41ff743c7de /include
parentecd9af88ac70dec7f0ea33613da2f889cf19e433 (diff)
downloadu-boot-imx-14fa2dd00f4f996c9583c8fba63bfa03f5025ec3.zip
u-boot-imx-14fa2dd00f4f996c9583c8fba63bfa03f5025ec3.tar.gz
u-boot-imx-14fa2dd00f4f996c9583c8fba63bfa03f5025ec3.tar.bz2
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 'include')
-rw-r--r--include/configs/omap4_common.h2
-rw-r--r--include/configs/omap4_sdp4430.h2
-rw-r--r--include/twl6030.h3
3 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/omap4_common.h b/include/configs/omap4_common.h
index d8ac8c0..228eac5 100644
--- a/include/configs/omap4_common.h
+++ b/include/configs/omap4_common.h
@@ -98,7 +98,9 @@
#define CONFIG_I2C_MULTI_BUS 1
/* TWL6030 */
+#ifndef CONFIG_SPL_BUILD
#define CONFIG_TWL6030_POWER 1
+#endif
/* MMC */
#define CONFIG_GENERIC_MMC 1
diff --git a/include/configs/omap4_sdp4430.h b/include/configs/omap4_sdp4430.h
index 39d7154..9e03291 100644
--- a/include/configs/omap4_sdp4430.h
+++ b/include/configs/omap4_sdp4430.h
@@ -37,7 +37,9 @@
#include <configs/omap4_common.h>
/* Battery Charger */
+#ifndef CONFIG_SPL_BUILD
#define CONFIG_CMD_BAT 1
+#endif
/* ENV related config options */
#define CONFIG_ENV_IS_IN_MMC 1
diff --git a/include/twl6030.h b/include/twl6030.h
index 6ed68a0..a9fcadb 100644
--- a/include/twl6030.h
+++ b/include/twl6030.h
@@ -33,6 +33,8 @@
#define TWL6030_CHIP_PWM 0x49
/* Slave Address 0x48 */
+#define VMMC_CFG_STATE 0x9A
+#define VMMC_CFG_VOLTATE 0x9B
#define VUSB_CFG_STATE 0xA2
#define MISC1 0xE4
@@ -130,3 +132,4 @@ void twl6030_start_usb_charging(void);
void twl6030_stop_usb_charging(void);
int twl6030_get_battery_voltage(void);
int twl6030_get_battery_current(void);
+void twl6030_power_mmc_init(void);