[coreboot-gerrit] Change in coreboot[master]: libpayload/drivers/i8402/kbd: Fix qemu

Patrick Rudolph (Code Review) gerrit at coreboot.org
Sat Feb 3 15:03:42 CET 2018


Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/23584


Change subject: libpayload/drivers/i8402/kbd: Fix qemu
......................................................................

libpayload/drivers/i8402/kbd: Fix qemu

Reset keyboard controller to fix qemu make scan codes.

Change-Id: I5f8ad2d4be4b9e89d9af3a62726259e77f0403c1
Signed-off-by: Patrick Rudolph <siro at das-labor.org>
---
M payloads/libpayload/drivers/i8042/keyboard.c
1 file changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/84/23584/1

diff --git a/payloads/libpayload/drivers/i8042/keyboard.c b/payloads/libpayload/drivers/i8042/keyboard.c
index d9063e5..b44fafa 100644
--- a/payloads/libpayload/drivers/i8042/keyboard.c
+++ b/payloads/libpayload/drivers/i8042/keyboard.c
@@ -315,6 +315,14 @@
 	if (!ret)
 		return;
 
+	/*
+	 * Set default parameters.
+	 * Fix for broken QEMU ps/2 make scancodes.
+	 */
+	ret = keyboard_cmd(0xf6);
+	if (!ret)
+		return;
+
 	/* Enable scanning */
 	ret = keyboard_cmd(0xf4);
 	if (!ret)

-- 
To view, visit https://review.coreboot.org/23584
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5f8ad2d4be4b9e89d9af3a62726259e77f0403c1
Gerrit-Change-Number: 23584
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <siro at das-labor.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180203/452bec20/attachment-0001.html>


More information about the coreboot-gerrit mailing list