From b63017fb719cefaa0dcec750048da352a31956c5 Mon Sep 17 00:00:00 2001 From: Jonathon Hall Date: Thu, 13 Jul 2023 16:54:41 -0400 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78095 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Matt DeVillier --- src/include/acpi/acpigen_ps2_keybd.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/acpi/acpigen_ps2_keybd.h b/src/include/acpi/acpigen_ps2_keybd.h index 7dd82822f7..bac991bf36 100644 --- a/src/include/acpi/acpigen_ps2_keybd.h +++ b/src/include/acpi/acpigen_ps2_keybd.h @@ -29,12 +29,13 @@ enum ps2_action_key { PS2_KEY_MENU, }; -#define PS2_MIN_TOP_ROW_KEYS 10 +#define PS2_MIN_TOP_ROW_KEYS 2 #define PS2_MAX_TOP_ROW_KEYS 15 void acpigen_ps2_keyboard_dsd(const char *scope, uint8_t num_top_row_keys, enum ps2_action_key action_keys[], bool can_send_function_keys, - bool has_numeric_keypad, bool has_scrnlock_key); + bool has_numeric_keypad, bool has_scrnlock_key, + bool has_alpha_num_punct_keys); #endif /* __ACPI_ACPIGEN_PS2_KEYBD_H__ */ -- cgit v1.2.3