diff options
author | johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com> | 2022-05-06 17:23:21 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-11 02:09:02 +0000 |
commit | 74aa410552225b76686a451941acefe66c238626 (patch) | |
tree | b50508577dc6c6253e73b67b7add9889c5cfe898 /board/mithrax/keyboard.c | |
parent | 999b1a6384d259c1b8567e55dd8f84ed26854b82 (diff) | |
download | chrome-ec-74aa410552225b76686a451941acefe66c238626.tar.gz |
mithrax: Initial EC image
Copy the Felwinter reference board EC files into a new directory
name for the Mithrax variant.
(Copy from commit 60c5d955940500bd5c9ea29ed8814c2977adc266.)
BUG=b:223091246
BRANCH=None
TEST=make BOARD=mithrax
Signed-off-by: johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com>
Change-Id: Ieea80fcf70f55e02755d32d065c90503a820d97c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3631847
Reviewed-by: Ko Ko <ko_ko@compal.corp-partner.google.com>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'board/mithrax/keyboard.c')
-rw-r--r-- | board/mithrax/keyboard.c | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/board/mithrax/keyboard.c b/board/mithrax/keyboard.c index 133d574dfa..a8cbf72238 100644 --- a/board/mithrax/keyboard.c +++ b/board/mithrax/keyboard.c @@ -1,10 +1,10 @@ -/* Copyright 2022 The Chromium OS Authors. All rights reserved. +/* Copyright 2021 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "common.h" - +#include "ec_commands.h" #include "keyboard_scan.h" #include "timer.h" @@ -19,7 +19,30 @@ __override 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 */ + 0x1c, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff, + 0xa4, 0xff, 0xfe, 0x55, 0xfe, 0xff, 0xff, 0xff, /* full set */ }, }; + +static const struct ec_response_keybd_config felwinter_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 | KEYBD_CAP_NUMERIC_KEYPAD, +}; + +__override const struct ec_response_keybd_config +*board_vivaldi_keybd_config(void) +{ + return &felwinter_kb; +} |