Skip to content

Commit

Permalink
Remove GPH7 on IT8587E
Browse files Browse the repository at this point in the history
On IT8587E, pin 3 is VBAT and not a GPIO pin.

Signed-off-by: Tim Crawford <[email protected]>
  • Loading branch information
crawfxrd committed Jul 30, 2024
1 parent 716efd4 commit 51d35cb
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/board/system76/addw1/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ void gpio_init(void) {
GPCRH5 = GPIO_OUT | GPIO_UP;
// SUSB#_PCH
GPCRH6 = GPIO_IN;
// TODO
GPCRH7 = GPIO_IN;
// BAT_DET
GPCRI0 = GPIO_ALT;
// BAT_VOLT
Expand Down
2 changes: 0 additions & 2 deletions src/board/system76/darp5/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ void gpio_init(void) {
GPCRH5 = GPIO_OUT;
// SUSB#_PCH
GPCRH6 = GPIO_IN;
// Unknown
GPCRH7 = GPIO_IN;
// BAT_DET
GPCRI0 = GPIO_ALT;
// BAT_VOLT
Expand Down
2 changes: 0 additions & 2 deletions src/board/system76/galp3-c/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ void gpio_init(void) {
GPCRH5 = GPIO_OUT;
// SUSB#_PCH
GPCRH6 = GPIO_IN;
// Unknown
GPCRH7 = GPIO_IN;
// BAT_DET
GPCRI0 = GPIO_ALT;
// BAT_VOLT
Expand Down
2 changes: 0 additions & 2 deletions src/board/system76/oryp5/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ void gpio_init(void) {
GPCRH5 = GPIO_IN | GPIO_UP;
// SUSB#_PCH
GPCRH6 = GPIO_IN;
// Unknown
GPCRH7 = GPIO_IN;

// BAT_DET
GPCRI0 = GPIO_ALT;
Expand Down
2 changes: 2 additions & 0 deletions src/ec/ite/include/ec/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ volatile uint8_t __xdata __at(0x164B) GPCRH3;
volatile uint8_t __xdata __at(0x164C) GPCRH4;
volatile uint8_t __xdata __at(0x164D) GPCRH5;
volatile uint8_t __xdata __at(0x164E) GPCRH6;
#if CONFIG_EC_ITE_IT5570E || CONFIG_EC_ITE_IT5571E
volatile uint8_t __xdata __at(0x164F) GPCRH7;
#endif

volatile uint8_t __xdata __at(0x1650) GPCRI0;
volatile uint8_t __xdata __at(0x1651) GPCRI1;
Expand Down

0 comments on commit 51d35cb

Please sign in to comment.