diff options
author | David Huang <david.huang@quanta.corp-partner.google.com> | 2021-01-19 15:18:33 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-26 08:20:14 +0000 |
commit | 6bd8ba0808b90407d72d0b487624edb7d1701f01 (patch) | |
tree | 8743c8b930e45608638ac7c5213b798c3abed57f /board/voema | |
parent | 0ba6f7f8c8a5699b9a20280fed63f057e387dbfc (diff) | |
download | chrome-ec-6bd8ba0808b90407d72d0b487624edb7d1701f01.tar.gz |
voema: Initialize the vivaldi keyboard.
Initialize the vivaldi keyboard.
BUG=b:177274193
BRANCH=main
TEST=manual
1. Scan all key.
2. Check action key function.
3. Check ALT + Volup + H.
4. Check ALT + Volup + R.
5. Check Refresh (F2) + powerbutton (EC reboot).
6. Check ESC + Refresh + powerbutton.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: Ib949e96910130971b41c3dd6017ac9b6f7e08ff8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2637155
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/voema')
-rw-r--r-- | board/voema/board.c | 23 | ||||
-rw-r--r-- | board/voema/board.h | 2 |
2 files changed, 25 insertions, 0 deletions
diff --git a/board/voema/board.c b/board/voema/board.c index 898732838d..f6dff264f6 100644 --- a/board/voema/board.c +++ b/board/voema/board.c @@ -60,6 +60,29 @@ struct keyboard_scan_config keyscan_config = { }, }; +static const struct ec_response_keybd_config voema_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 &voema_kb; +} + /******************************************************************************/ /* * FW_CONFIG defaults for Volteer if the CBI data is not initialized. diff --git a/board/voema/board.h b/board/voema/board.h index 2f08c2dde1..10728d8383 100644 --- a/board/voema/board.h +++ b/board/voema/board.h @@ -28,6 +28,8 @@ #define CONFIG_LED_ONOFF_STATES /* Keyboard features */ +#define CONFIG_KEYBOARD_VIVALDI +#define CONFIG_KEYBOARD_REFRESH_ROW3 /* Sensors */ /* BMA253 accelerometer in base */ |