diff options
author | Scott Chao <scott_chao@wistron.corp-partner.google.com> | 2021-08-17 14:33:17 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-18 00:02:54 +0000 |
commit | c644626f6f8bd91661a2bf34829c0a2a1b7ce4c2 (patch) | |
tree | e076fbdf2dddbab56bc53262e62868e4be26eeaa /board/primus/board.c | |
parent | ef6a4403f00aec332e0d53c5ff913261c347532b (diff) | |
download | chrome-ec-c644626f6f8bd91661a2bf34829c0a2a1b7ce4c2.tar.gz |
primus: set T15 as lock key
BUG=b:185084342
BRANCH=none
TEST=make -j BOARD=primus
TEST=check lock key works
Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Change-Id: I0f08cf8a71efda77ae9ca130a0ba32ea5e0f6902
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3099285
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'board/primus/board.c')
-rw-r--r-- | board/primus/board.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/primus/board.c b/board/primus/board.c index 371f030810..cc8087a6df 100644 --- a/board/primus/board.c +++ b/board/primus/board.c @@ -14,6 +14,7 @@ #include "gpio.h" #include "gpio_signal.h" #include "hooks.h" +#include "keyboard_8042_sharedlib.h" #include "lid_switch.h" #include "power_button.h" #include "power.h" @@ -106,3 +107,12 @@ enum battery_present battery_hw_present(void) /* The GPIO is low when the battery is physically present */ return gpio_get_level(batt_pres) ? BP_NO : BP_YES; } + +static void keyboard_init(void) +{ + /* + * Set T15(KSI0/KSO11) to Lock key(KSI3/KSO9) + */ + set_scancode_set2(0, 11, get_scancode_set2(3, 9)); +} +DECLARE_HOOK(HOOK_INIT, keyboard_init, HOOK_PRIO_DEFAULT); |