Boris Mittelberg has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/61835 )
Change subject: arch/x86/acpi: Add code for KEY_MENU ......................................................................
arch/x86/acpi: Add code for KEY_MENU
Brya chromebooks need support for MENU aka hamburger key.
BUG=b:215038215 BRANCH=none TEST=none
Signed-off-by: Boris Mittelberg bmbm@google.com Change-Id: I07873dd9385c743a6512408688ec44a5e97219f9 --- M src/acpi/acpigen_ps2_keybd.c M src/ec/google/chromeec/ec_acpi.c M src/include/acpi/acpigen_ps2_keybd.h 3 files changed, 3 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/35/61835/1
diff --git a/src/acpi/acpigen_ps2_keybd.c b/src/acpi/acpigen_ps2_keybd.c index c65790d..0880a32 100644 --- a/src/acpi/acpigen_ps2_keybd.c +++ b/src/acpi/acpigen_ps2_keybd.c @@ -56,6 +56,7 @@ KEY_PRIVACY_SCREEN_TOGGLE), [PS2_KEY_MICMUTE] = KEYMAP(0x9b, KEY_MICMUTE), /* e01b */ [PS2_KEY_KBD_BKLIGHT_TOGGLE] = KEYMAP(0x9e, KEY_KBDILLUMTOGGLE), /* e01e */ + [PS2_KEY_MENU] = KEYMAP(0xaf, KEY_CONTROLPANEL), /* e02f */ };
/* Keymap for numeric keypad keys */ diff --git a/src/ec/google/chromeec/ec_acpi.c b/src/ec/google/chromeec/ec_acpi.c index 0598364..c6301e1 100644 --- a/src/ec/google/chromeec/ec_acpi.c +++ b/src/ec/google/chromeec/ec_acpi.c @@ -186,6 +186,7 @@ [TK_PREV_TRACK] = PS2_KEY_PREV_TRACK, [TK_KBD_BKLIGHT_TOGGLE] = PS2_KEY_KBD_BKLIGHT_TOGGLE, [TK_MICMUTE] = PS2_KEY_MICMUTE, + [TK_MENU] = PS2_KEY_MENU, };
static void fill_ssdt_ps2_keyboard(const struct device *dev) diff --git a/src/include/acpi/acpigen_ps2_keybd.h b/src/include/acpi/acpigen_ps2_keybd.h index e32ca2a..7dd8282 100644 --- a/src/include/acpi/acpigen_ps2_keybd.h +++ b/src/include/acpi/acpigen_ps2_keybd.h @@ -26,6 +26,7 @@ PS2_KEY_PREV_TRACK, PS2_KEY_KBD_BKLIGHT_TOGGLE, PS2_KEY_MICMUTE, + PS2_KEY_MENU, };
#define PS2_MIN_TOP_ROW_KEYS 10