summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc Jones <marc.jones@se-eng.com>2012-06-13 20:48:36 -0600
committerPatrick Georgi <patrick@georgi-clan.de>2012-07-24 12:17:21 +0200
commitfa418e3c66ca1728f41bd5811a77dcb14253441c (patch)
tree639643983e483a7c22f5d9a910907f3fb3967998 /src
parentc8c836f58e9bbfbddda800fd98c2de42642af1a5 (diff)
Add uartmem_init prototype.
The oxpcie ramstage code calls uartmem_init after the PCI memory allocation, but hte function was static and didn't have a prototype. Change-Id: Iabc1a3d248aeaed29aaaa22504defac97c572326 Signed-off-by: Marc Jones <marc.jones@se-eng.com> Reviewed-on: http://review.coreboot.org/1285 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src')
-rw-r--r--src/console/uart8250mem_console.c2
-rw-r--r--src/include/uart8250.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/console/uart8250mem_console.c b/src/console/uart8250mem_console.c
index 923df99df1..ed77237e41 100644
--- a/src/console/uart8250mem_console.c
+++ b/src/console/uart8250mem_console.c
@@ -23,7 +23,7 @@
static u32 uart_bar = 0;
-static void uartmem_init(void)
+void uartmem_init(void)
{
uart_bar = uart_mem_init();
}
diff --git a/src/include/uart8250.h b/src/include/uart8250.h
index 71b9a5f310..8457530012 100644
--- a/src/include/uart8250.h
+++ b/src/include/uart8250.h
@@ -125,6 +125,7 @@ void uart8250_tx_flush(unsigned base_port);
*/
void uart8250_init(unsigned base_port, unsigned divisor);
void uart_init(void);
+void uartmem_init(void);
/* and the same for memory mapped uarts */
unsigned char uart8250_mem_rx_byte(unsigned base_port);