acpi/acpigen_ps2_keybd: Reduce minimum keys, optional alpha/num/punct

Librem 11's volume keys act as a PS/2 keyboard with only those two
keys.  Reduce the minimum number of top-row keys to 2.  Make the
"rest of keys" (alphanumerics, punctuation, etc.) optional.

Change-Id: Idf80b184ec816043138750ee0a869b23f1e6dcf2
Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78095
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <inforichland@gmail.com>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
Jonathon Hall
2023-07-13 16:54:41 -04:00
committed by Felix Held
parent 1af3e3c5f8
commit b63017fb71
3 changed files with 18 additions and 10 deletions

View File

@@ -251,7 +251,8 @@ static void fill_ssdt_ps2_keyboard(const struct device *dev)
ps2_action_keys,
!!(keybd.capabilities & KEYBD_CAP_FUNCTION_KEYS),
!!(keybd.capabilities & KEYBD_CAP_NUMERIC_KEYPAD),
!!(keybd.capabilities & KEYBD_CAP_SCRNLOCK_KEY));
!!(keybd.capabilities & KEYBD_CAP_SCRNLOCK_KEY),
true);
}
static const char *ec_acpi_name(const struct device *dev)