From c72c760f4a934538af6d231c182da7aa802c30d1 Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Sat, 8 Jun 2024 03:48:04 +0000 Subject: acpigen_ps2_keybd: Support a Do Not Disturb key This commit simply adds support for a Do Not Disturb key. HUTRR94 added support for a new usage titled "System Do Not Disturb" which toggles a system-wide Do Not Disturb setting. BUG=b:342467600 TEST=Build and flash a board that generates a scancode for a Do Not Disturb key. Verify that KEY_DO_NOT_DISTURB is generated in the Linux kernel with patches[0] that add this new event code using `evtest`. [0] - https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?id=22d6d060ac77955291deb43efc2f3f4f9632c6cb Change-Id: I26e719bbde5106305282fe43dd15833a3e48e41e Signed-off-by: Aseda Aboagye Reviewed-on: https://review.coreboot.org/c/coreboot/+/82997 Reviewed-by: Caveh Jalali Tested-by: build bot (Jenkins) Reviewed-by: Forest Mittelberg --- src/acpi/acpigen_ps2_keybd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/acpi/acpigen_ps2_keybd.c') diff --git a/src/acpi/acpigen_ps2_keybd.c b/src/acpi/acpigen_ps2_keybd.c index e4322c16b6..43a1eced59 100644 --- a/src/acpi/acpigen_ps2_keybd.c +++ b/src/acpi/acpigen_ps2_keybd.c @@ -58,6 +58,7 @@ static const uint32_t action_keymaps[] = { [PS2_KEY_MENU] = KEYMAP(0xdd, KEY_CONTROLPANEL), /* e0d5 */ [PS2_KEY_DICTATE] = KEYMAP(0xa7, KEY_DICTATE), /* e027*/ [PS2_KEY_ACCESSIBILITY] = KEYMAP(0xa9, KEY_ACCESSIBILITY), /* e029 */ + [PS2_KEY_DO_NOT_DISTURB] = KEYMAP(0xa8, KEY_DO_NOT_DISTURB), /* e028 */ }; /* Keymap for numeric keypad keys */ -- cgit v1.2.3