summaryrefslogtreecommitdiff
path: root/src/acpi/acpigen_ps2_keybd.c
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2024-04-09 20:15:20 -0500
committerFelix Held <felix-coreboot@felixheld.de>2024-04-15 13:32:48 +0000
commitf2782b8328d59c2c76b67fced4ebff48cdd17c32 (patch)
treedbe68cb8f6488acd179dce3e0bf03aa79288d4de /src/acpi/acpigen_ps2_keybd.c
parent35130a8e1facf3389dd2adb8266876a7aa7571cd (diff)
acpigen_ps2_keybd: Add support for dictation key
Some internal keyboards have a dictation key; this commit simply adds support for this key by adding the mapping from the scancode to the Linux keycode for use in the linux,physmap ACPI table. BUG=b:333101631 TEST=Flash DUT that emits a scancode for a dictation key, verify that it is mapped to KEY_DICTATE in the Linux kernel. Change-Id: Iabc56662a9d6b29e84ab81ed93cb46d2e8372de9 Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81863 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Diffstat (limited to 'src/acpi/acpigen_ps2_keybd.c')
-rw-r--r--src/acpi/acpigen_ps2_keybd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/acpi/acpigen_ps2_keybd.c b/src/acpi/acpigen_ps2_keybd.c
index 67e92a9a3b..6590e6688d 100644
--- a/src/acpi/acpigen_ps2_keybd.c
+++ b/src/acpi/acpigen_ps2_keybd.c
@@ -56,6 +56,7 @@ static const uint32_t action_keymaps[] = {
[PS2_KEY_MICMUTE] = KEYMAP(0x9b, KEY_MICMUTE), /* e01b */
[PS2_KEY_KBD_BKLIGHT_TOGGLE] = KEYMAP(0x9e, KEY_KBDILLUMTOGGLE), /* e01e */
[PS2_KEY_MENU] = KEYMAP(0xdd, KEY_CONTROLPANEL), /* e0d5 */
+ [PS2_KEY_DICTATE] = KEYMAP(0xa7, KEY_DICTATE), /* e027*/
};
/* Keymap for numeric keypad keys */