diff options
-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 |