Patchwork [2/2] ARM: mach-mx27_3ds: Allow UART to be a source for wakeup.

login
register
mail settings
Submitter Fabio Estevam
Date Dec. 9, 2011, 12:42 p.m.
Message ID <1323434541-27689-2-git-send-email-festevam@gmail.com>
Download mbox | patch
Permalink /patch/130370/
State New
Headers show

Comments

Fabio Estevam - Dec. 9, 2011, 12:42 p.m.
Allow UART to be a source for wakeup.

Tested by doing:

echo mem > /sys/power/state

and then pressing a key in the console will wakeup the sytem.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/mach-mx27_3ds.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/arm/mach-imx/mach-mx27_3ds.c b/arch/arm/mach-imx/mach-mx27_3ds.c
index ba232d7..ee57521 100644
--- a/arch/arm/mach-imx/mach-mx27_3ds.c
+++ b/arch/arm/mach-imx/mach-mx27_3ds.c
@@ -144,7 +144,7 @@  static const int mx27pdk_pins[] __initconst = {
 };
 
 static const struct imxuart_platform_data uart_pdata __initconst = {
-	.flags = IMXUART_HAVE_RTSCTS,
+	.flags = IMXUART_HAVE_RTSCTS | IMXUART_CANWAKE,
 };
 
 /*