From 38c84786fc3e8fab913aebca176ac7b038cb0be6 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 21 Nov 2013 21:31:37 -0800 Subject: [PATCH] tegra124: Initialize the MCR when setting up the UART. This doesn't seem to be truly necessary, but it matches what other drivers do and might be a good idea for safety's sake. BUG=chrome-os-partner:24138 TEST=Built and booted on norrin. BRANCH=None Change-Id: Ie7c2717e81b2a5dcb831e608eb56347709dc1483 Signed-off-by: Gabe Black Reviewed-on: https://chromium-review.googlesource.com/177638 Reviewed-by: Tom Warren Reviewed-by: Julius Werner Commit-Queue: Gabe Black Tested-by: Gabe Black --- src/soc/nvidia/tegra124/uart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/nvidia/tegra124/uart.c b/src/soc/nvidia/tegra124/uart.c index b513d36a76..1b122c61d4 100644 --- a/src/soc/nvidia/tegra124/uart.c +++ b/src/soc/nvidia/tegra124/uart.c @@ -59,6 +59,8 @@ static void tegra124_uart_init(void) // Disable interrupts. write8(0, &uart_ptr->ier); + // Force DTR and RTS to high. + write8(UART8250_MCR_DTR | UART8250_MCR_RTS, &uart_ptr->mcr); // Set line configuration, access divisor latches. write8(UART8250_LCR_DLAB | line_config, &uart_ptr->lcr); // Set the divisor.