diff options
author | Adrian Hunter <adrian.hunter@nokia.com> | 2010-02-15 13:03:34 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-02-15 13:03:34 -0500 |
commit | ce6f00165d5314698afd04ee20cede156cfcc593 (patch) | |
tree | d7df468cf7143cdb99917b5de25a923c4abc2807 /arch/arm/mach-omap2/hsmmc.c | |
parent | e3df0fb4132fff8717cb0c08403c12138fd3ae39 (diff) |
omap: RX51: Remux to pull eMMC lines down when powering off
It has been discovered that, when eMMC is powered off, current
will flow from OMAP eMMC data pull-ups to the eMMC voltage supply.
Configuring pads for OMAP off-mode does not help because eMMC is
powered off independently of OMAP off-mode. Hence the pads are
now re-configured when eMMC is powered on or off.
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/hsmmc.c')
-rw-r--r-- | arch/arm/mach-omap2/hsmmc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/hsmmc.c b/arch/arm/mach-omap2/hsmmc.c index cc7e77f09268..4a05c3722d54 100644 --- a/arch/arm/mach-omap2/hsmmc.c +++ b/arch/arm/mach-omap2/hsmmc.c | |||
@@ -48,6 +48,9 @@ static void hsmmc1_before_set_reg(struct device *dev, int slot, | |||
48 | u32 reg, prog_io; | 48 | u32 reg, prog_io; |
49 | struct omap_mmc_platform_data *mmc = dev->platform_data; | 49 | struct omap_mmc_platform_data *mmc = dev->platform_data; |
50 | 50 | ||
51 | if (mmc->slots[0].remux) | ||
52 | mmc->slots[0].remux(dev, slot, power_on); | ||
53 | |||
51 | /* | 54 | /* |
52 | * Assume we power both OMAP VMMC1 (for CMD, CLK, DAT0..3) and the | 55 | * Assume we power both OMAP VMMC1 (for CMD, CLK, DAT0..3) and the |
53 | * card with Vcc regulator (from twl4030 or whatever). OMAP has both | 56 | * card with Vcc regulator (from twl4030 or whatever). OMAP has both |
@@ -121,6 +124,9 @@ static void hsmmc23_before_set_reg(struct device *dev, int slot, | |||
121 | { | 124 | { |
122 | struct omap_mmc_platform_data *mmc = dev->platform_data; | 125 | struct omap_mmc_platform_data *mmc = dev->platform_data; |
123 | 126 | ||
127 | if (mmc->slots[0].remux) | ||
128 | mmc->slots[0].remux(dev, slot, power_on); | ||
129 | |||
124 | if (power_on) { | 130 | if (power_on) { |
125 | /* Only MMC2 supports a CLKIN */ | 131 | /* Only MMC2 supports a CLKIN */ |
126 | if (mmc->slots[0].internal_clock) { | 132 | if (mmc->slots[0].internal_clock) { |
@@ -185,6 +191,8 @@ void __init omap2_hsmmc_init(struct omap2_hsmmc_info *controllers) | |||
185 | mmc->slots[0].switch_pin = c->gpio_cd; | 191 | mmc->slots[0].switch_pin = c->gpio_cd; |
186 | mmc->slots[0].gpio_wp = c->gpio_wp; | 192 | mmc->slots[0].gpio_wp = c->gpio_wp; |
187 | 193 | ||
194 | mmc->slots[0].remux = c->remux; | ||
195 | |||
188 | if (c->cover_only) | 196 | if (c->cover_only) |
189 | mmc->slots[0].cover = 1; | 197 | mmc->slots[0].cover = 1; |
190 | 198 | ||