aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-omap3evm.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2009-12-11 19:16:32 -0500
committerTony Lindgren <tony@atomide.com>2009-12-11 19:16:32 -0500
commit4896e3940a063fb03195d05806d28970dc3f102b (patch)
treef3ce32ae903d1ddb831d212d73a93b91c25da03d /arch/arm/mach-omap2/board-omap3evm.c
parentb63128e81214cc2db2995d690438055c26d213a5 (diff)
omap: mux: Replace omap_cfg_reg() with new style signal or gpio functions
Replace omap_cfg_reg() with new style signal or gpio functions Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3evm.c')
-rw-r--r--arch/arm/mach-omap2/board-omap3evm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c
index ad174aeb6101..0457f615339f 100644
--- a/arch/arm/mach-omap2/board-omap3evm.c
+++ b/arch/arm/mach-omap2/board-omap3evm.c
@@ -224,7 +224,7 @@ static int omap3evm_twl_gpio_setup(struct device *dev,
224 unsigned gpio, unsigned ngpio) 224 unsigned gpio, unsigned ngpio)
225{ 225{
226 /* gpio + 0 is "mmc0_cd" (input/IRQ) */ 226 /* gpio + 0 is "mmc0_cd" (input/IRQ) */
227 omap_cfg_reg(L8_34XX_GPIO63); 227 omap_mux_init_gpio(63, OMAP_PIN_INPUT);
228 mmc[0].gpio_cd = gpio + 0; 228 mmc[0].gpio_cd = gpio + 0;
229 twl4030_mmc_init(mmc); 229 twl4030_mmc_init(mmc);
230 230
@@ -450,24 +450,24 @@ static void __init omap3_evm_init(void)
450#endif 450#endif
451 if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) { 451 if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) {
452 /* enable EHCI VBUS using GPIO22 */ 452 /* enable EHCI VBUS using GPIO22 */
453 omap_cfg_reg(AF9_34XX_GPIO22); 453 omap_mux_init_gpio(22, OMAP_PIN_INPUT_PULLUP);
454 gpio_request(OMAP3_EVM_EHCI_VBUS, "enable EHCI VBUS"); 454 gpio_request(OMAP3_EVM_EHCI_VBUS, "enable EHCI VBUS");
455 gpio_direction_output(OMAP3_EVM_EHCI_VBUS, 0); 455 gpio_direction_output(OMAP3_EVM_EHCI_VBUS, 0);
456 gpio_set_value(OMAP3_EVM_EHCI_VBUS, 1); 456 gpio_set_value(OMAP3_EVM_EHCI_VBUS, 1);
457 457
458 /* Select EHCI port on main board */ 458 /* Select EHCI port on main board */
459 omap_cfg_reg(U3_34XX_GPIO61); 459 omap_mux_init_gpio(61, OMAP_PIN_INPUT_PULLUP);
460 gpio_request(OMAP3_EVM_EHCI_SELECT, "select EHCI port"); 460 gpio_request(OMAP3_EVM_EHCI_SELECT, "select EHCI port");
461 gpio_direction_output(OMAP3_EVM_EHCI_SELECT, 0); 461 gpio_direction_output(OMAP3_EVM_EHCI_SELECT, 0);
462 gpio_set_value(OMAP3_EVM_EHCI_SELECT, 0); 462 gpio_set_value(OMAP3_EVM_EHCI_SELECT, 0);
463 463
464 /* setup EHCI phy reset config */ 464 /* setup EHCI phy reset config */
465 omap_cfg_reg(AH14_34XX_GPIO21); 465 omap_mux_init_gpio(21, OMAP_PIN_INPUT_PULLUP);
466 ehci_pdata.reset_gpio_port[1] = 21; 466 ehci_pdata.reset_gpio_port[1] = 21;
467 467
468 } else { 468 } else {
469 /* setup EHCI phy reset on MDC */ 469 /* setup EHCI phy reset on MDC */
470 omap_cfg_reg(AF4_34XX_GPIO135_OUT); 470 omap_mux_init_gpio(135, OMAP_PIN_OUTPUT);
471 ehci_pdata.reset_gpio_port[1] = 135; 471 ehci_pdata.reset_gpio_port[1] = 135;
472 } 472 }
473 usb_musb_init(); 473 usb_musb_init();