summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/cret/board.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/board/cret/board.c b/board/cret/board.c
index d0357278c3..117ad2fe22 100644
--- a/board/cret/board.c
+++ b/board/cret/board.c
@@ -26,6 +26,7 @@
#include "gpio.h"
#include "hooks.h"
#include "i2c.h"
+#include "keyboard_8042.h"
#include "keyboard_scan.h"
#include "lid_switch.h"
#include "motion_sense.h"
@@ -659,3 +660,29 @@ void lid_angle_peripheral_enable(int enable)
}
}
#endif
+
+/* Keyboard scan setting */
+static const struct ec_response_keybd_config cret_keybd = {
+ /* Default Chromeos keyboard config */
+ .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, has screenlock key */
+ .capabilities = KEYBD_CAP_SCRNLOCK_KEY,
+};
+
+__override const struct ec_response_keybd_config
+*board_vivaldi_keybd_config(void)
+{
+ return &cret_keybd;
+}