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 <gabeblack@google.com>
Reviewed-on: https://chromium-review.googlesource.com/177638
Reviewed-by: Tom Warren <twarren@nvidia.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
This commit is contained in:
Gabe Black 2013-11-21 21:31:37 -08:00 committed by chrome-internal-fetch
commit 38c84786fc

View file

@ -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.