From fab5311de6366c28acf7f86ff0c52c764cacc060 Mon Sep 17 00:00:00 2001 From: "YongBeum.Ha" Date: Mon, 11 Jan 2021 14:56:59 +0900 Subject: sasuke : Initialize the vivaldi keyboard Initialize vivaldi keyboard. BUG=b:176360055 TEST=Test the top row Test the Alt + VolUp + r combo Test the Esc + Refresh + Power combo Test all the other keys also (this is important) for any regression. BRANCH=master Signed-off-by: YongBeum.Ha Change-Id: Ie797690bd800767a3f507f2fbf4554495f4cb3e0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2620724 Reviewed-by: Henry Sun Reviewed-by: Diana Z Commit-Queue: Henry Sun --- board/sasuke/board.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/board/sasuke/board.c b/board/sasuke/board.c index 2a87901998..e1dcf1054f 100644 --- a/board/sasuke/board.c +++ b/board/sasuke/board.c @@ -25,6 +25,7 @@ #include "gpio.h" #include "hooks.h" #include "i2c.h" +#include "keyboard_8042.h" #include "keyboard_scan.h" #include "lid_switch.h" #include "power.h" @@ -520,3 +521,29 @@ uint16_t tcpc_get_alert_status(void) return status; } + +static const struct ec_response_keybd_config keybd1 = { + .num_top_row_keys = 10, + .action_keys = { + TK_BACK, /* T1 */ + TK_FORWARD, /* T2 */ + TK_REFRESH, /* T3 */ + TK_FULLSCREEN, /* T4 */ + TK_OVERVIEW, /* 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; +} -- cgit v1.2.1