move uartmem_getbaseaddr() to generic uart header

This moves uartmem_getbaseaddr() from an 8250-specific header to the
generic uart header. This is to accomodate non-8250 memory-mapped
UARTs.

Change-Id: Id25e7dab12b33bdd928f2aa4611d720aa79f3dee
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/2422
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
David Hendricks
2013-02-15 19:29:12 -08:00
committed by Stefan Reinauer
parent 6802dc8abe
commit fdcef1ace9
2 changed files with 4 additions and 1 deletions

View File

@ -37,4 +37,8 @@ void uart_tx_flush(void);
void uart_init(void); void uart_init(void);
#endif #endif
#if CONFIG_HAVE_UART_MEMORY_MAPPED
uint32_t uartmem_getbaseaddr(void);
#endif
#endif /* UART_H */ #endif /* UART_H */

View File

@ -136,7 +136,6 @@ void uart8250_mem_tx_byte(unsigned base_port, unsigned char data);
void uart8250_mem_tx_flush(unsigned base_port); void uart8250_mem_tx_flush(unsigned base_port);
void uart8250_mem_init(unsigned base_port, unsigned divisor); void uart8250_mem_init(unsigned base_port, unsigned divisor);
u32 uart_mem_init(void); u32 uart_mem_init(void);
u32 uartmem_getbaseaddr(void);
#if defined(__PRE_RAM__) && CONFIG_DRIVERS_OXFORD_OXPCIE #if defined(__PRE_RAM__) && CONFIG_DRIVERS_OXFORD_OXPCIE
/* and special init for OXPCIe based cards */ /* and special init for OXPCIe based cards */