Debian Codegraph @

src/mainboard/emulation/qemu-power8/uart.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <types.h>
4 #include <console/uart.h>
5 #include <boot/coreboot_tables.h>
6
7 static uint8_t *buf = (void *)0;
8 uintptr_t uart_platform_base(unsigned int idx)
9 {
10 return (uintptr_t)buf;
11 }
12
13 void uart_init(unsigned int idx)
14 {
15 }
16
17 unsigned char uart_rx_byte(unsigned int idx)
18 {
19 return 0;
20 }
21
22 void uart_tx_byte(unsigned int idx, unsigned char data)
23 {
24 }
25
26 void uart_tx_flush(unsigned int idx)
27 {
28 }
29
30 enum cb_err fill_lb_serial(struct lb_serial *serial)
31 {
32 serial->type = LB_SERIAL_TYPE_MEMORY_MAPPED;
33 serial->baseaddr = 0;
34 serial->baud = 115200;
35 serial->regwidth = 1;
36 serial->input_hertz = uart_platform_refclk();
37
38 return CB_SUCCESS;
39 }