summaryrefslogtreecommitdiff
path: root/chip/g/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/g/gpio.c')
-rw-r--r--chip/g/gpio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/g/gpio.c b/chip/g/gpio.c
index a113419874..1e011f7172 100644
--- a/chip/g/gpio.c
+++ b/chip/g/gpio.c
@@ -441,6 +441,7 @@ void _gpio1_interrupt(void)
DECLARE_IRQ(GC_IRQNUM_GPIO0_GPIOCOMBINT, _gpio0_interrupt, 1);
DECLARE_IRQ(GC_IRQNUM_GPIO1_GPIOCOMBINT, _gpio1_interrupt, 1);
+#ifdef CONFIG_CMD_PINMUX
/*
* The uart, i2c, and spi suffix arrays must match the order of the pinmux
* select registers in chip/g/hw_regdefs.h. If the order is incorrect, the
@@ -574,6 +575,7 @@ static int command_pinmux(int argc, char **argv)
DECLARE_SAFE_CONSOLE_COMMAND(pinmux, command_pinmux,
"",
"Display pinmux info");
+#endif /* CONFIG_CMD_PINMUX */
static const char * const int_str[] = {
"LOW", "FALLING", "HIGH", "RISING",