summaryrefslogtreecommitdiff
path: root/board/volmar
diff options
context:
space:
mode:
Diffstat (limited to 'board/volmar')
-rw-r--r--board/volmar/board.h5
-rw-r--r--board/volmar/keyboard.c24
2 files changed, 23 insertions, 6 deletions
diff --git a/board/volmar/board.h b/board/volmar/board.h
index b7ed44e876..8da2aa58c4 100644
--- a/board/volmar/board.h
+++ b/board/volmar/board.h
@@ -10,11 +10,6 @@
#include "compile_time_macros.h"
-/*
- * Early Volmar boards are not set up for vivaldi
- */
-#undef CONFIG_KEYBOARD_VIVALDI
-
/* Baseboard features */
#include "baseboard.h"
diff --git a/board/volmar/keyboard.c b/board/volmar/keyboard.c
index 133d574dfa..598e187d00 100644
--- a/board/volmar/keyboard.c
+++ b/board/volmar/keyboard.c
@@ -4,7 +4,7 @@
*/
#include "common.h"
-
+#include "ec_commands.h"
#include "keyboard_scan.h"
#include "timer.h"
@@ -23,3 +23,25 @@ __override struct keyboard_scan_config keyscan_config = {
0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xca /* full set */
},
};
+
+static const struct ec_response_keybd_config volmar_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 &volmar_kb;
+}