galp6: Fix TCP0 power

galp6 uses `PD_EN` instead of `VA_EC_EN` for enabling power to TCP0.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2022-08-02 14:58:22 -06:00
committed by Tim Crawford
parent cd86c1e7d7
commit a6a6c5fba4

View File

@ -72,8 +72,8 @@ void gpio_init(void) {
GPDRD = BIT(5) | BIT(4); GPDRD = BIT(5) | BIT(4);
// USB_PWR_EN // USB_PWR_EN
GPDRE = BIT(3); GPDRE = BIT(3);
// H_PECI // H_PECI, PD_EN
GPDRF = BIT(6); GPDRF = BIT(6) | BIT(3);
// H_PROCHOT_EC // H_PROCHOT_EC
GPDRG = BIT(6); GPDRG = BIT(6);
GPDRH = 0; GPDRH = 0;
@ -156,7 +156,7 @@ void gpio_init(void) {
// USB_PWR_EN# (Actually active high) // USB_PWR_EN# (Actually active high)
GPCRE3 = GPIO_OUT; GPCRE3 = GPIO_OUT;
// DD_ON // DD_ON
GPCRE4 = GPIO_OUT; GPCRE4 = GPIO_OUT | GPIO_DOWN;
// EC_RSMRST# // EC_RSMRST#
GPCRE5 = GPIO_OUT; GPCRE5 = GPIO_OUT;
// JACK_IN#_EC // JACK_IN#_EC
@ -166,7 +166,7 @@ void gpio_init(void) {
// 80CLK // 80CLK
GPCRF0 = GPIO_IN; GPCRF0 = GPIO_IN;
// USB_CHARGE_EN // USB_CHARGE_EN
GPCRF1 = GPIO_OUT; GPCRF1 = GPIO_OUT | GPIO_UP;
// 3IN1 // 3IN1
GPCRF2 = GPIO_IN | GPIO_UP; GPCRF2 = GPIO_IN | GPIO_UP;
// PD_EN // PD_EN