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:
parent
bd533cc109
commit
38c84786fc
1 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue