diff options
author | Reddy, Teerth <teerth@ti.com> | 2009-08-24 02:28:59 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-09-02 18:07:56 -0400 |
commit | 5110b2980a1299f6c253260de385b0dc2b2308b0 (patch) | |
tree | e3114c62d639d49de52c0079370206c5edf2e126 | |
parent | bbde6ebae6dacf2f6e6ac4ab28c1805a2d51c5e1 (diff) |
OMAP3: PM: add T2 interrupt line mux setting, and enable on 3430SDP
This patch changes for setting the padconf value for sys_nirq line
which is connected to T2 INTR1. This will fix the T2 keypad wakeup
issue on OMAP3 SDP.
Signed-off-by: Teerth Reddy <teerth@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
-rw-r--r-- | arch/arm/mach-omap2/board-3430sdp.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap2/mux.c | 5 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/mach/mux.h | 3 |
3 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 7e9b76cc7675..31d9f56c6483 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -473,6 +473,11 @@ static inline void board_smc91x_init(void) | |||
473 | 473 | ||
474 | #endif | 474 | #endif |
475 | 475 | ||
476 | static void enable_board_wakeup_source(void) | ||
477 | { | ||
478 | omap_cfg_reg(AF26_34XX_SYS_NIRQ); /* T2 interrupt line (keypad) */ | ||
479 | } | ||
480 | |||
476 | static void __init omap_3430sdp_init(void) | 481 | static void __init omap_3430sdp_init(void) |
477 | { | 482 | { |
478 | omap3430_i2c_init(); | 483 | omap3430_i2c_init(); |
@@ -490,6 +495,7 @@ static void __init omap_3430sdp_init(void) | |||
490 | omap_serial_init(); | 495 | omap_serial_init(); |
491 | usb_musb_init(); | 496 | usb_musb_init(); |
492 | board_smc91x_init(); | 497 | board_smc91x_init(); |
498 | enable_board_wakeup_source(); | ||
493 | } | 499 | } |
494 | 500 | ||
495 | static void __init omap_3430sdp_map_io(void) | 501 | static void __init omap_3430sdp_map_io(void) |
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index f63f3a237825..2daa595aaff4 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c | |||
@@ -542,6 +542,11 @@ MUX_CFG_34XX("AF13_3430_MMC3_DAT2", 0x5e8, | |||
542 | OMAP34XX_MUX_MODE2 | OMAP34XX_PIN_INPUT_PULLUP) | 542 | OMAP34XX_MUX_MODE2 | OMAP34XX_PIN_INPUT_PULLUP) |
543 | MUX_CFG_34XX("AF13_3430_MMC3_DAT3", 0x5e2, | 543 | MUX_CFG_34XX("AF13_3430_MMC3_DAT3", 0x5e2, |
544 | OMAP34XX_MUX_MODE2 | OMAP34XX_PIN_INPUT_PULLUP) | 544 | OMAP34XX_MUX_MODE2 | OMAP34XX_PIN_INPUT_PULLUP) |
545 | |||
546 | /* SYS_NIRQ T2 INT1 */ | ||
547 | MUX_CFG_34XX("AF26_34XX_SYS_NIRQ", 0x1E0, | ||
548 | OMAP3_WAKEUP_EN | OMAP34XX_PIN_INPUT_PULLUP | | ||
549 | OMAP34XX_MUX_MODE0) | ||
545 | }; | 550 | }; |
546 | 551 | ||
547 | #define OMAP34XX_PINS_SZ ARRAY_SIZE(omap34xx_pins) | 552 | #define OMAP34XX_PINS_SZ ARRAY_SIZE(omap34xx_pins) |
diff --git a/arch/arm/plat-omap/include/mach/mux.h b/arch/arm/plat-omap/include/mach/mux.h index 2c57bad65b02..98dfab651dfc 100644 --- a/arch/arm/plat-omap/include/mach/mux.h +++ b/arch/arm/plat-omap/include/mach/mux.h | |||
@@ -885,6 +885,9 @@ enum omap34xx_index { | |||
885 | AH9_3430_MMC3_DAT1, | 885 | AH9_3430_MMC3_DAT1, |
886 | AF13_3430_MMC3_DAT2, | 886 | AF13_3430_MMC3_DAT2, |
887 | AF13_3430_MMC3_DAT3, | 887 | AF13_3430_MMC3_DAT3, |
888 | |||
889 | /* SYS_NIRQ T2 INT1 */ | ||
890 | AF26_34XX_SYS_NIRQ, | ||
888 | }; | 891 | }; |
889 | 892 | ||
890 | struct omap_mux_cfg { | 893 | struct omap_mux_cfg { |