From ecc4c4e5f141543daa6c96826f3e6b5dcfa2a554 Mon Sep 17 00:00:00 2001 From: Rajat Jain Date: Wed, 13 May 2020 14:42:29 -0700 Subject: acpigen_ps2_keybd: Add keymap for Power key Power key is a special non-matrixed key. Chrome /powerd only listens to the keyboard device for this key, so add its keymap. BUG=b:155941390 TEST=Test that power key generates KEY_POWER in linux evtest Change-Id: I570602d9febcb5c17e58761f2004ee88be16c27f Signed-off-by: Rajat Jain Reviewed-on: https://review.coreboot.org/c/coreboot/+/41382 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/acpi/acpigen_ps2_keybd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/acpi/acpigen_ps2_keybd.c b/src/acpi/acpigen_ps2_keybd.c index 78eb55ed47..1379a89c18 100644 --- a/src/acpi/acpigen_ps2_keybd.c +++ b/src/acpi/acpigen_ps2_keybd.c @@ -168,6 +168,8 @@ static uint32_t rest_of_keymaps[] = { KEYMAP(0xd0, KEY_DOWN), KEYMAP(0xcd, KEY_RIGHT), KEYMAP(0xc8, KEY_UP), + /* Power Key */ + KEYMAP(0xde, KEY_POWER), }; static void ssdt_generate_physmap(struct acpi_dp *dp, uint8_t num_top_row_keys, -- cgit v1.2.3