diff options
author | Nick Sanders <nsanders@chromium.org> | 2016-04-13 22:15:02 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-04-27 14:04:07 -0700 |
commit | 4e52ae607c569e9d240e3ce3363659c840f1aa87 (patch) | |
tree | 6824faac11c4b35ebce8599f41e39c28351eb816 /include/config.h | |
parent | d18cb0e81f2ba3c71349d17c7d84e7e10066711e (diff) | |
download | chrome-ec-4e52ae607c569e9d240e3ce3363659c840f1aa87.tar.gz |
servo_micro: add gpio mode get and set
GPIO console commands currently only show input voltage level,
and can only set level on predefined outputs.
This change allows GPIOs to be cycled between output, input,
and alternate function, as well as displaying the mode and
asserted level (if any) in gpioget.
This change creates CONFIG_CMD_GPIO_EXTENDED
as the internal gpio interface needs to be changed to support
this, and I can't test the other architectures. It may be
worthwhile to add this for all, or not.
This change is also necessary also for servo micro JTAG and PD
UART support, as several pins are tied together on the flex
and stm32 outputs need to be variously active or in high-z
depending on mode.
BUG=chromium:571477
TEST=gpioget <0|1|IN|A|ALT>; gpioget;
BRANCH=None
Change-Id: Iba32992db6244ee1e654db840d1c9c11dd2a0993
Signed-off-by: Nick Sanders <nsanders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/338885
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 63096c843c..9db99d5ddc 100644 --- a/include/config.h +++ b/include/config.h @@ -533,6 +533,7 @@ #undef CONFIG_CMD_FLASH #undef CONFIG_CMD_FORCETIME #undef CONFIG_CMD_GSV +#undef CONFIG_CMD_GPIO_EXTENDED #define CONFIG_CMD_HASH #define CONFIG_CMD_HCDEBUG #undef CONFIG_CMD_HOSTCMD |