From: stroese Date: Thu, 16 Dec 2004 17:42:39 +0000 (+0000) Subject: memory commands "mdc" and "mwc" added for cyclic read/write X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4aaf29b2f53386b267d8f59891b822ea65c48786;p=project%2Fbcm63xx%2Fu-boot.git memory commands "mdc" and "mwc" added for cyclic read/write --- diff --git a/common/cmd_mem.c b/common/cmd_mem.c index b95421ad5d..bafb1d6792 100644 --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -253,6 +253,66 @@ int do_mem_mw ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) return 0; } +#ifdef CONFIG_MX_CYCLIC +int do_mem_mdc ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) +{ + int i; + ulong count; + + if (argc < 4) { + printf ("Usage:\n%s\n", cmdtp->usage); + return 1; + } + + count = simple_strtoul(argv[3], NULL, 10); + + for (;;) { + do_mem_md (NULL, 0, 3, argv); + + /* delay for ms... */ + for (i=0; iusage); + return 1; + } + + count = simple_strtoul(argv[3], NULL, 10); + + for (;;) { + do_mem_mw (NULL, 0, 3, argv); + + /* delay for ms... */ + for (i=0; i