Extend coreboot table entry for serial ports
Add information about memory mapped/io mapped base addresses. and fix up libpayload to use the same structures Signed-off-by: Stefan Reinauer <reinauer@google.com> Change-Id: I5f7b5eda6063261b9acb7a46310172d4a5471dfb Reviewed-on: http://review.coreboot.org/261 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
b6010b8e70
commit
d1bc331855
7 changed files with 41 additions and 9 deletions
|
|
@ -146,7 +146,10 @@ struct lb_string {
|
|||
struct lb_serial {
|
||||
uint32_t tag;
|
||||
uint32_t size;
|
||||
uint16_t ioport;
|
||||
#define LB_SERIAL_TYPE_IO_MAPPED 1
|
||||
#define LB_SERIAL_TYPE_MEMORY_MAPPED 2
|
||||
uint32_t type;
|
||||
uint32_t baseaddr;
|
||||
uint32_t baud;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -146,6 +146,7 @@ void uart8250_mem_tx_byte(unsigned base_port, unsigned char data);
|
|||
void uart8250_mem_tx_flush(unsigned base_port);
|
||||
void uart8250_mem_init(unsigned base_port, unsigned divisor);
|
||||
u32 uart_mem_init(void);
|
||||
u32 uartmem_getbaseaddr(void);
|
||||
|
||||
/* and special init for OXPCIe based cards */
|
||||
void oxford_init(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue