diff options
Diffstat (limited to 'src/mainboard/emulation')
-rw-r--r-- | src/mainboard/emulation/qemu-power8/uart.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/mainboard/emulation/qemu-power8/uart.c b/src/mainboard/emulation/qemu-power8/uart.c index a2f9116875..a369e62ba5 100644 --- a/src/mainboard/emulation/qemu-power8/uart.c +++ b/src/mainboard/emulation/qemu-power8/uart.c @@ -28,16 +28,13 @@ void uart_tx_flush(unsigned int idx) { } -void uart_fill_lb(void *data) +enum cb_err fill_lb_serial(struct lb_serial *serial) { - struct lb_serial serial; + serial->type = LB_SERIAL_TYPE_MEMORY_MAPPED; + serial->baseaddr = 0; + serial->baud = 115200; + serial->regwidth = 1; + serial->input_hertz = uart_platform_refclk(); - serial.type = LB_SERIAL_TYPE_MEMORY_MAPPED; - serial.baseaddr = 0; - serial.baud = 115200; - serial.regwidth = 1; - serial.input_hertz = uart_platform_refclk(); - lb_add_serial(&serial, data); - - lb_add_console(LB_TAG_CONSOLE_SERIAL8250MEM, data); + return CB_SUCCESS; } |