Skip to content

Commit

Permalink
microblaze: Add support for early console on mdm
Browse files Browse the repository at this point in the history
Support mdm early console:
 - extend time for retries
 - add mdm compatible property

Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed Jul 25, 2011
1 parent 2aa8e37 commit ca12adc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/microblaze/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static void early_printk_uartlite_putc(char c)
* we'll never timeout on a working UART.
*/

unsigned retries = 10000;
unsigned retries = 1000000;
/* read status bit - 0x8 offset */
while (--retries && (in_be32(base_addr + 8) & (1 << 3)))
;
Expand Down
3 changes: 2 additions & 1 deletion arch/microblaze/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ int __init early_init_dt_scan_chosen_serial(unsigned long node,
}
if ((strncmp(p, "xlnx,xps-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;

*(u32 *)data = UARTLITE;
Expand Down

0 comments on commit ca12adc

Please sign in to comment.