coreboot/src/pc80
Mathias Krause 1c80cf04fe kbd: wait longer for self-test on keyboard reset
Some keyboards take pretty long to respond to a reset command, some even
delay the ACK to the command. To make the keyboard driver more robust,
increase the timeout for this special command. Also do an interface test
after the self-test to ensure the keyboard is functioning properly.

Another point is to reenable the keyboard *after* the scancode was set,
not before. We also set the system bit when enabling the keyboard
because this seems to be what older operating systems do expect.

One of the problematic keyboards, which will work with this patch
applied, is the DELL RT7D20. Without the patch an overly optimistic
operating system, read Linux 2.4, will not recognise the keyboard
because coreboot didn't fully initialize it.

Change-Id: I28c8e05bdde61f71b7de084c96bc2447c1b9575e
Signed-off-by: Mathias Krause <mathias.krause@secunet.com>
Reviewed-on: http://review.coreboot.org/486
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
2011-12-21 16:25:20 +01:00
..
vga Rename build system variables to be more intuitive, and 2010-09-30 16:55:02 +00:00
i8254.c Enable/fix compilation of i8254 code in ram stage. 2011-10-13 20:00:22 +02:00
i8259.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
isa-dma.c - Bump the LinuxBIOS major version 2004-10-21 10:44:08 +00:00
keyboard.c kbd: wait longer for self-test on keyboard reset 2011-12-21 16:25:20 +01:00
Makefile.inc Enable/fix compilation of i8254 code in ram stage. 2011-10-13 20:00:22 +02:00
mc146818rtc.c Fix checksum calculation both in romstage and ramstage. 2011-10-28 09:09:40 +02:00
mc146818rtc_early.c Fix checksum calculation both in romstage and ramstage. 2011-10-28 09:09:40 +02:00
udelay_io.c Add few missing prototypes, and remove few unused (thus lonelly) variables. 2009-10-27 14:29:29 +00:00