Commit a1e63642 authored by Lesly A M's avatar Lesly A M Committed by Tony Lindgren

omap3: pm: Add T2 Keypad as a wakeup source

Changes for setting the padconf value for sys_nirq line which is
connected to T2 INTR1. This will fix the T2 keypad wakeup.
Signed-off-by: default avatarLesly A M <x0080970@ti.com>
Signed-off-by: default avatarTeerth Reddy <teerth@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 321cfc85
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <plat/common.h> #include <plat/common.h>
#include <plat/usb.h> #include <plat/usb.h>
#include "mux.h"
#include "hsmmc.h" #include "hsmmc.h"
/* Zoom2 has Qwerty keyboard*/ /* Zoom2 has Qwerty keyboard*/
...@@ -263,9 +264,17 @@ static int __init omap_i2c_init(void) ...@@ -263,9 +264,17 @@ static int __init omap_i2c_init(void)
return 0; return 0;
} }
static void enable_board_wakeup_source(void)
{
/* T2 interrupt line (keypad) */
omap_mux_init_signal("sys_nirq",
OMAP_WAKEUP_EN | OMAP_PIN_INPUT_PULLUP);
}
void __init zoom_peripherals_init(void) void __init zoom_peripherals_init(void)
{ {
omap_i2c_init(); omap_i2c_init();
omap_serial_init(); omap_serial_init();
usb_musb_init(); usb_musb_init();
enable_board_wakeup_source();
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment