summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2012-02-23 16:31:46 +0800
committerAndy Green <andy.green@linaro.org>2012-06-20 10:27:06 +0800
commit481389747faa736a2e0de8c4e140247d7b35312a (patch)
tree4af61782bed52e8a9bbdc08da122f6c695bbdd89
parentca7815139d13da8ca8bf48a26862f70eb2d86239 (diff)
TEMP: omap5: serial: enable wakeup for uart3_rx_irrx pad
As omap5 does not have proper mux support yet, we enable wakeup for this pad manually. To be removed once MUX framework is added for OMAP5. Signed-off-by: Tero Kristo <t-kristo@ti.com>
-rw-r--r--arch/arm/mach-omap2/serial.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 28f937e2c76..0b0c2b40b89 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -603,8 +603,17 @@ void __init omap_serial_board_init(struct omap_uart_port_info *info, u8 port_id)
if (!info)
omap_serial_init_port(&bdata, NULL);
else
- omap_serial_init_port(&bdata, info);
+ omap_serial_init_port(&bdata, &info[uart->num]);
}
+ }
+
+ /* XXX: temporary hack to enable wakeup for UART3 RX pad */
+ if (cpu_is_omap54xx()) {
+ u32 val;
+ val = omap_readl(0x4a0029dc);
+ val |= 0x4000;
+ omap_writel(val, 0x4a0029dc);
+ }
}
/**