libpayload/keyboard: Reset to scancode set #2 on exit
commit1f2b5fb20137afc897aff6304cd31682cac56282
authorNico Huber <nico.h@gmx.de>
Sat, 14 Nov 2020 12:43:21 +0000 (14 13:43 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Sun, 18 Apr 2021 20:45:23 +0000 (18 20:45 +0000)
treefab93d959d4f3e355006c4b685aaee8e6be46443
parent4dc92782fca59e797556f6278c247b88f91c09ec
libpayload/keyboard: Reset to scancode set #2 on exit

If we select scancode set #1 and keep that, it can confuse Linux
with keyboards that don't return to set #2 when asked to load the
defaults. This happens for instance with various integrated Think-
Pad keyboards but was also seen with an external PS/2 one.

The chosen configuration, scancode set #2 without translation, seems
to be the default for many systems. So we can expect other payloads
and kernels to work with it.

Change-Id: I28d74590e9f04d32bb2bbd461b67f15014f927ec
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47594
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
payloads/libpayload/drivers/i8042/keyboard.c