summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/gru/mainboard.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/google/gru/mainboard.c b/src/mainboard/google/gru/mainboard.c
index 74c83bcded..099a3d9dcf 100644
--- a/src/mainboard/google/gru/mainboard.c
+++ b/src/mainboard/google/gru/mainboard.c
@@ -33,6 +33,15 @@
#include "board.h"
/*
+ * We have to drive the stronger pull-up within 1 second of powering up the
+ * touchpad to prevent its firmware from falling into recovery.
+ */
+static void configure_touchpad(void)
+{
+ gpio_output(GPIO(3, B, 4), 1); /* TP's I2C pull-up rail */
+}
+
+/*
* Wifi's PDN/RST line is pulled down by its (unpowered) voltage rails, but
* this reset pin is pulled up by default. Let's drive it low as early as we
* can.
@@ -313,6 +322,7 @@ static void setup_usb(int port)
static void mainboard_init(device_t dev)
{
deassert_wifi_power();
+ configure_touchpad();
configure_sdmmc();
configure_emmc();
configure_codec();