summaryrefslogtreecommitdiff
path: root/src/include/uart8250.h
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2011-10-05 01:52:08 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-03-29 23:04:06 +0200
commit4d04a715475a60f627ddeded3385ca04d883a55b (patch)
treecc11b066698ea07cbbb76f5377dfaa78d28c43a9 /src/include/uart8250.h
parent1b632aff260695257b78bedc3742652916f2a724 (diff)
downloadcoreboot-4d04a715475a60f627ddeded3385ca04d883a55b.tar.xz
Detect whether the OXPCIE card is really present while in the ROM stage.
Use an int in CAR global data to store whether or not the OXPCIE serial card is actually there. Also, time out if the card doesn't show up quickly enough, don't continue initialization if it's not there, and don't make the initialization routine default to a card if none is found. Change-Id: I9c72d3abc6ee2867b77ab2f2180e6f01f647af8c Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: http://review.coreboot.org/728 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/include/uart8250.h')
-rw-r--r--src/include/uart8250.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/uart8250.h b/src/include/uart8250.h
index aa510e56f8..71b9a5f310 100644
--- a/src/include/uart8250.h
+++ b/src/include/uart8250.h
@@ -135,8 +135,13 @@ void uart8250_mem_init(unsigned base_port, unsigned divisor);
u32 uart_mem_init(void);
u32 uartmem_getbaseaddr(void);
+#if defined(__PRE_RAM__) && CONFIG_DRIVERS_OXFORD_OXPCIE && \
+ CONFIG_CONSOLE_SERIAL8250MEM
/* and special init for OXPCIe based cards */
+extern int oxford_oxpcie_present;
+
void oxford_init(void);
+#endif
#endif /* __ROMCC__ */