diff --git a/board/pit/board.c b/board/pit/board.c index 7bd796f207..8e3608b5c6 100644 --- a/board/pit/board.c +++ b/board/pit/board.c @@ -5,6 +5,7 @@ /* Pit board-specific configuration */ #include "common.h" +#include "extpower.h" #include "gaia_power.h" #include "gpio.h" #include "i2c.h" @@ -30,6 +31,7 @@ const struct gpio_info gpio_list[GPIO_COUNT] = { {"SUSPEND_L", GPIO_C, (1<<7), GPIO_INT_BOTH, gaia_suspend_event}, {"SPI1_NSS", GPIO_A, (1<<4), GPIO_INT_BOTH | GPIO_PULL_UP, spi_event}, + {"AC_PRESENT", GPIO_A, (1<<0), GPIO_INT_BOTH, extpower_interrupt}, {"KB_IN00", GPIO_C, (1<<8), GPIO_KB_INPUT, keyboard_raw_gpio_interrupt}, {"KB_IN01", GPIO_C, (1<<9), GPIO_KB_INPUT, @@ -47,7 +49,6 @@ const struct gpio_info gpio_list[GPIO_COUNT] = { {"KB_IN07", GPIO_D, (1<<2), GPIO_KB_INPUT, keyboard_raw_gpio_interrupt}, /* Other inputs */ - {"AC_PWRBTN_L", GPIO_A, (1<<0), GPIO_INT_BOTH, NULL}, {"WP_L", GPIO_B, (1<<4), GPIO_INPUT, NULL}, /* Outputs */ {"AP_RESET_L", GPIO_B, (1<<3), GPIO_HI_Z, NULL}, diff --git a/board/pit/board.h b/board/pit/board.h index 88a31f289d..ba6a4df593 100644 --- a/board/pit/board.h +++ b/board/pit/board.h @@ -30,7 +30,7 @@ #define CONFIG_CHIPSET_GAIA #endif #define CONFIG_CMD_PMU -#define CONFIG_EXTPOWER_SNOW +#define CONFIG_EXTPOWER_GPIO #define CONFIG_HOST_COMMAND_STATUS #define CONFIG_I2C #define CONFIG_KEYBOARD_PROTOCOL_MKBP @@ -86,6 +86,7 @@ enum gpio_signal { GPIO_LID_OPEN, GPIO_SUSPEND_L, GPIO_SPI1_NSS, + GPIO_AC_PRESENT, /* Keyboard inputs */ GPIO_KB_IN00, GPIO_KB_IN01, @@ -96,7 +97,6 @@ enum gpio_signal { GPIO_KB_IN06, GPIO_KB_IN07, /* Other inputs */ - GPIO_AC_PWRBTN_L, GPIO_WP_L, /* Outputs */ GPIO_AP_RESET_L,