diff options
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 | ||