summaryrefslogtreecommitdiff
path: root/board/hammer
diff options
context:
space:
mode:
Diffstat (limited to 'board/hammer')
-rw-r--r--board/hammer/board.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/board/hammer/board.c b/board/hammer/board.c
index be0d2f465a..f9ac182934 100644
--- a/board/hammer/board.c
+++ b/board/hammer/board.c
@@ -217,6 +217,22 @@ void board_usb_wake(void)
#endif
}
+/* Reset the touchpad, mainly used to recover it from malfunction. */
+void board_touchpad_reset(void)
+{
+#ifdef BOARD_WHISKERS
+ gpio_set_level(GPIO_EN_PP3300_TP, 0);
+ msleep(10);
+ gpio_set_level(GPIO_EN_PP3300_TP, 1);
+ msleep(10);
+#else
+ gpio_set_level(GPIO_EN_PP3300_TP_ODL, 1);
+ msleep(10);
+ gpio_set_level(GPIO_EN_PP3300_TP_ODL, 0);
+ msleep(10);
+#endif
+}
+
/*
* Get entropy based on Clock Recovery System, which is enabled on hammer to
* synchronize USB SOF with internal oscillator.