summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongBeum.Ha <ybha@samsung.corp-partner.google.com>2021-01-11 14:56:59 +0900
committerCommit Bot <commit-bot@chromium.org>2021-01-12 03:31:17 +0000
commitfab5311de6366c28acf7f86ff0c52c764cacc060 (patch)
tree4edc4654c53b3d0368593936652c4039dfa3817e
parent8a167f4e7c2d5bf1d3087a19416888098154c09f (diff)
downloadchrome-ec-stabilize-rust-13720.B-main.tar.gz
sasuke : Initialize the vivaldi keyboardstabilize-rust-13720.B-main
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 <ybha@samsung.corp-partner.google.com> Change-Id: Ie797690bd800767a3f507f2fbf4554495f4cb3e0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2620724 Reviewed-by: Henry Sun <henrysun@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Henry Sun <henrysun@google.com>
-rw-r--r--board/sasuke/board.c27
1 files changed, 27 insertions, 0 deletions
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;
+}