Skip to content

Commit

Permalink
addw4: Fix USB
Browse files Browse the repository at this point in the history
  • Loading branch information
crawfxrd committed Feb 13, 2024
1 parent 1be392e commit 076fd32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/board/system76/addw4/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ void gpio_init(void) {
GPDRC = 0;
// VGA_HEATSINK_SW
GPDRD = BIT(3);
GPDRE = 0;
// USB_PWR_EN#
GPDRE = BIT(3);
GPDRF = 0;
// H_PROCHOT_EC, BL_PWM_EN_EC
GPDRG = BIT(6) | BIT(0);
Expand Down Expand Up @@ -148,7 +149,7 @@ void gpio_init(void) {
GPCRE1 = GPIO_OUT | GPIO_UP;
// RGBKB-DET#
GPCRE2 = GPIO_IN | GPIO_UP;
// USB_PWR_EN#
// USB_PWR_EN# (XXX: Active high, despite pin name)
GPCRE3 = GPIO_OUT;
// DD_ON
GPCRE4 = GPIO_OUT | GPIO_DOWN;
Expand Down

0 comments on commit 076fd32

Please sign in to comment.