tty: serial: imx: Allow UART to be a source for wakeup
authorFabio Estevam <festevam@gmail.com>
Tue, 13 Dec 2011 03:23:48 +0000 (01:23 -0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 5 Jan 2012 00:30:33 +0000 (16:30 -0800)
commitdb1a9b55004c83ded54c1f869f81a8a59c6dde87
tree760d3165b96af9069b64f861f538855f0d00dd99
parent59087384e41e33ed070575aa4a834a7ff7d67e77
tty: serial: imx: Allow UART to be a source for wakeup

Allow UART to be a source for wakeup from low power mode.

Tested on a MX27PDK by doing:

echo enabled > /sys/devices/platform/imx21-uart.0/tty/ttymxc0/power/wakeup

echo mem > /sys/power/state

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

Suggested-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/imx.c