summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-05-05 10:48:24 -0500
committerCommit Bot <commit-bot@chromium.org>2021-05-07 16:17:26 +0000
commit4892ae46c3e13805d1bd92dcb8a66be91a3b6b29 (patch)
treed75efe0368a3116e1a23f293c7b31729501d96ee
parent5990b8d032cdf51e0d67b63c7d9ef0df2e14145d (diff)
downloadchrome-ec-4892ae46c3e13805d1bd92dcb8a66be91a3b6b29.tar.gz
add CONFIG_CMD_PINMUX
Add CONFIG_CMD_PINMUX to control building the pinmux command. BUG=b:186663661 TEST=flash usage doesn't change with make -j BOARD=cr50 Change-Id: I17dba6f988388c39c58aebd11ee202ae0e7d5d9f Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2875472 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> Reviewed-by: Namyoon Woo <namyoon@chromium.org>
-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