summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/g/gpio.c2
-rw-r--r--include/config.h1
2 files changed, 3 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",
diff --git a/include/config.h b/include/config.h
index d860ec4264..d723842dfb 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1148,6 +1148,7 @@
#undef CONFIG_CMD_PD_DEV_DUMP_INFO
#undef CONFIG_CMD_PD_FLASH
#define CONFIG_CMD_PECI
+#define CONFIG_CMD_PINMUX
#undef CONFIG_CMD_PLL
#undef CONFIG_CMD_PMU
#define CONFIG_CMD_POWERINDEBUG