summaryrefslogtreecommitdiff
path: root/chip/ish/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/ish/gpio.c')
-rw-r--r--chip/ish/gpio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/chip/ish/gpio.c b/chip/ish/gpio.c
index 3d374f3cb8..6c7a27e1e7 100644
--- a/chip/ish/gpio.c
+++ b/chip/ish/gpio.c
@@ -21,7 +21,7 @@ test_mockable int gpio_get_level(enum gpio_signal signal)
const struct gpio_info *g = gpio_list + signal;
/* Unimplemented GPIOs shouldn't do anything */
- if (g->port == DUMMY_GPIO_BANK)
+ if (g->port == UNIMPLEMENTED_GPIO_BANK)
return 0;
return !!(ISH_GPIO_GPLR & g->mask);
@@ -32,7 +32,7 @@ void gpio_set_level(enum gpio_signal signal, int value)
const struct gpio_info *g = gpio_list + signal;
/* Unimplemented GPIOs shouldn't do anything */
- if (g->port == DUMMY_GPIO_BANK)
+ if (g->port == UNIMPLEMENTED_GPIO_BANK)
return;
if (value)
@@ -44,7 +44,7 @@ void gpio_set_level(enum gpio_signal signal, int value)
void gpio_set_flags_by_mask(uint32_t port, uint32_t mask, uint32_t flags)
{
/* Unimplemented GPIOs shouldn't do anything */
- if (port == DUMMY_GPIO_BANK)
+ if (port == UNIMPLEMENTED_GPIO_BANK)
return;
/* ISH does not support level-trigger interrupts; only edge. */
@@ -92,7 +92,7 @@ int gpio_enable_interrupt(enum gpio_signal signal)
const struct gpio_info *g = gpio_list + signal;
/* Unimplemented GPIOs shouldn't do anything */
- if (g->port == DUMMY_GPIO_BANK)
+ if (g->port == UNIMPLEMENTED_GPIO_BANK)
return EC_SUCCESS;
ISH_GPIO_GIMR |= g->mask;