diff options
author | Teddy Shih <teddyshih@ami.corp-partner.google.com> | 2022-01-06 21:14:22 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-10 16:38:37 +0000 |
commit | 6f2db445178f9e682cf8438d8d6b996551ae0eaa (patch) | |
tree | 748971b3d8a1ff827b8d2513cd4a1f3141d0f136 | |
parent | 2dad7f1113745c386f855953757a6bc3e28d6734 (diff) | |
download | chrome-ec-6f2db445178f9e682cf8438d8d6b996551ae0eaa.tar.gz |
beadrix: Initialize the vivaldi keyboard
Initialize the vivaldi keyboard.
BUG=b:204882915, b:212561859
BRANCH=None
TEST=Manual
1. evtest, make sure the keycode is correct.
2. Check F1 to F10 function.
3. Check F2 + power button (EC reboot).
4. Check ESC + F2 + power button.
Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com>
Change-Id: Ifa619e304153c1cd383f4b8e874e4885f77e3339
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3369845
Reviewed-by: Henry Sun <henrysun@google.com>
Commit-Queue: Henry Sun <henrysun@google.com>
-rw-r--r-- | board/beadrix/board.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/board/beadrix/board.c b/board/beadrix/board.c index 4057db2c8f..4312141fe7 100644 --- a/board/beadrix/board.c +++ b/board/beadrix/board.c @@ -560,3 +560,30 @@ __override void lid_angle_peripheral_enable(int enable) keyboard_scan_enable(0, KB_SCAN_DISABLE_LID_ANGLE); } } + +static const struct ec_response_keybd_config keybd1 = { + .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 */ + }, + /* No function keys, no numeric keypad and no screenlock key */ +}; + +__override const struct ec_response_keybd_config +*board_vivaldi_keybd_config(void) +{ + /* + * Future boards should use fw_config if needed. + */ + + return &keybd1; +} |