Detect whether the OXPCIE card is really present while in the ROM stage.
authorGabe Black <gabeblack@google.com>
Wed, 5 Oct 2011 08:52:08 +0000 (01:52 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 29 Mar 2012 21:04:06 +0000 (23:04 +0200)
commit4d04a715475a60f627ddeded3385ca04d883a55b
treecc11b066698ea07cbbb76f5377dfaa78d28c43a9
parent1b632aff260695257b78bedc3742652916f2a724
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>
src/arch/x86/lib/romstage_console.c
src/drivers/oxford/oxpcie/oxpcie_early.c
src/include/uart8250.h