summaryrefslogtreecommitdiff
path: root/board/fizz/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/fizz/board.c')
-rw-r--r--board/fizz/board.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/board/fizz/board.c b/board/fizz/board.c
index 87221606ca..157b452e62 100644
--- a/board/fizz/board.c
+++ b/board/fizz/board.c
@@ -464,3 +464,18 @@ int board_is_consuming_full_charge(void)
return chg_perc > 2 && chg_perc < 95;
}
+
+const struct button_config buttons[CONFIG_BUTTON_COUNT] = {
+ [BUTTON_RECOVERY] = {
+ .name = "Recovery",
+ .type = KEYBOARD_BUTTON_RECOVERY,
+ .gpio = GPIO_RECOVERY_L,
+ .debounce_us = 30 * MSEC,
+ .flags = 0,
+ },
+};
+
+const struct button_config *recovery_buttons[] = {
+ &buttons[BUTTON_RECOVERY],
+};
+const int recovery_buttons_count = ARRAY_SIZE(recovery_buttons);