summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/new_nvmem.c2
-rw-r--r--include/config.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/common/new_nvmem.c b/common/new_nvmem.c
index d3bfcb40b4..1be4d4b4b2 100644
--- a/common/new_nvmem.c
+++ b/common/new_nvmem.c
@@ -3218,6 +3218,7 @@ test_export_static enum ec_error_list browse_flash_contents(int print)
return rv;
}
+#ifdef CONFIG_CMD_DUMP_NVMEM
static int command_dump_nvmem(int argc, char **argv)
{
int print = 1;
@@ -3235,3 +3236,4 @@ static int command_dump_nvmem(int argc, char **argv)
return 0;
}
DECLARE_SAFE_CONSOLE_COMMAND(dump_nvmem, command_dump_nvmem, "", "");
+#endif /* CONFIG_CMD_DUMP_NVMEM */
diff --git a/include/config.h b/include/config.h
index e5f4d34b05..d860ec4264 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_DUMP_NVMEM
#define CONFIG_CMD_ECRST
#undef CONFIG_CMD_ECTEMP
#define CONFIG_CMD_FASTCHARGE