console: log qemu debugcon detection result

Change-Id: Ie0507475f33d029d6e8ce59f138e0e7da5156d4f
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-on: http://review.coreboot.org/3339
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Gerd Hoffmann 2013-05-30 13:23:38 +02:00 committed by Ronald G. Minnich
parent 22f01e611b
commit 4321d60acb
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ static unsigned char readback;
static void debugcon_init(void)
{
readback = inb(CONFIG_CONSOLE_QEMU_DEBUGCON_PORT);
printk(BIOS_INFO, "QEMU debugcon %s [port 0x%x]\n",
(readback == 0xe9) ? "detected" : "not found",
CONFIG_CONSOLE_QEMU_DEBUGCON_PORT);
}
static void debugcon_tx_byte(unsigned char data)