aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAbhilash K V <abhilash.kv@ti.com>2011-12-09 15:27:36 -0500
committerTony Lindgren <tony@atomide.com>2011-12-09 15:32:53 -0500
commite89715a7e48d505f42813a4e3ee0f0efb49832ba (patch)
tree1a2728b46343c71ef9a28f176f7e00199ac581b1 /arch
parenta15164f13fb3f0f70849c2a099ff0af7b2924ba1 (diff)
ARM: OMAP: hsmmc: Support for AM3517 MMC1 voltages
This patch fixes the following error message which appears while intializing MMC1 on the AM3517 EVM base-board: mmc0: host doesn't support card's voltages mmc0: error -22 whilst initialising SD card The ocr_mask, which enumerates the volatges supported by the MMC card was not being indicated before, assuming that a separate Vcc regulator maybe another controllable regulator driver would be doing this. This patch statically specifies a subset of the voltages supported by the MMC driver, which are provided by the current fixed voltage regulator on AM3517 EVM. Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> Signed-off-by: Abhilash K V <abhilash.kv@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/hsmmc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/hsmmc.c b/arch/arm/mach-omap2/hsmmc.c
index 997b33d76418..bd844af13af5 100644
--- a/arch/arm/mach-omap2/hsmmc.c
+++ b/arch/arm/mach-omap2/hsmmc.c
@@ -353,7 +353,15 @@ static int __init omap_hsmmc_pdata_init(struct omap2_hsmmc_info *c,
353 * 353 *
354 * temporary HACK: ocr_mask instead of fixed supply 354 * temporary HACK: ocr_mask instead of fixed supply
355 */ 355 */
356 mmc->slots[0].ocr_mask = c->ocr_mask; 356 if (cpu_is_omap3505() || cpu_is_omap3517())
357 mmc->slots[0].ocr_mask = MMC_VDD_165_195 |
358 MMC_VDD_26_27 |
359 MMC_VDD_27_28 |
360 MMC_VDD_29_30 |
361 MMC_VDD_30_31 |
362 MMC_VDD_31_32;
363 else
364 mmc->slots[0].ocr_mask = c->ocr_mask;
357 365
358 if (!cpu_is_omap3517() && !cpu_is_omap3505()) 366 if (!cpu_is_omap3517() && !cpu_is_omap3505())
359 mmc->slots[0].features |= HSMMC_HAS_PBIAS; 367 mmc->slots[0].features |= HSMMC_HAS_PBIAS;