omap: mux: Replace omap_cfg_reg() with new style signal or gpio functions
authorTony Lindgren <tony@atomide.com>
Sat, 12 Dec 2009 00:16:32 +0000 (16:16 -0800)
committerTony Lindgren <tony@atomide.com>
Sat, 12 Dec 2009 00:16:32 +0000 (16:16 -0800)
Replace omap_cfg_reg() with new style signal or gpio functions

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-3430sdp.c
arch/arm/mach-omap2/board-3630sdp.c
arch/arm/mach-omap2/board-cm-t35.c
arch/arm/mach-omap2/board-omap3beagle.c
arch/arm/mach-omap2/board-omap3evm.c
arch/arm/mach-omap2/board-omap3pandora.c
arch/arm/mach-omap2/board-overo.c
arch/arm/mach-omap2/board-rx51-peripherals.c
arch/arm/mach-omap2/board-rx51.c
arch/arm/mach-omap2/devices.c
arch/arm/mach-omap2/usb-ehci.c

index e5d911881534698ff23bcde1457637c350af9ebf..ded3e875ec8026e69fb7952efb4c651389668c2f 100644 (file)
@@ -626,7 +626,9 @@ static inline void board_smc91x_init(void)
 
 static void enable_board_wakeup_source(void)
 {
-       omap_cfg_reg(AF26_34XX_SYS_NIRQ); /* T2 interrupt line (keypad) */
+       /* T2 interrupt line (keypad) */
+       omap_mux_init_signal("sys_nirq",
+               OMAP_WAKEUP_EN | OMAP_PIN_INPUT_PULLUP);
 }
 
 static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = {
index 348b70b983366cab7712c829adc30f50879527d8..e6cbc27dd10764266b295568b677c016716f6ebe 100755 (executable)
@@ -23,6 +23,7 @@
 
 #include <mach/board-zoom.h>
 
+#include "mux.h"
 #include "sdram-hynix-h8mbx00u0mer-0em.h"
 
 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
@@ -48,7 +49,9 @@ static inline void board_smc91x_init(void)
 
 static void enable_board_wakeup_source(void)
 {
-       omap_cfg_reg(AF26_34XX_SYS_NIRQ); /* T2 interrupt line (keypad) */
+       /* T2 interrupt line (keypad) */
+       omap_mux_init_signal("sys_nirq",
+               OMAP_WAKEUP_EN | OMAP_PIN_INPUT_PULLUP);
 }
 
 static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = {
index 84321f67e7f11ad971fcdaf2e0d7950a4606046e..10a5955487241833927487f7939156b61602a813 100644 (file)
@@ -503,7 +503,8 @@ static void __init cm_t35_init(void)
 
        usb_musb_init();
 
-       omap_cfg_reg(AF26_34XX_SYS_NIRQ);
+       omap_mux_init_signal("sys_nirq",
+               OMAP_WAKEUP_EN | OMAP_PIN_INPUT_PULLUP);
 }
 
 MACHINE_START(CM_T35, "Compulab CM-T35")
index e669dbb23b7ea56878942711f599c6d54afbcd30..9e606b107ee68d6d362c4986e98081909ccc1326 100644 (file)
@@ -141,10 +141,10 @@ static int beagle_twl_gpio_setup(struct device *dev,
                unsigned gpio, unsigned ngpio)
 {
        if (system_rev >= 0x20 && system_rev <= 0x34301000) {
-               omap_cfg_reg(AG9_34XX_GPIO23);
+               omap_mux_init_gpio(23, OMAP_PIN_INPUT);
                mmc[0].gpio_wp = 23;
        } else {
-               omap_cfg_reg(AH8_34XX_GPIO29);
+               omap_mux_init_gpio(29, OMAP_PIN_INPUT);
        }
        /* gpio + 0 is "mmc0_cd" (input/IRQ) */
        mmc[0].gpio_cd = gpio + 0;
@@ -439,7 +439,7 @@ static void __init omap3_beagle_init(void)
                        ARRAY_SIZE(omap3_beagle_devices));
        omap_serial_init();
 
-       omap_cfg_reg(J25_34XX_GPIO170);
+       omap_mux_init_gpio(170, OMAP_PIN_INPUT);
        gpio_request(170, "DVI_nPD");
        /* REVISIT leave DVI powered down until it's needed ... */
        gpio_direction_output(170, true);
@@ -449,8 +449,8 @@ static void __init omap3_beagle_init(void)
        omap3beagle_flash_init();
 
        /* Ensure SDRC pins are mux'd for self-refresh */
-       omap_cfg_reg(H16_34XX_SDRC_CKE0);
-       omap_cfg_reg(H17_34XX_SDRC_CKE1);
+       omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
+       omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
 }
 
 static void __init omap3_beagle_map_io(void)
