diff options
author | johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com> | 2022-10-18 17:48:12 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-20 05:32:26 +0000 |
commit | 0f287fa0452c4579ff4b00a8b5984aaf14d62617 (patch) | |
tree | 2e76329ea368e12ce46ac194d39cfb531c8c1969 | |
parent | cb8f734af4c6b921190f796c6d2664695a2b8c9e (diff) | |
download | chrome-ec-0f287fa0452c4579ff4b00a8b5984aaf14d62617.tar.gz |
Winterhold: Adjust keyboard top row
The vivaldi keyboard of winterholdis different to the common config.
So we adjust it.
BUG=b:253696885
BRANCH=none
TEST=zmake build winterhold and verify with evtest
LOW_COVERAGE_REASON=Skyrim board tests not created yet: b/247151116
Signed-off-by: johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com>
Change-Id: Ic99472f3c87baf505093aa063bc8deb88fa10a90
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3962235
Reviewed-by: Diana Z <dzigterman@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
-rw-r--r-- | zephyr/projects/skyrim/CMakeLists.txt | 1 | ||||
-rw-r--r-- | zephyr/projects/skyrim/src/winterhold/keyboard.c | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/zephyr/projects/skyrim/CMakeLists.txt b/zephyr/projects/skyrim/CMakeLists.txt index 14a86bed70..71b8427aa1 100644 --- a/zephyr/projects/skyrim/CMakeLists.txt +++ b/zephyr/projects/skyrim/CMakeLists.txt @@ -44,6 +44,7 @@ if(DEFINED CONFIG_BOARD_WINTERHOLD) "src/winterhold/usb_mux_config.c" "src/winterhold/ppc_config.c" "src/winterhold/kb_backlight.c" + "src/winterhold/keyboard.c" ) endif() diff --git a/zephyr/projects/skyrim/src/winterhold/keyboard.c b/zephyr/projects/skyrim/src/winterhold/keyboard.c new file mode 100644 index 0000000000..d3aebe0f2e --- /dev/null +++ b/zephyr/projects/skyrim/src/winterhold/keyboard.c @@ -0,0 +1,29 @@ +/* Copyright 2022 The ChromiumOS Authors + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "ec_commands.h" + +static const struct ec_response_keybd_config winterhold_kb = { + .num_top_row_keys = 10, + .action_keys = { + TK_BACK, /* T1 */ + TK_REFRESH, /* T2 */ + TK_FULLSCREEN, /* T3 */ + TK_OVERVIEW, /* T4 */ + TK_SNAPSHOT, /* T5 */ + TK_BRIGHTNESS_DOWN, /* T6 */ + TK_BRIGHTNESS_UP, /* T7 */ + TK_VOL_MUTE, /* T8 */ + TK_VOL_DOWN, /* T9 */ + TK_VOL_UP, /* T10 */ + }, + .capabilities = KEYBD_CAP_SCRNLOCK_KEY, +}; + +__override const struct ec_response_keybd_config * +board_vivaldi_keybd_config(void) +{ + return &winterhold_kb; +} |