Commit 35ddf7c0 authored by Tony Lindgren's avatar Tony Lindgren
Browse files

omap: Add back UART MDR1 check into uncompress.h

Recent DEBUG_LL and uncompress.h changes removed the check_port()
as pointed out by Cory Maccarrone <>.

This causes some boards to not boot, so add back the MDR1 register
check. The MDR1 register tells the mode of omap uart. Based on
an earlier patch by Cory Maccarrone <>.
Tested-by: default avatarCory Maccarrone <>
Signed-off-by: default avatarTony Lindgren <>
parent 9fe6206f
......@@ -25,6 +25,8 @@
#include <plat/serial.h>
#define MDR1_MODE_MASK 0x07
static volatile u8 *uart_base;
static int uart_shift;
......@@ -42,6 +44,10 @@ static void putc(int c)
if (!uart_base)
/* Check for UART 16x mode */
if ((uart_base[UART_OMAP_MDR1 << uart_shift] & MDR1_MODE_MASK) != 0)
while (!(uart_base[UART_LSR << uart_shift] & UART_LSR_THRE))
uart_base[UART_TX << uart_shift] = c;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment