diff options
author | Madhu <madhu.cr@ti.com> | 2009-11-22 13:11:07 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-11-22 13:24:32 -0500 |
commit | 41fd03d66e6ae4430a0fdf7c62692a7b20b6ee6b (patch) | |
tree | 8dfa1a7c78a9be40eccede335f2dddabac1029ee /arch | |
parent | 4596d14ad88bbacc80970cb964b8f3d6ade7e305 (diff) |
omap3630: Configure HSMMC1 to 4-bit
The HSMMC1 controller on omap3630 supprts only 4-bit mode. If cpu
is 3630 configure HSMMC1 wires to 4-bit.
Signed-off-by: Madhusudhan Chikkature <madhu.cr@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/mmc-twl4030.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/mmc-twl4030.c b/arch/arm/mach-omap2/mmc-twl4030.c index 340391468909..7bef170686dd 100644 --- a/arch/arm/mach-omap2/mmc-twl4030.c +++ b/arch/arm/mach-omap2/mmc-twl4030.c | |||
@@ -489,6 +489,12 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers) | |||
489 | /* on-chip level shifting via PBIAS0/PBIAS1 */ | 489 | /* on-chip level shifting via PBIAS0/PBIAS1 */ |
490 | mmc->slots[0].set_power = twl_mmc1_set_power; | 490 | mmc->slots[0].set_power = twl_mmc1_set_power; |
491 | mmc->slots[0].set_sleep = twl_mmc1_set_sleep; | 491 | mmc->slots[0].set_sleep = twl_mmc1_set_sleep; |
492 | |||
493 | /* Omap3630 HSMMC1 supports only 4-bit */ | ||
494 | if (cpu_is_omap3630() && c->wires > 4) { | ||
495 | c->wires = 4; | ||
496 | mmc->slots[0].wires = c->wires; | ||
497 | } | ||
492 | break; | 498 | break; |
493 | case 2: | 499 | case 2: |
494 | if (c->ext_clock) | 500 | if (c->ext_clock) |