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; uart_platform_base(unsigned int idx)8uintptr_t uart_platform_base(unsigned int idx) 9 { 10 return (uintptr_t)buf; 11 } 12 uart_init(unsigned int idx)13void uart_init(unsigned int idx) 14 { 15 } 16 uart_rx_byte(unsigned int idx)17unsigned char uart_rx_byte(unsigned int idx) 18 { 19 return 0; 20 } 21 uart_tx_byte(unsigned int idx,unsigned char data)22void uart_tx_byte(unsigned int idx, unsigned char data) 23 { 24 } 25 uart_tx_flush(unsigned int idx)26void uart_tx_flush(unsigned int idx) 27 { 28 } 29 fill_lb_serial(struct lb_serial * serial)30enum 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 } 40