summaryrefslogtreecommitdiff
path: root/common/cmd_mfsl.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2007-09-16 20:32:10 +0200
committerMichal Simek <monstr@monstr.eu>2007-09-16 20:32:10 +0200
commit7201cfc4a79c0f55f5ebee73c5a626a49cb53f73 (patch)
tree2c54f0a438a5ca915d88f8badab217b8ae993f11 /common/cmd_mfsl.c
parentfd64975a882ca654f3139385791cdd237d6acc53 (diff)
parent991b089d1ce5ad945725e3657a8f106dfa02a38e (diff)
downloadu-boot-imx-7201cfc4a79c0f55f5ebee73c5a626a49cb53f73.zip
u-boot-imx-7201cfc4a79c0f55f5ebee73c5a626a49cb53f73.tar.gz
u-boot-imx-7201cfc4a79c0f55f5ebee73c5a626a49cb53f73.tar.bz2
Merge branch 'master' of /home/uboot/070912/u-boot-microblaze/
Diffstat (limited to 'common/cmd_mfsl.c')
-rw-r--r--common/cmd_mfsl.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/common/cmd_mfsl.c b/common/cmd_mfsl.c
index 93cc873..8d4c1a3 100644
--- a/common/cmd_mfsl.c
+++ b/common/cmd_mfsl.c
@@ -357,7 +357,7 @@ int do_rspr (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
reg = (unsigned int)simple_strtoul (argv[1], NULL, 16);
val = (unsigned int)simple_strtoul (argv[2], NULL, 16);
- if (argc < 2) {
+ if (argc < 1) {
printf ("Usage:\n%s\n", cmdtp->usage);
return 1;
}
@@ -382,7 +382,6 @@ int do_rspr (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
puts ("ESR");
break;
default:
- puts ("Unsupported register\n");
return 1;
}
printf (": 0x%08lx\n", val);
@@ -409,10 +408,10 @@ U_BOOT_CMD (fwr, 4, 1, do_fwr,
" 3 - blocking control write\n");
U_BOOT_CMD (rspr, 3, 1, do_rspr,
- "rspr - read/write special purpose register\n",
+ "rmsr - read/write special purpose register\n",
"- reg_num [write value] read/write special purpose register\n"
- " 1 - MSR - Machine status register\n"
- " 3 - EAR - Exception address register\n"
- " 5 - ESR - Exception status register\n");
+ " 0 - MSR - Machine status register\n"
+ " 1 - EAR - Exception address register\n"
+ " 2 - ESR - Exception status register\n");
#endif