From 9c934d1d468fca0fd955e869324f5846426e1b32 Mon Sep 17 00:00:00 2001 From: Scott Duplichan Date: Thu, 9 Sep 2010 20:37:00 +0000 Subject: This patch avoids a timeout during PS/2 keyboard initialization. It can reduce KBC init time by up to 400 ms on real hardware, and by a minute or so on AMD simnow. Signed-off-by: Scott Duplichan Acked-by: Marc Jones git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5798 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/pc80/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pc80') diff --git a/src/pc80/keyboard.c b/src/pc80/keyboard.c index 9dadf0e39a..8552860b6f 100644 --- a/src/pc80/keyboard.c +++ b/src/pc80/keyboard.c @@ -244,7 +244,7 @@ void pc_keyboard_init(struct pc_keyboard *keyboard) outb(0x60, KBD_COMMAND); if (!kbc_input_buffer_empty()) return; outb(0x61, KBD_DATA); /* send cmd: enable keyboard and IRQ 1 */ - if (kbc_output_buffer_full()) { + if (!kbc_input_buffer_empty()) { printk(BIOS_ERR, "Timeout during final keyboard enable\n"); return; } -- cgit v1.2.3