diff options
author | Jonathon Hall <jonathon.hall@puri.sm> | 2023-07-13 16:54:41 -0400 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-10-02 16:24:54 +0000 |
commit | b63017fb719cefaa0dcec750048da352a31956c5 (patch) | |
tree | a15ab23f26b97727dbacfecd0fb4d177670c3a05 /src/include/acpi | |
parent | 1af3e3c5f809fa39db9e727bcb41f4996f58202f (diff) |
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>
Diffstat (limited to 'src/include/acpi')
-rw-r--r-- | src/include/acpi/acpigen_ps2_keybd.h | 5 |
1 files changed, 3 insertions, 2 deletions
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__ */ |