uart8250io: Unify calls with generic UART
Change-Id: I6d56648e56f2177e1d5332497321e718df18300c Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5234 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
@@ -37,10 +37,11 @@ unsigned int uart_baudrate_divisor(unsigned int baudrate,
|
||||
unsigned int refclk, unsigned int oversample);
|
||||
|
||||
|
||||
unsigned char uart_rx_byte(void);
|
||||
void uart_init(void);
|
||||
void uart_tx_byte(unsigned char data);
|
||||
void uart_tx_flush(void);
|
||||
void uart_init(void);
|
||||
unsigned char uart_rx_byte(void);
|
||||
int uart_can_rx_byte(void);
|
||||
|
||||
uint32_t uartmem_getbaseaddr(void);
|
||||
|
||||
|
@@ -105,16 +105,6 @@
|
||||
#define UART_SCR 0x07
|
||||
#define UART_SPR 0x07
|
||||
|
||||
#if CONFIG_CONSOLE_SERIAL8250
|
||||
unsigned char uart8250_rx_byte(unsigned base_port);
|
||||
int uart8250_can_rx_byte(unsigned base_port);
|
||||
void uart8250_tx_byte(unsigned base_port, unsigned char data);
|
||||
void uart8250_tx_flush(unsigned base_port);
|
||||
/* Yes it is silly to have three different uart init functions. But we used to
|
||||
* have three different sets of uart code, so it's an improvement.
|
||||
*/
|
||||
void uart8250_init(unsigned base_port, unsigned divisor);
|
||||
#endif
|
||||
#if CONFIG_CONSOLE_SERIAL8250MEM
|
||||
void uartmem_init(void);
|
||||
|
||||
|
Reference in New Issue
Block a user