diff options
author | Samsp_Liu <Samsp_Liu@compal.corp-partner.google.com> | 2020-08-20 11:16:33 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-03 04:34:00 +0000 |
commit | 0ebea59ecfb70b30a6dfb8232489be681500e084 (patch) | |
tree | 485d0328e466d00b18237d4cb681afc9a0d5db8a /board/halvor | |
parent | 8db1cf02395cb38b44fea2ffb9c3660624e227a8 (diff) | |
download | chrome-ec-0ebea59ecfb70b30a6dfb8232489be681500e084.tar.gz |
halvor: Initialize the keyboard
Initialize the keyboard
BUG=b:149536282
BRANCH=none
TEST=halvor test
Change-Id: I0081587e62836e09e2874589047ef46813e13238
Signed-off-by: Samsp_Liu <Samsp_Liu@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2366317
Tested-by: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
Diffstat (limited to 'board/halvor')
-rw-r--r-- | board/halvor/board.c | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/board/halvor/board.c b/board/halvor/board.c index da9b72805d..2167e1f959 100644 --- a/board/halvor/board.c +++ b/board/halvor/board.c @@ -51,12 +51,36 @@ struct keyboard_scan_config keyscan_config = { .min_post_scan_delay_us = 1000, .poll_timeout_us = 100 * MSEC, .actual_key_mask = { - 0x14, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff, - 0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xca /* full set */ + 0x14, 0xff, 0xff, 0xff, 0xff, 0xf4, 0xff, + 0xa0, 0xff, 0xfe, 0x41, 0xfa, 0xc0, 0x02, + 0x08, /* full set */ }, }; /******************************************************************************/ +static const struct ec_response_keybd_config halvor_kb = { + .num_top_row_keys = 10, + .action_keys = { + TK_BACK, /* T1 */ + TK_REFRESH, /* T2 */ + TK_FULLSCREEN, /* T3 */ + TK_OVERVIEW, /* T4 */ + TK_BRIGHTNESS_DOWN, /* T5 */ + TK_BRIGHTNESS_UP, /* T6 */ + TK_PLAY_PAUSE, /* 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 &halvor_kb; +} + /* * FW_CONFIG defaults for Halvor if the CBI data is not initialized. */ |