diff options
-rw-r--r-- | board/falco/board.c | 2 | ||||
-rw-r--r-- | board/falco/board.h | 3 | ||||
-rw-r--r-- | chip/lm4/switch.c | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/board/falco/board.c b/board/falco/board.c index ba0bfffa16..40b983ce2f 100644 --- a/board/falco/board.c +++ b/board/falco/board.c @@ -59,7 +59,7 @@ const struct gpio_info gpio_list[GPIO_COUNT] = { x86_power_interrupt}, {"RECOVERY_L", LM4_GPIO_A, (1<<5), GPIO_PULL_UP|GPIO_INT_BOTH, switch_interrupt}, - {"WP", LM4_GPIO_A, (1<<4), GPIO_INT_BOTH, + {"WP_L", LM4_GPIO_A, (1<<4), GPIO_INT_BOTH, switch_interrupt}, /* Other inputs */ diff --git a/board/falco/board.h b/board/falco/board.h index 213b965b7e..6490568dbf 100644 --- a/board/falco/board.h +++ b/board/falco/board.h @@ -34,7 +34,6 @@ #define CONFIG_PWM_FAN #define CONFIG_TEMP_SENSOR #define CONFIG_USB_PORT_POWER_DUMB -#define CONFIG_WP_ACTIVE_HIGH #ifndef __ASSEMBLER__ @@ -83,7 +82,7 @@ enum gpio_signal { GPIO_VCORE_PGOOD, /* Power good on core VR */ GPIO_PCH_EDP_VDD_EN, /* PCH wants EDP enabled */ GPIO_RECOVERY_L, /* Recovery signal from servo */ - GPIO_WP, /* Write protect input */ + GPIO_WP_L, /* Write protect input */ /* Other inputs */ GPIO_FAN_ALERT_L, /* From thermal sensor */ diff --git a/chip/lm4/switch.c b/chip/lm4/switch.c index 0d20f9cd25..c4f1526275 100644 --- a/chip/lm4/switch.c +++ b/chip/lm4/switch.c @@ -416,7 +416,11 @@ static void switch_init(void) /* Enable interrupts, now that we've initialized */ gpio_enable_interrupt(GPIO_POWER_BUTTON_L); gpio_enable_interrupt(GPIO_RECOVERY_L); +#ifdef CONFIG_WP_ACTIVE_HIGH gpio_enable_interrupt(GPIO_WP); +#else + gpio_enable_interrupt(GPIO_WP_L); +#endif } DECLARE_HOOK(HOOK_INIT, switch_init, HOOK_PRIO_DEFAULT); |