aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 6c8135a9d35d..c909770eacd1 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -65,6 +65,7 @@ static LIST_HEAD(uart_list);
65static u8 num_uarts; 65static u8 num_uarts;
66static u8 console_uart_id = -1; 66static u8 console_uart_id = -1;
67static u8 no_console_suspend; 67static u8 no_console_suspend;
68static u8 uart_debug;
68 69
69#define DEFAULT_RXDMA_POLLRATE 1 /* RX DMA polling rate (us) */ 70#define DEFAULT_RXDMA_POLLRATE 1 /* RX DMA polling rate (us) */
70#define DEFAULT_RXDMA_BUFSIZE 4096 /* RX DMA buffer size */ 71#define DEFAULT_RXDMA_BUFSIZE 4096 /* RX DMA buffer size */
@@ -300,6 +301,13 @@ static int __init omap_serial_early_init(void)
300 if (cmdline_find_option(uart_name)) { 301 if (cmdline_find_option(uart_name)) {
301 console_uart_id = uart->num; 302 console_uart_id = uart->num;
302 303
304 if (console_loglevel >= 10) {
305 uart_debug = true;
306 pr_info("%s used as console in debug mode"
307 " uart%d clocks will not be"
308 " gated", uart_name, uart->num);
309 }
310
303 if (cmdline_find_option("no_console_suspend")) 311 if (cmdline_find_option("no_console_suspend"))
304 no_console_suspend = true; 312 no_console_suspend = true;
305 313
@@ -399,7 +407,8 @@ void __init omap_serial_init_port(struct omap_board_data *bdata,
399 407
400 oh->dev_attr = uart; 408 oh->dev_attr = uart;
401 409
402 if ((cpu_is_omap34xx() || cpu_is_omap44xx()) && bdata->pads) 410 if (((cpu_is_omap34xx() || cpu_is_omap44xx()) && bdata->pads)
411 && !uart_debug)
403 device_init_wakeup(&pdev->dev, true); 412 device_init_wakeup(&pdev->dev, true);
404} 413}
405 414