libpayload/drivers/i8402/kbd: Fix qemu
Reset keyboard controller to fix qemu make scan codes. Change-Id: I5f8ad2d4be4b9e89d9af3a62726259e77f0403c1 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/23584 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
e39db681df
commit
a95a6bf646
|
@ -333,6 +333,14 @@ void keyboard_init(void)
|
||||||
if (!ret && !CONFIG(LP_PC_KEYBOARD_IGNORE_INIT_FAILURE))
|
if (!ret && !CONFIG(LP_PC_KEYBOARD_IGNORE_INIT_FAILURE))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set default parameters.
|
||||||
|
* Fix for broken QEMU ps/2 make scancodes.
|
||||||
|
*/
|
||||||
|
ret = keyboard_cmd(0xf6);
|
||||||
|
if (!ret)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Enable scanning */
|
/* Enable scanning */
|
||||||
ret = keyboard_cmd(I8042_KBCMD_EN);
|
ret = keyboard_cmd(I8042_KBCMD_EN);
|
||||||
if (!ret && !CONFIG(LP_PC_KEYBOARD_IGNORE_INIT_FAILURE))
|
if (!ret && !CONFIG(LP_PC_KEYBOARD_IGNORE_INIT_FAILURE))
|
||||||
|
|
Loading…
Reference in New Issue