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 <scott@notabs.org>
Acked-by: Marc Jones <marcj303@gmail.com>

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5798 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Scott Duplichan 2010-09-09 20:37:00 +00:00 committed by Marc Jones
parent 8f8a51cded
commit 9c934d1d46
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}