aboutsummaryrefslogtreecommitdiffstats
path: root/common/cmd_flash.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-07-01 21:06:45 +0000
committerwdenk <wdenk>2003-07-01 21:06:45 +0000
commit0d4983930a3559be92452761cfa268ee9d0f2773 (patch)
treecfb77c1274a959cde007a7ac4e18b4b0d67bd253 /common/cmd_flash.c
parentb37c7e5e5c3c80c68f49a31c4308b159bb5bda1a (diff)
downloadu-boot-midas-0d4983930a3559be92452761cfa268ee9d0f2773.tar.gz
u-boot-midas-0d4983930a3559be92452761cfa268ee9d0f2773.tar.bz2
u-boot-midas-0d4983930a3559be92452761cfa268ee9d0f2773.zip
Patch by Kenneth Johansson, 30 Jun 2003:
get rid of MK_CMD_ENTRY macro; update doc/README.command
Diffstat (limited to 'common/cmd_flash.c')
-rw-r--r--common/cmd_flash.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/cmd_flash.c b/common/cmd_flash.c
index 6914f59d5b..811b89b004 100644
--- a/common/cmd_flash.c
+++ b/common/cmd_flash.c
@@ -440,15 +440,15 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
/**************************************************/
-cmd_tbl_t U_BOOT_CMD(FLINFO) = MK_CMD_ENTRY(
- "flinfo", 2, 1, do_flinfo,
+U_BOOT_CMD(
+ flinfo, 2, 1, do_flinfo,
"flinfo - print FLASH memory information\n",
"\n - print information for all FLASH memory banks\n"
"flinfo N\n - print information for FLASH memory bank # N\n"
);
-cmd_tbl_t U_BOOT_CMD(ERASE) = MK_CMD_ENTRY(
- "erase", 3, 1, do_flerase,
+U_BOOT_CMD(
+ erase, 3, 1, do_flerase,
"erase - erase FLASH memory\n",
"start end\n"
" - erase FLASH from addr 'start' to addr 'end'\n"
@@ -457,8 +457,8 @@ cmd_tbl_t U_BOOT_CMD(ERASE) = MK_CMD_ENTRY(
"erase all\n - erase all FLASH banks\n"
);
-cmd_tbl_t U_BOOT_CMD(PROTECT) = MK_CMD_ENTRY(
- "protect", 4, 1, do_protect,
+U_BOOT_CMD(
+ protect, 4, 1, do_protect,
"protect - enable or disable FLASH write protection\n",
"on start end\n"
" - protect FLASH from addr 'start' to addr 'end'\n"