diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-05-05 10:48:24 -0500 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-07 16:17:26 +0000 |
commit | 4892ae46c3e13805d1bd92dcb8a66be91a3b6b29 (patch) | |
tree | d75efe0368a3116e1a23f293c7b31729501d96ee /chip/g | |
parent | 5990b8d032cdf51e0d67b63c7d9ef0df2e14145d (diff) | |
download | chrome-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>
Diffstat (limited to 'chip/g')
-rw-r--r-- | chip/g/gpio.c | 2 |
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", |