Commit ca12adc8 authored by Michal Simek's avatar Michal Simek

microblaze: Add support for early console on mdm

Support mdm early console:
 - extend time for retries
 - add mdm compatible property
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 2aa8e375
...@@ -35,7 +35,7 @@ static void early_printk_uartlite_putc(char c) ...@@ -35,7 +35,7 @@ static void early_printk_uartlite_putc(char c)
* we'll never timeout on a working UART. * we'll never timeout on a working UART.
*/ */
unsigned retries = 10000; unsigned retries = 1000000;
/* read status bit - 0x8 offset */ /* read status bit - 0x8 offset */
while (--retries && (in_be32(base_addr + 8) & (1 << 3))) while (--retries && (in_be32(base_addr + 8) & (1 << 3)))
; ;
......
...@@ -88,7 +88,8 @@ int __init early_init_dt_scan_chosen_serial(unsigned long node, ...@@ -88,7 +88,8 @@ int __init early_init_dt_scan_chosen_serial(unsigned long node,
} }
if ((strncmp(p, "xlnx,xps-uartlite", 17) == 0) || if ((strncmp(p, "xlnx,xps-uartlite", 17) == 0) ||
(strncmp(p, "xlnx,opb-uartlite", 17) == 0) || (strncmp(p, "xlnx,opb-uartlite", 17) == 0) ||
(strncmp(p, "xlnx,axi-uartlite", 17) == 0)) { (strncmp(p, "xlnx,axi-uartlite", 17) == 0) ||
(strncmp(p, "xlnx,mdm", 8) == 0)) {
unsigned int *addrp; unsigned int *addrp;
*(u32 *)data = UARTLITE; *(u32 *)data = UARTLITE;
......
Markdown is supported
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