diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-05-05 10:43:47 -0500 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-07 16:17:18 +0000 |
commit | 386f987a2ab9703b0fdd3b1e56e595f3ef395727 (patch) | |
tree | e17935d20758502cd6e5ed433aea29f6fdab9808 | |
parent | 7189f6992f5ca7ffd22775e8f73bb1e1cde24bbf (diff) | |
download | chrome-ec-386f987a2ab9703b0fdd3b1e56e595f3ef395727.tar.gz |
add CONFIG_CMD_ECRST
Add CONFIG_CMD_ECRST to control building the ecrst command.
BUG=b:186663661
TEST=flash usage doesn't change with make -j BOARD=cr50
Change-Id: Ia3b7a0284c594d03257fa669bff0ab8bec155125
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2875468
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Reviewed-by: Namyoon Woo <namyoon@chromium.org>
-rw-r--r-- | board/cr50/board.c | 2 | ||||
-rw-r--r-- | include/config.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c index 047613969a..399d28786d 100644 --- a/board/cr50/board.c +++ b/board/cr50/board.c @@ -1206,6 +1206,7 @@ int is_ec_rst_asserted(void) return GREAD(RBOX, ASSERT_EC_RST); } +#ifdef CONFIG_CMD_ECRST /** * Console command to toggle EC reset */ @@ -1240,6 +1241,7 @@ static int command_ec_rst(int argc, char **argv) DECLARE_SAFE_CONSOLE_COMMAND(ecrst, command_ec_rst, "[cl | pulse | <BOOLEAN>]", "Assert/deassert EC_RST_L to reset the EC (and AP)"); +#endif /* CONFIG_CMD_ECRST */ /* * This function duplicates some of the functionality in chip/g/gpio.c in order diff --git a/include/config.h b/include/config.h index d37fd3ea41..7395dbf306 100644 --- a/include/config.h +++ b/include/config.h @@ -1106,6 +1106,7 @@ #define CONFIG_CMD_CRASH #define CONFIG_CMD_DEVICE_EVENT #undef CONFIG_CMD_DLOG +#define CONFIG_CMD_ECRST #undef CONFIG_CMD_ECTEMP #define CONFIG_CMD_FASTCHARGE #undef CONFIG_CMD_FLASH |