diff options
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 10f3a3c58cc0..3d30f22c4c88 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -591,6 +591,15 @@ static inline void omap_hsmmc_reset(void) {} | |||
591 | static inline void omap2_mmc_mux(struct omap_mmc_platform_data *mmc_controller, | 591 | static inline void omap2_mmc_mux(struct omap_mmc_platform_data *mmc_controller, |
592 | int controller_nr) | 592 | int controller_nr) |
593 | { | 593 | { |
594 | if ((mmc_controller->slots[0].switch_pin > 0) && \ | ||
595 | (mmc_controller->slots[0].switch_pin < OMAP_MAX_GPIO_LINES)) | ||
596 | omap_mux_init_gpio(mmc_controller->slots[0].switch_pin, | ||
597 | OMAP_PIN_INPUT_PULLUP); | ||
598 | if ((mmc_controller->slots[0].gpio_wp > 0) && \ | ||
599 | (mmc_controller->slots[0].gpio_wp < OMAP_MAX_GPIO_LINES)) | ||
600 | omap_mux_init_gpio(mmc_controller->slots[0].gpio_wp, | ||
601 | OMAP_PIN_INPUT_PULLUP); | ||
602 | |||
594 | if (cpu_is_omap2420() && controller_nr == 0) { | 603 | if (cpu_is_omap2420() && controller_nr == 0) { |
595 | omap_cfg_reg(H18_24XX_MMC_CMD); | 604 | omap_cfg_reg(H18_24XX_MMC_CMD); |
596 | omap_cfg_reg(H15_24XX_MMC_CLKI); | 605 | omap_cfg_reg(H15_24XX_MMC_CLKI); |