OMAP2/3/4: UART: Allow per-UART disabling wakeup for serial ports
authorKevin Hilman <khilman@deeprootsystems.com>
Mon, 27 Apr 2009 19:27:36 +0000 (12:27 -0700)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 5 Aug 2009 16:10:53 +0000 (09:10 -0700)
commitfd455ea899b5a14a8cdd276e15f3b47696526f92
treea03bfc66f4c86c17a347d6b84bfa2b6bbde7db65
parent2466211e5debd205fc550d871fe0ab9b9a6d02ed
OMAP2/3/4: UART: Allow per-UART disabling wakeup for serial ports

This patch causes the OMAP uarts to honor the sysfs power/wakeup file
for IOPAD wakeups. Before the OMAP was always woken up from off mode
on a rs232 signal change.  This patch also creates a different
platform device for each serial port so that the wakeup properties can
be control per port.

By default, IOPAD wakeups are enabled for each UART.  To disable,

  # echo disabled > /sys/devices/platform/serial8250.0/power/wakeup

Where serial8250.0 can be replaced by .1, or .2 to control the other
ports.

Original idea and original patch from Russ Dill <russ.dill@gmail.com>

Cc: Russ Dill <russ.dill@gmail.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/serial.c