index ad174aeb61010f9c96671b5a28f51ff58cc20a53..0457f615339fd3c0e57990158d683fbc4e74e235 100644 (file)
@@ -224,7 +224,7 @@ static int omap3evm_twl_gpio_setup(struct device *dev,
                unsigned gpio, unsigned ngpio)
 {
        /* gpio + 0 is "mmc0_cd" (input/IRQ) */
-       omap_cfg_reg(L8_34XX_GPIO63);
+       omap_mux_init_gpio(63, OMAP_PIN_INPUT);
        mmc[0].gpio_cd = gpio + 0;
        twl4030_mmc_init(mmc);
 
@@ -450,24 +450,24 @@ static void __init omap3_evm_init(void)
 #endif
        if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) {
                /* enable EHCI VBUS using GPIO22 */
-               omap_cfg_reg(AF9_34XX_GPIO22);
+               omap_mux_init_gpio(22, OMAP_PIN_INPUT_PULLUP);
                gpio_request(OMAP3_EVM_EHCI_VBUS, "enable EHCI VBUS");
                gpio_direction_output(OMAP3_EVM_EHCI_VBUS, 0);
                gpio_set_value(OMAP3_EVM_EHCI_VBUS, 1);
 
                /* Select EHCI port on main board */
-               omap_cfg_reg(U3_34XX_GPIO61);
+               omap_mux_init_gpio(61, OMAP_PIN_INPUT_PULLUP);
                gpio_request(OMAP3_EVM_EHCI_SELECT, "select EHCI port");
                gpio_direction_output(OMAP3_EVM_EHCI_SELECT, 0);
                gpio_set_value(OMAP3_EVM_EHCI_SELECT, 0);
 
                /* setup EHCI phy reset config */
-               omap_cfg_reg(AH14_34XX_GPIO21);
+               omap_mux_init_gpio(21, OMAP_PIN_INPUT_PULLUP);
                ehci_pdata.reset_gpio_port[1] = 21;
 
        } else {
                /* setup EHCI phy reset on MDC */
-               omap_cfg_reg(AF4_34XX_GPIO135_OUT);
+               omap_mux_init_gpio(135, OMAP_PIN_OUTPUT);
                ehci_pdata.reset_gpio_port[1] = 135;
        }
        usb_musb_init();
index 9f59c03d7808ad7c1db663f18192f369e186e1e3..bca5ad9efe9cc84ffee4ea60b6b1dc927177b97b 100644 (file)
@@ -433,8 +433,8 @@ static void __init omap3pandora_init(void)
        usb_musb_init();
 
        /* Ensure SDRC pins are mux'd for self-refresh */
-       omap_cfg_reg(H16_34XX_SDRC_CKE0);
-       omap_cfg_reg(H17_34XX_SDRC_CKE1);
+       omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
+       omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
 }
 
 static void __init omap3pandora_map_io(void)
index 40f3c85cba307f0a0a3d641ed398c61c913513b3..1ebde4c3bf46350abf60e8db707c5fba95b54d25 100644 (file)
@@ -427,8 +427,8 @@ static void __init overo_init(void)
        overo_init_smsc911x();
 
        /* Ensure SDRC pins are mux'd for self-refresh */
