Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e89715a7 authored by Abhilash K V's avatar Abhilash K V Committed by Tony Lindgren
Browse files

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: default avatarVaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: default avatarAbhilash K V <abhilash.kv@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent a15164f1
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -353,6 +353,14 @@ static int __init omap_hsmmc_pdata_init(struct omap2_hsmmc_info *c,
	 *
	 * temporary HACK: ocr_mask instead of fixed supply
	 */
	if (cpu_is_omap3505() || cpu_is_omap3517())
		mmc->slots[0].ocr_mask = MMC_VDD_165_195 |
					 MMC_VDD_26_27 |
					 MMC_VDD_27_28 |
					 MMC_VDD_29_30 |
					 MMC_VDD_30_31 |
					 MMC_VDD_31_32;
	else
		mmc->slots[0].ocr_mask = c->ocr_mask;

	if (!cpu_is_omap3517() && !cpu_is_omap3505())