From patchwork Mon Sep 6 23:23:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/4] Make initializing PS2 keyboard optional. Date: Mon, 06 Sep 2010 23:23:42 -0000 From: Kevin O'Connor X-Patchwork-Id: 1875 Message-Id: <53241126486840e63685efc05e61ee3b9dac2b9b.1283815188.git.kevin@koconnor.net> To: coreboot@coreboot.org 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 Acked-by: Patrick Georgi --- src/Kconfig | 14 ++++++++++++++ src/pc80/keyboard.c | 2 ++ 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/Kconfig b/src/Kconfig index ec3a13b..ebbb14a 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -120,6 +120,20 @@ endmenu menu "Generic Drivers" source src/drivers/Kconfig + +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". endmenu config PCI_BUS_SEGN_BITS diff --git a/src/pc80/keyboard.c b/src/pc80/keyboard.c index dee6279..9dadf0e 100644 --- a/src/pc80/keyboard.c +++ b/src/pc80/keyboard.c @@ -162,6 +162,8 @@ static u8 send_keyboard(u8 command) void pc_keyboard_init(struct pc_keyboard *keyboard) { u8 regval; + if (!CONFIG_DRIVERS_PS2_KEYBOARD) + return; printk(BIOS_DEBUG, "Keyboard init...\n"); /* Run a keyboard controller self-test */