Duck: set up vivaldi keyboard layout
This CL implements vivaldi function row config for duck keyboard.
BRANCH=trogdor
TEST=make sure that all top row keys work correctly.
@@ -373,6 +373,23 @@ static const struct ec_response_keybd_config bland_kb = {
.capabilities = KEYBD_CAP_SCRNLOCK_KEY,
};
+static const struct ec_response_keybd_config duck_kb = {
+ .num_top_row_keys = 10,
+ .action_keys = {
+ TK_BACK,
+ TK_FORWARD,
+ TK_REFRESH,
+ TK_FULLSCREEN,
+ TK_OVERVIEW,
+ TK_BRIGHTNESS_DOWN,
+ TK_BRIGHTNESS_UP,
+ TK_VOL_MUTE,
+ TK_VOL_DOWN,
+ TK_VOL_UP,
+ },
+ .capabilities = KEYBD_CAP_SCRNLOCK_KEY,
+};
+
__override
const struct ec_response_keybd_config *board_vivaldi_keybd_config(void)
{
@@ -380,6 +397,8 @@ const struct ec_response_keybd_config *board_vivaldi_keybd_config(void)
return &zed_kb;
if (IS_ENABLED(BOARD_BLAND) || IS_ENABLED(BOARD_EEL))
return &bland_kb;
+ if (IS_ENABLED(BOARD_DUCK))
+ return &duck_kb;
return NULL;
}
