[SeaBIOS] [PATCH] ps2port: Enable keyboard write for i8042 before reset
Jean Lucas
jean at 4ray.co
Sun Mar 18 02:49:11 CET 2018
This enables the keyboard on some Chromebooks after a hard reset.
Tested on an Acer C720 and a Dell Inspiron 660s.
Signed-off-by: Jean Lucas <jean at 4ray.co>
---
src/hw/ps2port.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/hw/ps2port.c b/src/hw/ps2port.c
index 88b1059..ac409de 100644
--- a/src/hw/ps2port.c
+++ b/src/hw/ps2port.c
@@ -475,6 +475,11 @@ ps2_keyboard_setup(void *data)
return;
}
+ // Keyboard write command
+ ret = i8042_command(I8042_CMD_CTL_WCTR, NULL);
+ if (ret)
+ return;
+
// Controller keyboard test.
ret = i8042_command(I8042_CMD_KBD_TEST, param);
if (ret)
@@ -505,11 +510,6 @@ ps2_keyboard_setup(void *data)
return;
}
- /* Disable keyboard */
- ret = ps2_kbd_command(ATKBD_CMD_RESET_DIS, NULL);
- if (ret)
- return;
-
// Set scancode command (mode 2)
param[0] = 0x02;
ret = ps2_kbd_command(ATKBD_CMD_SSCANSET, param);
--
2.16.2
More information about the SeaBIOS
mailing list