Add a DRIVERS_PS2_KEYBOARD option which controls the PS2 keyboard
initialization. Not all payloads require it and some keyboards take a long time to init. Signed-off-by: Kevin O'Connor <kevin@koconnor.net> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5790 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
080ed7c5d5
commit
9c35c8409d
|
@ -31,3 +31,18 @@ config HAVE_BUS_CONFIG
|
||||||
help
|
help
|
||||||
This variable specifies whether a given board has a get_bus_conf.c
|
This variable specifies whether a given board has a get_bus_conf.c
|
||||||
file containing information about bus routing.
|
file containing information about bus routing.
|
||||||
|
|
||||||
|
# Will be removed (alongside with the PS2 init code) once payloads
|
||||||
|
# reliably support PS2 init themselves.
|
||||||
|
config DRIVERS_PS2_KEYBOARD
|
||||||
|
bool "PS2 Keyboard init"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Enable this option to initialize PS2 keyboards found connected
|
||||||
|
to the PS2 port. Some payloads (eg, filo) require this
|
||||||
|
option. Other payloads (eg, SeaBIOS, Linux) do not require
|
||||||
|
it. Initializing a PS2 keyboard can take several hundred
|
||||||
|
milliseconds.
|
||||||
|
If you know you will only use a payload which does not require
|
||||||
|
this option, then you can say "n" here to speed up boot time.
|
||||||
|
Otherwise say "y".
|
||||||
|
|
|
@ -162,6 +162,8 @@ static u8 send_keyboard(u8 command)
|
||||||
void pc_keyboard_init(struct pc_keyboard *keyboard)
|
void pc_keyboard_init(struct pc_keyboard *keyboard)
|
||||||
{
|
{
|
||||||
u8 regval;
|
u8 regval;
|
||||||
|
if (!CONFIG_DRIVERS_PS2_KEYBOARD)
|
||||||
|
return;
|
||||||
printk(BIOS_DEBUG, "Keyboard init...\n");
|
printk(BIOS_DEBUG, "Keyboard init...\n");
|
||||||
|
|
||||||
/* Run a keyboard controller self-test */
|
/* Run a keyboard controller self-test */
|
||||||
|
|
Loading…
Reference in New Issue