uart8250mem: Unify calls with generic UART
NOTE: UART base for SMM continues to be broken, as it does not use the address resource allocator has assigned. Change-Id: I79f2ca8427a33a3c719adfe277c24dab79a33ef3 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5235 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
@@ -43,8 +43,10 @@ void uart_tx_flush(void);
|
||||
unsigned char uart_rx_byte(void);
|
||||
int uart_can_rx_byte(void);
|
||||
|
||||
unsigned int uart_platform_base(int idx);
|
||||
uint32_t uartmem_getbaseaddr(void);
|
||||
|
||||
void oxford_init(void);
|
||||
void oxford_remap(unsigned int new_base);
|
||||
|
||||
#endif /* CONSOLE_UART_H */
|
||||
|
@@ -105,21 +105,4 @@
|
||||
#define UART_SCR 0x07
|
||||
#define UART_SPR 0x07
|
||||
|
||||
#if CONFIG_CONSOLE_SERIAL8250MEM
|
||||
void uartmem_init(void);
|
||||
|
||||
/* and the same for memory mapped uarts */
|
||||
unsigned char uart8250_mem_rx_byte(unsigned base_port);
|
||||
int uart8250_mem_can_rx_byte(unsigned base_port);
|
||||
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);
|
||||
|
||||
#if defined(__PRE_RAM__) && CONFIG_DRIVERS_OXFORD_OXPCIE
|
||||
/* and special init for OXPCIe based cards */
|
||||
extern int oxford_oxpcie_present;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* UART8250_H */
|
||||
|
Reference in New Issue
Block a user