diff options
author | Rajat Jain <rajatja@google.com> | 2020-05-13 14:42:29 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-05-15 03:52:39 +0000 |
commit | ecc4c4e5f141543daa6c96826f3e6b5dcfa2a554 (patch) | |
tree | 07089b80658a6e026bf5570fe95549ad72a6bea5 /src/acpi | |
parent | 9a41af60c4f570e4621ce3c1a351e9316f2b3b93 (diff) | |
download | coreboot-ecc4c4e5f141543daa6c96826f3e6b5dcfa2a554.tar.xz |
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 <rajatja@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41382
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/acpi')
-rw-r--r-- | src/acpi/acpigen_ps2_keybd.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |