summaryrefslogtreecommitdiff
path: root/board/gimble/keyboard.c
diff options
context:
space:
mode:
authorScott Chao <scott_chao@wistron.corp-partner.google.com>2021-08-02 07:58:05 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-03 01:32:59 +0000
commita2ea2294ddc2d121c6cd611baadb5b42ff3aed80 (patch)
tree633d887588c1bcfd0e7e9f2e7e08bee8ffa44666 /board/gimble/keyboard.c
parent010b3f3c7ad24ef18740121cacebb47a773e5a45 (diff)
downloadchrome-ec-a2ea2294ddc2d121c6cd611baadb5b42ff3aed80.tar.gz
gimble: add vivaldi keyboard support
- We have refresh key on T2. - Add T8 key for KBBL toggle. - Add T9 key for MICMUTE. - Add T10 for play pause key. BUG=b:194146863 BRANCH=none TEST=make -j BOARD=gimble Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I04207cb40c2697768a681355738862fe1b1e17c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3065245 Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'board/gimble/keyboard.c')
-rw-r--r--board/gimble/keyboard.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/board/gimble/keyboard.c b/board/gimble/keyboard.c
index a9f033130d..a2e7f12616 100644
--- a/board/gimble/keyboard.c
+++ b/board/gimble/keyboard.c
@@ -4,7 +4,7 @@
*/
#include "common.h"
-
+#include "ec_commands.h"
#include "keyboard_scan.h"
#include "timer.h"
@@ -23,3 +23,29 @@ __override struct keyboard_scan_config keyscan_config = {
0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xca /* full set */
},
};
+
+static const struct ec_response_keybd_config gimble_kb = {
+ .num_top_row_keys = 13,
+ .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_KBD_BKLIGHT_TOGGLE, /* T8 */
+ TK_MICMUTE, /* T9 */
+ TK_PLAY_PAUSE, /* T10 */
+ TK_VOL_MUTE, /* T11 */
+ TK_VOL_DOWN, /* T12 */
+ TK_VOL_UP, /* T13 */
+ },
+ .capabilities = KEYBD_CAP_SCRNLOCK_KEY,
+};
+
+__override const struct ec_response_keybd_config
+*board_vivaldi_keybd_config(void)
+{
+ return &gimble_kb;
+}