summaryrefslogtreecommitdiff
path: root/common/memory_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/memory_commands.c')
-rw-r--r--common/memory_commands.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/memory_commands.c b/common/memory_commands.c
index 3cf7974e5e..f44640d5e3 100644
--- a/common/memory_commands.c
+++ b/common/memory_commands.c
@@ -111,6 +111,7 @@ DECLARE_CONSOLE_COMMAND(md, command_mem_dump,
"dump memory values, optionally specifying the format");
#endif /* CONFIG_CMD_MD */
+#ifdef CONFIG_CMD_RW
static int command_read_word(int argc, char **argv)
{
volatile uint32_t *address;
@@ -191,3 +192,4 @@ DECLARE_CONSOLE_COMMAND
(rw, command_read_word,
"[.b|.h] addr [value]",
"Read or write a word in memory optionally specifying the size");
+#endif /* CONFIG_CMD_RW */