-       omap_cfg_reg(H16_34XX_SDRC_CKE0);
-       omap_cfg_reg(H17_34XX_SDRC_CKE1);
+       omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
+       omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
 
        if ((gpio_request(OVERO_GPIO_W2W_NRESET,
                          "OVERO_GPIO_W2W_NRESET") == 0) &&
index 15ce6514c5fd53389c25904363ebdb0a50420850..81444209700eaba45f0d7fe0aae2c77d28f1a864 100644 (file)
@@ -33,6 +33,7 @@
 #include <plat/onenand.h>
 #include <plat/gpmc-smc91x.h>
 
+#include "mux.h"
 #include "mmc-twl4030.h"
 
 #define SYSTEM_REV_B_USES_VAUX3        0x1699
@@ -630,9 +631,9 @@ static struct omap_smc91x_platform_data board_smc91x_data = {
 
 static void __init board_smc91x_init(void)
 {
-       omap_cfg_reg(U8_34XX_GPIO54_DOWN);
-       omap_cfg_reg(G25_34XX_GPIO86_OUT);
-       omap_cfg_reg(H19_34XX_GPIO164_OUT);
+       omap_mux_init_gpio(54, OMAP_PIN_INPUT_PULLDOWN);
+       omap_mux_init_gpio(86, OMAP_PIN_OUTPUT);
+       omap_mux_init_gpio(164, OMAP_PIN_OUTPUT);
 
        gpmc_smc91x_init(&board_smc91x_data);
 }
index c0c99adc4320cf4e8f1d3ffbae1c2cd5275f91d2..fd71c005105ddeb33bbb79cf7395d3ea3931125f 100644 (file)
@@ -87,8 +87,8 @@ static void __init rx51_init(void)
        rx51_peripherals_init();
 
        /* Ensure SDRC pins are mux'd for self-refresh */
-       omap_cfg_reg(H16_34XX_SDRC_CKE0);
-       omap_cfg_reg(H17_34XX_SDRC_CKE1);
+       omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
+       omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
 }
 
 static void __init rx51_map_io(void)
index 733d3dcff98bb9214de34fa9d6ec032d40a4c4e9..18ad93160abbc5fca7bf68ae3dba578c7f2f22b9 100644 (file)
@@ -27,6 +27,8 @@
 #include <mach/gpio.h>
 #include <plat/mmc.h>
 
+#include "mux.h"
+
 #if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE)
 
 static struct resource cam_resources[] = {
@@ -595,27 +597,40 @@ static inline void omap2_mmc_mux(struct omap_mmc_platform_data *mmc_controller,
 
        if (cpu_is_omap34xx()) {
                if (controller_nr == 0) {
-                       omap_cfg_reg(N28_3430_MMC1_CLK);
-                       omap_cfg_reg(M27_3430_MMC1_CMD);
-                       omap_cfg_reg(N27_3430_MMC1_DAT0);
+                       omap_mux_init_signal("sdmmc1_clk",
+                               OMAP_PIN_INPUT_PULLUP);
+                       omap_mux_init_signal("sdmmc1_cmd",
+                               OMAP_PIN_INPUT_PULLUP);
+                       omap_mux_init_signal("sdmmc1_dat0",
+                               OMAP_PIN_INPUT_PULLUP);
                        if (mmc_controller->slots[0].wires == 4 ||
                                mmc_controller->slots[0].wires == 8) {
-                               omap_cfg_reg(N26_3430_MMC1_DAT1);
-                               omap_cfg_reg(N25_3430_MMC1_DAT2);
-                               omap_cfg_reg(P28_3430_MMC1_DAT3);
+                               omap_mux_init_signal("sdmmc1_dat1",
+                                       OMAP_PIN_INPUT_PULLUP);
+                               omap_mux_init_signal("sdmmc1_dat2",
+                                       OMAP_PIN_INPUT_PULLUP);
+                               omap_mux_init_signal("sdmmc1_dat3",
+                                       OMAP_PIN_INPUT_PULLUP);
                        }
                        if (mmc_controller->slots[0].wires == 8) {
-                               omap_cfg_reg(P27_3430_MMC1_DAT4);
-                               omap_cfg_reg(P26_3430_MMC1_DAT5);
-                               omap_cfg_reg(R27_3430_MMC1_DAT6);
-                               omap_cfg_reg(R25_3430_MMC1_DAT7);
+                               omap_mux_init_signal("sdmmc1_dat4",
+                                       OMAP_PIN_INPUT_PULLUP);
+                               omap_mux_init_signal("sdmmc1_dat5",
+                                       OMAP_PIN_INPUT_PULLUP);
+                               omap_mux_init_signal("sdmmc1_dat6",
+                                       OMAP_PIN_INPUT_PULLUP);
+                               omap_mux_init_signal("sdmmc1_dat7",
+                                       OMAP_PIN_INPUT_PULLUP);
                        }
                }
                if (controller_nr == 1) {
                        /* MMC2 */
-                       omap_cfg_reg(AE2_3430_MMC2_CLK);
-                       omap_cfg_reg(AG5_3430_MMC2_CMD);
-                       omap_cfg_reg(AH5_3430_MMC2_DAT0);
+                       omap_mux_init_signal("sdmmc2_clk",
+                               OMAP_PIN_INPUT_PULLUP);
+                       omap_mux_init_signal("sdmmc2_cmd",
+                               OMAP_PIN_INPUT_PULLUP);
+                       omap_mux_init_signal("sdmmc2_dat0",
+                               OMAP_PIN_INPUT_PULLUP);
 
                        /*
                         * For 8 wire configurations, Lines DAT4, 5, 6 and 7 need to be muxed
@@ -623,15 +638,22 @@ static inline void omap2_mmc_mux(struct omap_mmc_platform_data *mmc_controller,
                         */
                        if (mmc_controller->slots[0].wires == 4 ||
                                mmc_controller->slots[0].wires == 8) {
-                               omap_cfg_reg(AH4_3430_MMC2_DAT1);
-                               omap_cfg_reg(AG4_3430_MMC2_DAT2);
-                               omap_cfg_reg(AF4_3430_MMC2_DAT3);
+                               omap_mux_init_signal("sdmmc2_dat1",
+                                       OMAP_PIN_INPUT_PULLUP);
+                               omap_mux_init_signal("sdmmc2_dat2",
+                                       OMAP_PIN_INPUT_PULLUP);
+                               omap_mux_init_signal("sdmmc2_dat3",
+                                       OMAP_PIN_INPUT_PULLUP);
                        }
                        if (mmc_controller->slots[0].wires == 8) {
-                               omap_cfg_reg(AE4_3430_MMC2_DAT4);
-                               omap_cfg_reg(AH3_3430_MMC2_DAT5);
-                               omap_cfg_reg(AF3_3430_MMC2_DAT6);
-                               omap_cfg_reg(AE3_3430_MMC2_DAT7);
+                               omap_mux_init_signal("sdmmc2_dat4.sdmmc2_dat4",
+                                       OMAP_PIN_INPUT_PULLUP);
+                               omap_mux_init_signal("sdmmc2_dat5.sdmmc2_dat5",
+                                       OMAP_PIN_INPUT_PULLUP);
+                               omap_mux_init_signal("sdmmc2_dat6.sdmmc2_dat6",
+                                       OMAP_PIN_INPUT_PULLUP);
+                               omap_mux_init_signal("sdmmc2_dat7.sdmmc2_dat7",
+                                       OMAP_PIN_INPUT_PULLUP);
                        }
                }
 
index e448abd5ec5d8e629e71a1fe70357eec6ae57275..f1df873d59dbf881b9d6a60e01ea9dab1fc1a845 100644 (file)
@@ -27,6 +27,8 @@
 #include <mach/irqs.h>
 #include <plat/usb.h>
 
+#include "mux.h"
+
 #if defined(CONFIG_USB_EHCI_HCD) || defined(CONFIG_USB_EHCI_HCD_MODULE)
 
 static struct resource ehci_resources[] = {
@@ -72,32 +74,44 @@ static void setup_ehci_io_mux(enum ehci_hcd_omap_mode *port_mode)
 {
        switch (port_mode[0]) {
        case EHCI_HCD_OMAP_MODE_PHY:
-               omap_cfg_reg(Y9_3430_USB1HS_PHY_STP);
-               omap_cfg_reg(Y8_3430_USB1HS_PHY_CLK);
-               omap_cfg_reg(AA14_3430_USB1HS_PHY_DIR);
-               omap_cfg_reg(AA11_3430_USB1HS_PHY_NXT);
-               omap_cfg_reg(W13_3430_USB1HS_PHY_DATA0);
-               omap_cfg_reg(W12_3430_USB1HS_PHY_DATA1);
-               omap_cfg_reg(W11_3430_USB1HS_PHY_DATA2);
-               omap_cfg_reg(Y11_3430_USB1HS_PHY_DATA3);
-               omap_cfg_reg(W9_3430_USB1HS_PHY_DATA4);
-               omap_cfg_reg(Y12_3430_USB1HS_PHY_DATA5);
-               omap_cfg_reg(W8_3430_USB1HS_PHY_DATA6);
-               omap_cfg_reg(Y13_3430_USB1HS_PHY_DATA7);
+               omap_mux_init_signal("hsusb1_stp", OMAP_PIN_OUTPUT);
+               omap_mux_init_signal("hsusb1_clk", OMAP_PIN_OUTPUT);
+               omap_mux_init_signal("hsusb1_dir", OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_nxt", OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_data0", OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_data1", OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_data2", OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_data3", OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_data4", OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_data5", OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_data6", OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_data7", OMAP_PIN_INPUT_PULLDOWN);
                break;
        case EHCI_HCD_OMAP_MODE_TLL:
-               omap_cfg_reg(Y9_3430_USB1HS_TLL_STP);
-               omap_cfg_reg(Y8_3430_USB1HS_TLL_CLK);
-               omap_cfg_reg(AA14_3430_USB1HS_TLL_DIR);
-               omap_cfg_reg(AA11_3430_USB1HS_TLL_NXT);
-               omap_cfg_reg(W13_3430_USB1HS_TLL_DATA0);
-               omap_cfg_reg(W12_3430_USB1HS_TLL_DATA1);
-               omap_cfg_reg(W11_3430_USB1HS_TLL_DATA2);
-               omap_cfg_reg(Y11_3430_USB1HS_TLL_DATA3);
-               omap_cfg_reg(W9_3430_USB1HS_TLL_DATA4);
-               omap_cfg_reg(Y12_3430_USB1HS_TLL_DATA5);
-               omap_cfg_reg(W8_3430_USB1HS_TLL_DATA6);
-               omap_cfg_reg(Y13_3430_USB1HS_TLL_DATA7);
+               omap_mux_init_signal("hsusb1_tll_stp",
+                       OMAP_PIN_INPUT_PULLUP);
+               omap_mux_init_signal("hsusb1_tll_clk",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_tll_dir",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_tll_nxt",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_tll_data0",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_tll_data1",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_tll_data2",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_tll_data3",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_tll_data4",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_tll_data5",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_tll_data6",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb1_tll_data7",
+                       OMAP_PIN_INPUT_PULLDOWN);
                break;
        case EHCI_HCD_OMAP_MODE_UNKNOWN:
                /* FALLTHROUGH */
@@ -107,32 +121,52 @@ static void setup_ehci_io_mux(enum ehci_hcd_omap_mode *port_mode)
 
        switch (port_mode[1]) {
        case EHCI_HCD_OMAP_MODE_PHY:
-               omap_cfg_reg(AA10_3430_USB2HS_PHY_STP);
-               omap_cfg_reg(AA8_3430_USB2HS_PHY_CLK);
-               omap_cfg_reg(AA9_3430_USB2HS_PHY_DIR);
-               omap_cfg_reg(AB11_3430_USB2HS_PHY_NXT);
-               omap_cfg_reg(AB10_3430_USB2HS_PHY_DATA0);
-               omap_cfg_reg(AB9_3430_USB2HS_PHY_DATA1);
-               omap_cfg_reg(W3_3430_USB2HS_PHY_DATA2);
-               omap_cfg_reg(T4_3430_USB2HS_PHY_DATA3);
-               omap_cfg_reg(T3_3430_USB2HS_PHY_DATA4);
-               omap_cfg_reg(R3_3430_USB2HS_PHY_DATA5);
-               omap_cfg_reg(R4_3430_USB2HS_PHY_DATA6);
-               omap_cfg_reg(T2_3430_USB2HS_PHY_DATA7);
+               omap_mux_init_signal("hsusb2_stp", OMAP_PIN_OUTPUT);
+               omap_mux_init_signal("hsusb2_clk", OMAP_PIN_OUTPUT);
+               omap_mux_init_signal("hsusb2_dir", OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_nxt", OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_data0",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_data1",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_data2",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_data3",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_data4",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_data5",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_data6",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_data7",
+                       OMAP_PIN_INPUT_PULLDOWN);
                break;
        case EHCI_HCD_OMAP_MODE_TLL:
-               omap_cfg_reg(AA10_3430_USB2HS_TLL_STP);
-               omap_cfg_reg(AA8_3430_USB2HS_TLL_CLK);
-               omap_cfg_reg(AA9_3430_USB2HS_TLL_DIR);
-               omap_cfg_reg(AB11_3430_USB2HS_TLL_NXT);
-               omap_cfg_reg(AB10_3430_USB2HS_TLL_DATA0);
-               omap_cfg_reg(AB9_3430_USB2HS_TLL_DATA1);
-               omap_cfg_reg(W3_3430_USB2HS_TLL_DATA2);
-               omap_cfg_reg(T4_3430_USB2HS_TLL_DATA3);
-               omap_cfg_reg(T3_3430_USB2HS_TLL_DATA4);
-               omap_cfg_reg(R3_3430_USB2HS_TLL_DATA5);
-               omap_cfg_reg(R4_3430_USB2HS_TLL_DATA6);
-               omap_cfg_reg(T2_3430_USB2HS_TLL_DATA7);
+               omap_mux_init_signal("hsusb2_tll_stp",
+                       OMAP_PIN_INPUT_PULLUP);
+               omap_mux_init_signal("hsusb2_tll_clk",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_tll_dir",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_tll_nxt",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_tll_data0",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_tll_data1",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_tll_data2",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_tll_data3",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_tll_data4",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_tll_data5",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_tll_data6",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb2_tll_data7",
+                       OMAP_PIN_INPUT_PULLDOWN);
                break;
        case EHCI_HCD_OMAP_MODE_UNKNOWN:
                /* FALLTHROUGH */
@@ -145,18 +179,30 @@ static void setup_ehci_io_mux(enum ehci_hcd_omap_mode *port_mode)
                printk(KERN_WARNING "Port3 can't be used in PHY mode\n");
                break;
        case EHCI_HCD_OMAP_MODE_TLL:
-               omap_cfg_reg(AB3_3430_USB3HS_TLL_STP);
-               omap_cfg_reg(AA6_3430_USB3HS_TLL_CLK);
-               omap_cfg_reg(AA3_3430_USB3HS_TLL_DIR);
-               omap_cfg_reg(Y3_3430_USB3HS_TLL_NXT);
-               omap_cfg_reg(AA5_3430_USB3HS_TLL_DATA0);
-               omap_cfg_reg(Y4_3430_USB3HS_TLL_DATA1);
-               omap_cfg_reg(Y5_3430_USB3HS_TLL_DATA2);
-               omap_cfg_reg(W5_3430_USB3HS_TLL_DATA3);
-               omap_cfg_reg(AB12_3430_USB3HS_TLL_DATA4);
-               omap_cfg_reg(AB13_3430_USB3HS_TLL_DATA5);
-               omap_cfg_reg(AA13_3430_USB3HS_TLL_DATA6);
-               omap_cfg_reg(AA12_3430_USB3HS_TLL_DATA7);
+               omap_mux_init_signal("hsusb3_tll_stp",
+                       OMAP_PIN_INPUT_PULLUP);
+               omap_mux_init_signal("hsusb3_tll_clk",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb3_tll_dir",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb3_tll_nxt",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb3_tll_data0",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb3_tll_data1",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb3_tll_data2",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb3_tll_data3",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb3_tll_data4",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb3_tll_data5",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb3_tll_data6",
+                       OMAP_PIN_INPUT_PULLDOWN);
+               omap_mux_init_signal("hsusb3_tll_data7",
+                       OMAP_PIN_INPUT_PULLDOWN);
                break;
        case EHCI_HCD_OMAP_MODE_UNKNOWN:
                /* FALLTHROUGH */