Scott Chao has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/56710 )
Change subject: ec/google/chromeec: Add code for KEY_MICMUTE and KEY_KBDILLUMTOGGLE ......................................................................
ec/google/chromeec: Add code for KEY_MICMUTE and KEY_KBDILLUMTOGGLE
Chromebook have some platform need support MICMUTE and KBDILLUMTOGGLE.
BUG=b:194146863 BRANCH=none TEST=check on evtest type 4 (EV_MSC), code 4 (MSC_SCAN), value ab type 1 (EV_KEY), code 228 (KEY_KBDILLUMTOGGLE), 1
type 4 (EV_MSC), code 4 (MSC_SCAN), value 9b type 1 (EV_KEY), code 248 (KEY_MICMUTE), value 1
Signed-off-by: Scott Chao scott_chao@wistron.corp-partner.google.com Change-Id: Ie4fa3e627f448265f72279704d258b2d3fe8fc17 --- M src/ec/google/chromeec/ec_acpi.c M src/ec/google/chromeec/ec_commands.h 2 files changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/56710/1
diff --git a/src/ec/google/chromeec/ec_acpi.c b/src/ec/google/chromeec/ec_acpi.c index 4b3f781..940d906 100644 --- a/src/ec/google/chromeec/ec_acpi.c +++ b/src/ec/google/chromeec/ec_acpi.c @@ -184,6 +184,8 @@ [TK_PLAY_PAUSE] = PS2_KEY_PLAY_PAUSE, [TK_NEXT_TRACK] = PS2_KEY_NEXT_TRACK, [TK_PREV_TRACK] = PS2_KEY_PREV_TRACK, + [TK_KBDILLUMTOGGLE] = PS2_KEY_KBDILLUMTOGGLE, + [TK_MICMUTE] = PS2_KEY_MICMUTE, };
static void fill_ssdt_ps2_keyboard(const struct device *dev) diff --git a/src/ec/google/chromeec/ec_commands.h b/src/ec/google/chromeec/ec_commands.h index 7ba3565..0a06fe7 100644 --- a/src/ec/google/chromeec/ec_commands.h +++ b/src/ec/google/chromeec/ec_commands.h @@ -6331,6 +6331,8 @@ TK_PLAY_PAUSE = 15, TK_NEXT_TRACK = 16, TK_PREV_TRACK = 17, + TK_KBDILLUMTOGGLE = 18, + TK_MICMUTE = 19, };
/*