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:
parent
1af3e3c5f8
commit
b63017fb71
3 changed files with 18 additions and 10 deletions
|
|
@ -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__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue