mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-03 00:33:45 +09:00
sparc: leon3: Clear GD_FLAG_SERIAL_READY flag on AMBA failure
Clear the GD_FLG_SERIAL_READY flag on AMBA P&P lookup failure so that the panic function can use DEBUG_UART driver. drivers/serial/serial.c set this flag before calling this function, preventing DEBUG_UART code from running. Signed-off-by: Francois Retief <fgretief@spaceteq.co.za>
This commit is contained in:
parent
f33f888d0e
commit
58e5585625
@ -29,6 +29,7 @@ static int leon3_serial_init(void)
|
|||||||
/* find UART */
|
/* find UART */
|
||||||
if (ambapp_apb_find(&ambapp_plb, VENDOR_GAISLER, GAISLER_APBUART,
|
if (ambapp_apb_find(&ambapp_plb, VENDOR_GAISLER, GAISLER_APBUART,
|
||||||
CONFIG_SYS_GRLIB_APBUART_INDEX, &apbdev) != 1) {
|
CONFIG_SYS_GRLIB_APBUART_INDEX, &apbdev) != 1) {
|
||||||
|
gd->flags &= ~GD_FLG_SERIAL_READY;
|
||||||
panic("%s: apbuart not found!\n", __func__);
|
panic("%s: apbuart not found!\n", __func__);
|
||||||
return -1; /* didn't find hardware */
|
return -1; /* didn't find hardware */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user