summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-05-27 11:20:40 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-05-28 12:32:58 +0200
commitab194d11c19d06d4986d032e60b0616c958dbcc3 (patch)
tree98889867b8c3ef69c1231c39ffe34fb8c3628131 /commands
parent97f50982019682af656c4895b6b29154e16e841e (diff)
downloadbarebox-ab194d11c19d06d4986d032e60b0616c958dbcc3.tar.gz
barebox-ab194d11c19d06d4986d032e60b0616c958dbcc3.tar.xz
memset command: Add 64bit support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/memset.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/memset.c b/commands/memset.c
index bb5f46de7..fc5b659b9 100644
--- a/commands/memset.c
+++ b/commands/memset.c
@@ -44,7 +44,7 @@ static int do_memset(int argc, char *argv[])
int ret = 1;
char *file = "/dev/mem";
- if (mem_parse_options(argc, argv, "bwld:", &mode, NULL, &file,
+ if (mem_parse_options(argc, argv, "bwlqd:", &mode, NULL, &file,
NULL) < 0)
return 1;
@@ -92,6 +92,7 @@ BAREBOX_CMD_HELP_TEXT("Options:")
BAREBOX_CMD_HELP_OPT ("-b", "byte access")
BAREBOX_CMD_HELP_OPT ("-w", "word access (16 bit)")
BAREBOX_CMD_HELP_OPT ("-l", "long access (32 bit)")
+BAREBOX_CMD_HELP_OPT ("-q", "quad access (64 bit)")
BAREBOX_CMD_HELP_OPT ("-d FILE", "write file (default /dev/mem)")
BAREBOX_CMD_HELP_END