diff options
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 100bb425e9c3..2f4a598ba67e 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -708,87 +708,6 @@ void __init omap242x_init_mmc(struct omap_mmc_platform_data **mmc_data) | |||
708 | 708 | ||
709 | #if defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE) | 709 | #if defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE) |
710 | 710 | ||
711 | static inline void omap2_mmc_mux(struct omap_mmc_platform_data *mmc_controller, | ||
712 | int controller_nr) | ||
713 | { | ||
714 | if ((mmc_controller->slots[0].switch_pin > 0) && \ | ||
715 | (mmc_controller->slots[0].switch_pin < OMAP_MAX_GPIO_LINES)) | ||
716 | omap_mux_init_gpio(mmc_controller->slots[0].switch_pin, | ||
717 | OMAP_PIN_INPUT_PULLUP); | ||
718 | if ((mmc_controller->slots[0].gpio_wp > 0) && \ | ||
719 | (mmc_controller->slots[0].gpio_wp < OMAP_MAX_GPIO_LINES)) | ||
720 | omap_mux_init_gpio(mmc_controller->slots[0].gpio_wp, | ||
721 | OMAP_PIN_INPUT_PULLUP); | ||
722 | if (cpu_is_omap34xx()) { | ||
723 | if (controller_nr == 0) { | ||
724 | omap_mux_init_signal("sdmmc1_clk", | ||
725 | OMAP_PIN_INPUT_PULLUP); | ||
726 | omap_mux_init_signal("sdmmc1_cmd", | ||
727 | OMAP_PIN_INPUT_PULLUP); | ||
728 | omap_mux_init_signal("sdmmc1_dat0", | ||
729 | OMAP_PIN_INPUT_PULLUP); | ||
730 | if (mmc_controller->slots[0].caps & | ||
731 | (MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA)) { | ||
732 | omap_mux_init_signal("sdmmc1_dat1", | ||
733 | OMAP_PIN_INPUT_PULLUP); | ||
734 | omap_mux_init_signal("sdmmc1_dat2", | ||
735 | OMAP_PIN_INPUT_PULLUP); | ||
736 | omap_mux_init_signal("sdmmc1_dat3", | ||
737 | OMAP_PIN_INPUT_PULLUP); | ||
738 | } | ||
739 | if (mmc_controller->slots[0].caps & | ||
740 | MMC_CAP_8_BIT_DATA) { | ||
741 | omap_mux_init_signal("sdmmc1_dat4", | ||
742 | OMAP_PIN_INPUT_PULLUP); | ||
743 | omap_mux_init_signal("sdmmc1_dat5", | ||
744 | OMAP_PIN_INPUT_PULLUP); | ||
745 | omap_mux_init_signal("sdmmc1_dat6", | ||
746 | OMAP_PIN_INPUT_PULLUP); | ||
747 | omap_mux_init_signal("sdmmc1_dat7", | ||
748 | OMAP_PIN_INPUT_PULLUP); | ||
749 | } | ||
750 | } | ||
751 | if (controller_nr == 1) { | ||
752 | /* MMC2 */ | ||
753 | omap_mux_init_signal("sdmmc2_clk", | ||
754 | OMAP_PIN_INPUT_PULLUP); | ||
755 | omap_mux_init_signal("sdmmc2_cmd", | ||
756 | OMAP_PIN_INPUT_PULLUP); | ||
757 | omap_mux_init_signal("sdmmc2_dat0", | ||
758 | OMAP_PIN_INPUT_PULLUP); | ||
759 | |||
760 | /* | ||
761 | * For 8 wire configurations, Lines DAT4, 5, 6 and 7 need to be muxed | ||
762 | * in the board-*.c files | ||
763 | */ | ||
764 | if (mmc_controller->slots[0].caps & | ||
765 | (MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA)) { | ||
766 | omap_mux_init_signal("sdmmc2_dat1", | ||
767 | OMAP_PIN_INPUT_PULLUP); | ||
768 | omap_mux_init_signal("sdmmc2_dat2", | ||
769 | OMAP_PIN_INPUT_PULLUP); | ||
770 | omap_mux_init_signal("sdmmc2_dat3", | ||
771 | OMAP_PIN_INPUT_PULLUP); | ||
772 | } | ||
773 | if (mmc_controller->slots[0].caps & | ||
774 | MMC_CAP_8_BIT_DATA) { | ||
775 | omap_mux_init_signal("sdmmc2_dat4.sdmmc2_dat4", | ||
776 | OMAP_PIN_INPUT_PULLUP); | ||
777 | omap_mux_init_signal("sdmmc2_dat5.sdmmc2_dat5", | ||
778 | OMAP_PIN_INPUT_PULLUP); | ||
779 | omap_mux_init_signal("sdmmc2_dat6.sdmmc2_dat6", | ||
780 | OMAP_PIN_INPUT_PULLUP); | ||
781 | omap_mux_init_signal("sdmmc2_dat7.sdmmc2_dat7", | ||
782 | OMAP_PIN_INPUT_PULLUP); | ||
783 | } | ||
784 | } | ||
785 | |||
786 | /* | ||
787 | * For MMC3 the pins need to be muxed in the board-*.c files | ||
788 | */ | ||
789 | } | ||
790 | } | ||
791 | |||
792 | void __init omap2_init_mmc(struct omap_mmc_platform_data **mmc_data, | 711 | void __init omap2_init_mmc(struct omap_mmc_platform_data **mmc_data, |
793 | int nr_controllers) | 712 | int nr_controllers) |
794 | { | 713 | { |
@@ -802,8 +721,6 @@ void __init omap2_init_mmc(struct omap_mmc_platform_data **mmc_data, | |||
802 | if (!mmc_data[i]) | 721 | if (!mmc_data[i]) |
803 | continue; | 722 | continue; |
804 | 723 | ||
805 | omap2_mmc_mux(mmc_data[i], i); | ||
806 | |||
807 | switch (i) { | 724 | switch (i) { |
808 | case 0: | 725 | case 0: |
809 | base = OMAP2_MMC1_BASE; | 726 | base = OMAP2_MMC1_BASE; |