diff options
author | Tony Lindgren <tony@atomide.com> | 2010-07-05 09:31:39 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-07-05 09:31:39 -0400 |
commit | 93c43f2561f18b50e3376be968d0688315afc44c (patch) | |
tree | 52b7642f38ec4d015e8a01fac82db3aa5a660a49 /arch/arm/mach-omap2/board-h4.c | |
parent | 0d600ff6fe06d99e56166a41521e120ce37e1dd4 (diff) |
omap: mux: Do keypad muxing in board-*.c files
This way we get pin muxing out of plat-omap and can convert H4 to use the
new mux functions.
Note that it should be safe to assume we can mux all the keypad pins
except on H4 which may have Menelaus connected.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-h4.c')
-rw-r--r-- | arch/arm/mach-omap2/board-h4.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 8c58f5106393..cdcd4fbad153 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -363,11 +363,28 @@ static void __init omap_h4_init(void) | |||
363 | #endif | 363 | #endif |
364 | 364 | ||
365 | #if defined(CONFIG_KEYBOARD_OMAP) || defined(CONFIG_KEYBOARD_OMAP_MODULE) | 365 | #if defined(CONFIG_KEYBOARD_OMAP) || defined(CONFIG_KEYBOARD_OMAP_MODULE) |
366 | omap_mux_init_gpio(88, OMAP_PULL_ENA | OMAP_PULL_UP); | ||
367 | omap_mux_init_gpio(89, OMAP_PULL_ENA | OMAP_PULL_UP); | ||
368 | omap_mux_init_gpio(124, OMAP_PULL_ENA | OMAP_PULL_UP); | ||
369 | omap_mux_init_signal("mcbsp2_dr.gpio_11", OMAP_PULL_ENA | OMAP_PULL_UP); | ||
366 | if (omap_has_menelaus()) { | 370 | if (omap_has_menelaus()) { |
371 | omap_mux_init_signal("sdrc_a14.gpio0", | ||
372 | OMAP_PULL_ENA | OMAP_PULL_UP); | ||
373 | omap_mux_init_signal("vlynq_rx0.gpio_15", 0); | ||
374 | omap_mux_init_signal("gpio_98", 0); | ||
367 | row_gpios[5] = 0; | 375 | row_gpios[5] = 0; |
368 | col_gpios[2] = 15; | 376 | col_gpios[2] = 15; |
369 | col_gpios[6] = 18; | 377 | col_gpios[6] = 18; |
378 | } else { | ||
379 | omap_mux_init_signal("gpio_96", OMAP_PULL_ENA | OMAP_PULL_UP); | ||
380 | omap_mux_init_signal("gpio_100", 0); | ||
381 | omap_mux_init_signal("gpio_98", 0); | ||
370 | } | 382 | } |
383 | omap_mux_init_signal("gpio_90", 0); | ||
384 | omap_mux_init_signal("gpio_91", 0); | ||
385 | omap_mux_init_signal("gpio_36", 0); | ||
386 | omap_mux_init_signal("mcbsp2_clkx.gpio_12", 0); | ||
387 | omap_mux_init_signal("gpio_97", 0); | ||
371 | #endif | 388 | #endif |
372 | 389 | ||
373 | i2c_register_board_info(1, h4_i2c_board_info, | 390 | i2c_register_board_info(1, h4_i2c_board_info, |