From a6a6c5fba4fb054531ca62d8243fc3178eb913b1 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Tue, 2 Aug 2022 14:58:22 -0600 Subject: [PATCH] galp6: Fix TCP0 power galp6 uses `PD_EN` instead of `VA_EC_EN` for enabling power to TCP0. Signed-off-by: Tim Crawford --- src/board/system76/galp6/gpio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/board/system76/galp6/gpio.c b/src/board/system76/galp6/gpio.c index c82bd6f..b303fb3 100644 --- a/src/board/system76/galp6/gpio.c +++ b/src/board/system76/galp6/gpio.c @@ -72,8 +72,8 @@ void gpio_init(void) { GPDRD = BIT(5) | BIT(4); // USB_PWR_EN GPDRE = BIT(3); - // H_PECI - GPDRF = BIT(6); + // H_PECI, PD_EN + GPDRF = BIT(6) | BIT(3); // H_PROCHOT_EC GPDRG = BIT(6); GPDRH = 0; @@ -156,7 +156,7 @@ void gpio_init(void) { // USB_PWR_EN# (Actually active high) GPCRE3 = GPIO_OUT; // DD_ON - GPCRE4 = GPIO_OUT; + GPCRE4 = GPIO_OUT | GPIO_DOWN; // EC_RSMRST# GPCRE5 = GPIO_OUT; // JACK_IN#_EC @@ -166,7 +166,7 @@ void gpio_init(void) { // 80CLK GPCRF0 = GPIO_IN; // USB_CHARGE_EN - GPCRF1 = GPIO_OUT; + GPCRF1 = GPIO_OUT | GPIO_UP; // 3IN1 GPCRF2 = GPIO_IN | GPIO_UP; // PD_EN