aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-omap3beagle.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-omap3beagle.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-omap3beagle.c')
-rw-r--r--arch/arm/mach-omap2/board-omap3beagle.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
index e669dbb23b7e..9e606b107ee6 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -141,10 +141,10 @@ static int beagle_twl_gpio_setup(struct device *dev,
141 unsigned gpio, unsigned ngpio) 141 unsigned gpio, unsigned ngpio)
142{ 142{
143 if (system_rev >= 0x20 && system_rev <= 0x34301000) { 143 if (system_rev >= 0x20 && system_rev <= 0x34301000) {
144 omap_cfg_reg(AG9_34XX_GPIO23); 144 omap_mux_init_gpio(23, OMAP_PIN_INPUT);
145 mmc[0].gpio_wp = 23; 145 mmc[0].gpio_wp = 23;
146 } else { 146 } else {
147 omap_cfg_reg(AH8_34XX_GPIO29); 147 omap_mux_init_gpio(29, OMAP_PIN_INPUT);
148 } 148 }
149 /* gpio + 0 is "mmc0_cd" (input/IRQ) */ 149 /* gpio + 0 is "mmc0_cd" (input/IRQ) */
150 mmc[0].gpio_cd = gpio + 0; 150 mmc[0].gpio_cd = gpio + 0;
@@ -439,7 +439,7 @@ static void __init omap3_beagle_init(void)
439 ARRAY_SIZE(omap3_beagle_devices)); 439 ARRAY_SIZE(omap3_beagle_devices));
440 omap_serial_init(); 440 omap_serial_init();
441 441
442 omap_cfg_reg(J25_34XX_GPIO170); 442 omap_mux_init_gpio(170, OMAP_PIN_INPUT);
443 gpio_request(170, "DVI_nPD"); 443 gpio_request(170, "DVI_nPD");
444 /* REVISIT leave DVI powered down until it's needed ... */ 444 /* REVISIT leave DVI powered down until it's needed ... */
445 gpio_direction_output(170, true); 445 gpio_direction_output(170, true);
@@ -449,8 +449,8 @@ static void __init omap3_beagle_init(void)
449 omap3beagle_flash_init(); 449 omap3beagle_flash_init();
450 450
451 /* Ensure SDRC pins are mux'd for self-refresh */ 451 /* Ensure SDRC pins are mux'd for self-refresh */
452 omap_cfg_reg(H16_34XX_SDRC_CKE0); 452 omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
453 omap_cfg_reg(H17_34XX_SDRC_CKE1); 453 omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
454} 454}
455 455
456static void __init omap3_beagle_map_io(void) 456static void __init omap3_beagle_map_io(void)