diff options
author | Vaibhav Hiremath <hvaibhav@ti.com> | 2009-11-23 16:36:05 +0530 |
---|---|---|
committer | Tom Rix <Tom.Rix@windriver.com> | 2009-11-27 16:26:18 -0600 |
commit | 7c15121f4007751af8c45c978c4ad7d6c5ff11f9 (patch) | |
tree | 783891fefef681d15af61984b3042b28caef7961 /drivers | |
parent | 6406d6daea51bbeed21f3829b37d3f395c198e54 (diff) | |
download | u-boot-imx-7c15121f4007751af8c45c978c4ad7d6c5ff11f9.zip u-boot-imx-7c15121f4007751af8c45c978c4ad7d6c5ff11f9.tar.gz u-boot-imx-7c15121f4007751af8c45c978c4ad7d6c5ff11f9.tar.bz2 |
omap3_mmc: Encapsulate twl4030 under option CONFIG_TWL4030_POWER
Fixes the build/compilation error if we try to re-use the omap3_mmc code
without TWL4030_POWER.
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/omap3_mmc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/omap3_mmc.c b/drivers/mmc/omap3_mmc.c index 513dd25..96c0e65 100644 --- a/drivers/mmc/omap3_mmc.c +++ b/drivers/mmc/omap3_mmc.c @@ -63,7 +63,9 @@ unsigned char mmc_board_init(void) { t2_t *t2_base = (t2_t *)T2_BASE; +#if defined(CONFIG_TWL4030_POWER) twl4030_power_mmc_init(); +#endif writel(readl(&t2_base->pbias_lite) | PBIASLITEPWRDNZ1 | PBIASSPEEDCTRL0 | PBIASLITEPWRDNZ0, |