arch/x86/acpi: Add code for KEY_MENU

Support of MENU key (aka hamburger) for Chromebooks with Vivaldi
keyboard

BUG=b:215038215
TEST=manually tested on Anahera device: pressing T13 key opens menu

Signed-off-by: Boris Mittelberg <bmbm@google.com>
Change-Id: I07873dd9385c743a6512408688ec44a5e97219f9
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61835
Reviewed-by: Rajat Jain <rajatja@google.com>
Reviewed-by: Lance Zhao
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Boris Mittelberg 2022-02-10 16:30:40 -08:00 committed by Felix Held
parent 0c3b7f5411
commit 130de14a05
3 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,7 @@ static const uint32_t action_keymaps[] = {
KEY_PRIVACY_SCREEN_TOGGLE), KEY_PRIVACY_SCREEN_TOGGLE),
[PS2_KEY_MICMUTE] = KEYMAP(0x9b, KEY_MICMUTE), /* e01b */ [PS2_KEY_MICMUTE] = KEYMAP(0x9b, KEY_MICMUTE), /* e01b */
[PS2_KEY_KBD_BKLIGHT_TOGGLE] = KEYMAP(0x9e, KEY_KBDILLUMTOGGLE), /* e01e */ [PS2_KEY_KBD_BKLIGHT_TOGGLE] = KEYMAP(0x9e, KEY_KBDILLUMTOGGLE), /* e01e */
[PS2_KEY_MENU] = KEYMAP(0xdd, KEY_CONTROLPANEL), /* e0d5 */
}; };
/* Keymap for numeric keypad keys */ /* Keymap for numeric keypad keys */

View File

@ -225,6 +225,7 @@ static const enum ps2_action_key ps2_enum_val[] = {
[TK_PREV_TRACK] = PS2_KEY_PREV_TRACK, [TK_PREV_TRACK] = PS2_KEY_PREV_TRACK,
[TK_KBD_BKLIGHT_TOGGLE] = PS2_KEY_KBD_BKLIGHT_TOGGLE, [TK_KBD_BKLIGHT_TOGGLE] = PS2_KEY_KBD_BKLIGHT_TOGGLE,
[TK_MICMUTE] = PS2_KEY_MICMUTE, [TK_MICMUTE] = PS2_KEY_MICMUTE,
[TK_MENU] = PS2_KEY_MENU,
}; };
static void fill_ssdt_ps2_keyboard(const struct device *dev) static void fill_ssdt_ps2_keyboard(const struct device *dev)

View File

@ -26,6 +26,7 @@ enum ps2_action_key {
PS2_KEY_PREV_TRACK, PS2_KEY_PREV_TRACK,
PS2_KEY_KBD_BKLIGHT_TOGGLE, PS2_KEY_KBD_BKLIGHT_TOGGLE,
PS2_KEY_MICMUTE, PS2_KEY_MICMUTE,
PS2_KEY_MENU,
}; };
#define PS2_MIN_TOP_ROW_KEYS 10 #define PS2_MIN_TOP_ROW_KEYS 10