Commit 0d498393 authored by wdenk's avatar wdenk

Patch by Kenneth Johansson, 30 Jun 2003:

get rid of MK_CMD_ENTRY macro; update doc/README.command
parent b37c7e5e
......@@ -2,6 +2,9 @@
Changes for U-Boot 0.4.2:
======================================================================
* Patch by Kenneth Johansson, 30 Jun 2003:
get rid of MK_CMD_ENTRY macro; update doc/README.command
* Patch by Seb James, 30 Jun 2003:
Improve documentation of I2C configuration in README
......
......@@ -121,8 +121,8 @@ int do_boota (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
return 0;
}
#if defined(CONFIG_AMIGAONEG3SE) && (CONFIG_COMMANDS & CFG_CMD_BSP)
cmd_tbl_t U_BOOT_CMD(BOOTA) = MK_CMD_ENTRY(
"boota", 3, 1, do_boota,
U_BOOT_CMD(
boota, 3, 1, do_boota,
"boota - boot an Amiga kernel\n",
"address disk"
);
......
......@@ -8,8 +8,8 @@ int do_menu( cmd_tbl_t *cmdtp, /*bd_t *bd,*/ int flag, int argc, char *argv[] )
}
#if defined(CONFIG_AMIGAONEG3SE) && (CONFIG_COMMANDS & CFG_CMD_BSP)
cmd_tbl_t U_BOOT_CMD(MENU) = MK_CMD_ENTRY(
"menu", 1, 1, do_menu,
U_BOOT_CMD(
menu, 1, 1, do_menu,
"menu - display BIOS setup menu\n",
""
);
......
......@@ -225,8 +225,8 @@ int do_pci9054 (cmd_tbl_t * cmdtp, int flag, int argc,
}
cmd_tbl_t U_BOOT_CMD (pci9054) = MK_CMD_ENTRY(
"pci9054", 3, 1, do_pci9054,
U_BOOT_CMD(
pci9054, 3, 1, do_pci9054,
"pci9054 - PLX PCI9054 EEPROM access\n",
"pci9054 info - print EEPROM values\n"
"pci9054 update - updates EEPROM with default values\n"
......
......@@ -198,20 +198,20 @@ do_zuma_init_mbox (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 0;
}
cmd_tbl_t U_BOOT_CMD(zuma_init_pbb) = MK_CMD_ENTRY(
"zinit", 1, 0, do_zuma_init_pbb,
U_BOOT_CMD(
zinit, 1, 0, do_zuma_init_pbb,
"zinit - init zuma pbb\n",
"\n"
" - init zuma pbb\n"
);
cmd_tbl_t U_BOOT_CMD(zuma_test_dma) = MK_CMD_ENTRY(
"zdtest", 3, 1, do_zuma_test_dma,
U_BOOT_CMD(
zdtest, 3, 1, do_zuma_test_dma,
"zdtest - run dma test\n",
"[cmd [count]]\n"
" - run dma cmd (w=0,v=1,cp=2,cmp=3,wi=4,vi=5), count bytes\n"
);
cmd_tbl_t U_BOOT_CMD(zuma_init_mbox) = MK_CMD_ENTRY(
"zminit", 1, 0, do_zuma_init_mbox,
U_BOOT_CMD(
zminit, 1, 0, do_zuma_init_mbox,
"zminit - init zuma mbox\n",
"\n"
" - init zuma mbox\n"
......
......@@ -275,8 +275,8 @@ do_fpga (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
printf ("Usage:\n%s\n", cmdtp->usage);
return 1;
}
cmd_tbl_t U_BOOT_CMD(fpga) = MK_CMD_ENTRY(
"fpga", 6, 1, do_fpga,
U_BOOT_CMD(
fpga, 6, 1, do_fpga,
"fpga - FPGA sub-system\n",
"load [type] addr size\n"
" - write the configuration data at memory address `addr',\n"
......@@ -334,8 +334,8 @@ do_eecl (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
return 0;
}
cmd_tbl_t U_BOOT_CMD(eec) = MK_CMD_ENTRY(
"eeclear", 1, 0, do_eecl,
U_BOOT_CMD(
eeclear, 1, 0, do_eecl,
"eeclear - Clear the eeprom on a Hymod board \n",
"[type]\n"
" - write zeroes into the EEPROM on the board of type `type'\n"
......
......@@ -851,8 +851,8 @@ int do_pic (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
printf ("Usage:\n%s\n", cmdtp->usage);
return 1;
}
cmd_tbl_t U_BOOT_CMD(pic) = MK_CMD_ENTRY(
"pic", 4, 1, do_pic,
U_BOOT_CMD(
pic, 4, 1, do_pic,
"pic - read and write PIC registers\n",
"read reg - read PIC register `reg'\n"
"pic write reg val - write value `val' to PIC register `reg'\n"
......@@ -910,8 +910,8 @@ int do_kbd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 0;
}
cmd_tbl_t U_BOOT_CMD(kdb) = MK_CMD_ENTRY(
"kbd", 1, 1, do_kbd,
U_BOOT_CMD(
kbd, 1, 1, do_kbd,
"kbd - read keyboard status\n",
NULL
);
......@@ -982,8 +982,8 @@ int do_lsb (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 1;
}
cmd_tbl_t U_BOOT_CMD(lsb) = MK_CMD_ENTRY(
"lsb", 2, 1, do_lsb,
U_BOOT_CMD(
lsb, 2, 1, do_lsb,
"lsb - check and set LSB switch\n",
"on - switch LSB on\n"
"lsb off - switch LSB off\n"
......
......@@ -53,8 +53,8 @@ int do_mip405(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
return (do_mplcommon(cmdtp, flag, argc, argv));
}
cmd_tbl_t U_BOOT_CMD(mip405) = MK_CMD_ENTRY(
"mip405", 6, 1, do_mip405,
U_BOOT_CMD(
mip405, 6, 1, do_mip405,
"mip405 - MIP405 specific Cmds\n",
"flash mem [SrcAddr] - updates U-Boot with image in memory\n"
"mip405 flash mps - updates U-Boot with image from MPS\n"
......
......@@ -58,8 +58,8 @@ int do_pip405(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return (do_mplcommon(cmdtp, flag, argc, argv));
}
cmd_tbl_t U_BOOT_CMD(pip405) = MK_CMD_ENTRY(
"pip405", 6, 1, do_pip405,
U_BOOT_CMD(
pip405, 6, 1, do_pip405,
"pip405 - PIP405 specific Cmds\n",
"flash mem [SrcAddr] - updates U-Boot with image in memory\n"
"pip405 flash floppy [SrcAddr] - updates U-Boot with image from floppy\n"
......
......@@ -233,8 +233,8 @@ int do_wd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 1;
}
cmd_tbl_t U_BOOT_CMD(wd) = MK_CMD_ENTRY(
"wd", 2, 1, do_wd,
U_BOOT_CMD(
wd, 2, 1, do_wd,
"wd - check and set watchdog\n",
"on - switch watchDog on\n"
"wd off - switch watchdog off\n"
......
......@@ -51,8 +51,8 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
set_led (number, function);
return 0;
}
cmd_tbl_t U_BOOT_CMD(led) = MK_CMD_ENTRY(
"led" , 3, 1, do_led,
U_BOOT_CMD(
led , 3, 1, do_led,
"led - set LED 0..11 on the PN62 board\n",
"i fun\n"
" - set 'i'th LED to function 'fun'\n"
......@@ -165,8 +165,8 @@ int do_loadpci (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return rcode;
}
cmd_tbl_t U_BOOT_CMD(loadpci) = MK_CMD_ENTRY(
"loadpci", 2, 1, do_loadpci,
U_BOOT_CMD(
loadpci, 2, 1, do_loadpci,
"loadpci - load binary file over PCI\n",
"[addr]\n"
" - load binary file over PCI to address 'addr'\n"
......
......@@ -443,8 +443,8 @@ int do_kbd (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
return 0;
}
cmd_tbl_t U_BOOT_CMD(kbd) = MK_CMD_ENTRY(
"kbd", 1, 1, do_kbd,
U_BOOT_CMD(
kbd, 1, 1, do_kbd,
"kbd - read keyboard status\n",
NULL
);
......@@ -291,8 +291,8 @@ int do_fpga (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 1;
}
cmd_tbl_t U_BOOT_CMD(fpga) = MK_CMD_ENTRY(
"fpga", 4, 1, do_fpga,
U_BOOT_CMD(
fpga, 4, 1, do_fpga,
"fpga - access FPGA(s)\n",
"fpga status [name] - print FPGA status\n"
"fpga reset [name] - reset FPGA\n"
......
......@@ -432,8 +432,8 @@ int do_puma (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
printf ("Usage:\n%s\n", cmdtp->usage);
return 1;
}
cmd_tbl_t U_BOOT_CMD(puma) = MK_CMD_ENTRY(
"puma", 4, 1, do_puma,
U_BOOT_CMD(
puma, 4, 1, do_puma,
"puma - access PUMA FPGA\n",
"status - print PUMA status\n"
"puma load addr len - load PUMA configuration data\n"
......
......@@ -298,8 +298,8 @@ int do_kbd (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
return 0;
}
cmd_tbl_t U_BOOT_CMD(kbd) = MK_CMD_ENTRY(
"kbd", 1, 1, do_kbd,
U_BOOT_CMD(
kbd, 1, 1, do_kbd,
"kbd - read keyboard status\n",
NULL
);
......
......@@ -56,8 +56,8 @@ int do_vpd (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
return 1;
}
cmd_tbl_t U_BOOT_CMD(vpd) = MK_CMD_ENTRY(
"vpd", 2, 1, do_vpd,
U_BOOT_CMD(
vpd, 2, 1, do_vpd,
"vpd - Read Vital Product Data\n",
"[dev_addr]\n"
" - Read VPD Data from default address, or device address 'dev_addr'.\n"
......
......@@ -171,8 +171,8 @@ do_autoscript (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
#if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
cmd_tbl_t U_BOOT_CMD(AUTOSCRIPT) = MK_CMD_ENTRY(
"autoscr", 2, 0, do_autoscript,
U_BOOT_CMD(
autoscr, 2, 0, do_autoscript,
"autoscr - run script from memory\n",
"[addr] - run script starting at addr"
" - A valid autoscr header must be present\n"
......
......@@ -172,8 +172,8 @@ static void print_str(const char *name, const char *str)
/* -------------------------------------------------------------------- */
cmd_tbl_t U_BOOT_CMD(BDINFO) = MK_CMD_ENTRY(
"bdinfo", 1, 1, do_bdinfo,
U_BOOT_CMD(
bdinfo, 1, 1, do_bdinfo,
"bdinfo - print Board Info structure\n",
NULL
);
......
......@@ -108,8 +108,8 @@ int do_bedbug_dis (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
dis_last_len = len;
return 0;
} /* do_bedbug_dis */
cmd_tbl_t U_BOOT_CMD(DIS) = MK_CMD_ENTRY(
"ds", 3, 1, do_bedbug_dis,
U_BOOT_CMD(
ds, 3, 1, do_bedbug_dis,
"ds - disassemble memory\n",
"ds <address> [# instructions]\n"
);
......@@ -165,8 +165,8 @@ int do_bedbug_asm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
return rcode;
} /* do_bedbug_asm */
cmd_tbl_t U_BOOT_CMD(ASM) = MK_CMD_ENTRY(
"as", 2, 0, do_bedbug_asm,
U_BOOT_CMD(
as, 2, 0, do_bedbug_asm,
"as - assemble memory\n",
"as <address>\n"
);
......@@ -184,8 +184,8 @@ int do_bedbug_break (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 0;
} /* do_bedbug_break */
cmd_tbl_t U_BOOT_CMD(BREAK) = MK_CMD_ENTRY(
"break", 3, 0, do_bedbug_break,
U_BOOT_CMD(
break, 3, 0, do_bedbug_break,
"break - set or clear a breakpoint\n",
" - Set or clear a breakpoint\n"
"break <address> - Break at an address\n"
......@@ -288,8 +288,8 @@ int do_bedbug_continue (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
bug_ctx.stopped = 0;
return 0;
} /* do_bedbug_continue */
cmd_tbl_t U_BOOT_CMD(CONTINUE) = MK_CMD_ENTRY(
"continue", 1, 0, do_bedbug_continue,
U_BOOT_CMD(
continue, 1, 0, do_bedbug_continue,
"continue- continue from a breakpoint\n",
" - continue from a breakpoint.\n"
);
......@@ -320,8 +320,8 @@ int do_bedbug_step (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
bug_ctx.stopped = 0;
return 0;
} /* do_bedbug_step */
cmd_tbl_t U_BOOT_CMD(STEP) = MK_CMD_ENTRY(
"step", 1, 1, do_bedbug_step,
U_BOOT_CMD(
step, 1, 1, do_bedbug_step,
"step - single step execution.\n",
" - single step execution.\n"
);
......@@ -352,8 +352,8 @@ int do_bedbug_next (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
bug_ctx.stopped = 0;
return 0;
} /* do_bedbug_next */
cmd_tbl_t U_BOOT_CMD(NEXT) = MK_CMD_ENTRY(
"next", 1, 1, do_bedbug_next,
U_BOOT_CMD(
next, 1, 1, do_bedbug_next,
"next - single step execution, stepping over subroutines.\n",
" - single step execution, stepping over subroutines.\n"
);
......@@ -401,8 +401,8 @@ int do_bedbug_stack (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
return 0;
} /* do_bedbug_stack */
cmd_tbl_t U_BOOT_CMD(STACK) = MK_CMD_ENTRY(
"where", 1, 1, do_bedbug_stack,
U_BOOT_CMD(
where, 1, 1, do_bedbug_stack,
"where - Print the running stack.\n",
" - Print the running stack.\n"
);
......@@ -424,8 +424,8 @@ int do_bedbug_rdump (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
show_regs( bug_ctx.regs );
return 0;
} /* do_bedbug_rdump */
cmd_tbl_t U_BOOT_CMD(RDUMP) = MK_CMD_ENTRY(
"rdump", 1, 1, do_bedbug_rdump,
U_BOOT_CMD(
rdump, 1, 1, do_bedbug_rdump,
"rdump - Show registers.\n",
" - Show registers.\n"
);
......
......@@ -73,8 +73,8 @@ int do_bmp(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
}
cmd_tbl_t U_BOOT_CMD(BMP) = MK_CMD_ENTRY(
"bmp", 3, 1, do_bmp,
U_BOOT_CMD(
bmp, 3, 1, do_bmp,
"bmp - manipulate BMP image data\n",
"info <imageAddr> - display image info\n"
"bmp display <imageAddr> - display image\n"
......
......@@ -59,8 +59,8 @@ int do_go (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
/* -------------------------------------------------------------------- */
cmd_tbl_t U_BOOT_CMD(GO) = MK_CMD_ENTRY(
"go", CFG_MAXARGS, 1, do_go,
U_BOOT_CMD(
go, CFG_MAXARGS, 1, do_go,
"go - start application at address 'addr'\n",
"addr [arg ...]\n - start application at address 'addr'\n"
" passing 'arg' as arguments\n"
......@@ -68,8 +68,8 @@ cmd_tbl_t U_BOOT_CMD(GO) = MK_CMD_ENTRY(
extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
cmd_tbl_t U_BOOT_CMD(RESET) = MK_CMD_ENTRY(
"reset", 1, 0, do_reset,
U_BOOT_CMD(
reset, 1, 0, do_reset,
"reset - Perform RESET of the CPU\n",
NULL
);
......@@ -381,8 +381,8 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 1;
}
cmd_tbl_t U_BOOT_CMD(BOOTM) = MK_CMD_ENTRY(
"bootm", CFG_MAXARGS, 1, do_bootm,
U_BOOT_CMD(
bootm, CFG_MAXARGS, 1, do_bootm,
"bootm - boot application image from memory\n",
"[addr [arg ...]]\n - boot application image stored in memory\n"
" passing arguments 'arg ...'; when booting a Linux kernel,\n"
......@@ -872,15 +872,15 @@ int do_bootd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return rcode;
}
cmd_tbl_t U_BOOT_CMD(BOOT) = MK_CMD_ENTRY(
"boot", 1, 1, do_bootd,
U_BOOT_CMD(
boot, 1, 1, do_bootd,
"boot - boot default, i.e., run 'bootcmd'\n",
NULL
);
/* keep old command name "bootd" for backward compatibility */
cmd_tbl_t U_BOOT_CMD(BOOTD) = MK_CMD_ENTRY(
"bootd", 1, 1, do_bootd,
U_BOOT_CMD(
bootd, 1, 1, do_bootd,
"bootd - boot default, i.e., run 'bootcmd'\n",
NULL
);
......@@ -945,8 +945,9 @@ static int image_info (ulong addr)
printf ("OK\n");
return 0;
}
cmd_tbl_t U_BOOT_CMD(IMINFO) = MK_CMD_ENTRY(
"iminfo", CFG_MAXARGS, 1, do_iminfo,
U_BOOT_CMD(
iminfo, CFG_MAXARGS, 1, do_iminfo,
"iminfo - print header information for application image\n",
"addr [addr ...]\n"
" - print header information for application image starting at\n"
......
......@@ -95,15 +95,15 @@ static int on_off (const char *s)
}
cmd_tbl_t U_BOOT_CMD(ICACHE) = MK_CMD_ENTRY(
"icache", 2, 1, do_icache,
U_BOOT_CMD(
icache, 2, 1, do_icache,
"icache - enable or disable instruction cache\n",
"[on, off]\n"
" - enable or disable instruction cache\n"
);
cmd_tbl_t U_BOOT_CMD(DCACHE) = MK_CMD_ENTRY(
"dcache", 2, 1, do_dcache,
U_BOOT_CMD(
dcache, 2, 1, do_dcache,
"dcache - enable or disable data cache\n",
"[on, off]\n"
" - enable or disable data (writethrough) cache\n"
......
......@@ -62,8 +62,8 @@ int do_coninfo (cmd_tbl_t * cmd, int flag, int argc, char *argv[])
/***************************************************/
cmd_tbl_t U_BOOT_CMD(CONINFO) = MK_CMD_ENTRY(
"coninfo", 3, 1, do_coninfo,
U_BOOT_CMD(
coninfo, 3, 1, do_coninfo,
"coninfo - print console devices and informations\n",
""
);
......
......@@ -191,8 +191,8 @@ int mk_date (char *datestr, struct rtc_time *tmp)
/***************************************************/
cmd_tbl_t U_BOOT_CMD(DATE) = MK_CMD_ENTRY(
"date", 2, 1, do_date,
U_BOOT_CMD(
date, 2, 1, do_date,
"date - get/set/reset date & time\n",
"[MMDDhhmm[[CC]YY][.ss]]\ndate reset\n"
" - without arguments: print date & time\n"
......
......@@ -106,13 +106,13 @@ int do_setdcr ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
/***************************************************/
cmd_tbl_t U_BOOT_CMD(GETDCR) = MK_CMD_ENTRY(
"getdcr", 2, 1, do_getdcr,
U_BOOT_CMD(
getdcr, 2, 1, do_getdcr,
"getdcr - Get an IBM PPC 4xx DCR's value\n",
"dcrn - return a DCR's value.\n"
);
cmd_tbl_t U_BOOT_CMD(SETDCR) = MK_CMD_ENTRY(
"setdcr", 2, 1, do_setdcr,
U_BOOT_CMD(
setdcr, 2, 1, do_setdcr,
"setdcr - Set an IBM PPC 4xx DCR's value\n",
"dcrn - set a DCR's value.\n"
);
......
......@@ -66,8 +66,8 @@ int do_diag (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
}
/***************************************************/
cmd_tbl_t U_BOOT_CMD(DIAG) = MK_CMD_ENTRY(
"diag", CFG_MAXARGS, 0, do_diag,
U_BOOT_CMD(
diag, CFG_MAXARGS, 0, do_diag,
"diag - perform board diagnostics\n",
" - print list of available tests\n"
"diag [test1 [test2]]\n"
......
......@@ -170,8 +170,8 @@ int do_doc (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return rcode;
}
}
cmd_tbl_t U_BOOT_CMD(DOC) = MK_CMD_ENTRY(
"doc", 5, 1, do_doc,
U_BOOT_CMD(
doc, 5, 1, do_doc,
"doc - Disk-On-Chip sub-system\n",
"info - show available DOC devices\n"
"doc device [dev] - show or set current device\n"
......@@ -284,8 +284,8 @@ int do_docboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return rcode;
}
cmd_tbl_t U_BOOT_CMD(DOCBOOT) = MK_CMD_ENTRY(
"docboot", 4, 1, do_docboot,
U_BOOT_CMD(
docboot, 4, 1, do_docboot,
"docboot - boot from DOC device\n",
"loadAddr dev\n"
);
......
......@@ -47,8 +47,8 @@ int do_dtt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
/***************************************************/
cmd_tbl_t U_BOOT_CMD(DTT) = MK_CMD_ENTRY(
"dtt", 1, 1, do_dtt,
U_BOOT_CMD(
dtt, 1, 1, do_dtt,
"dtt - Digital Thermometer and Themostat\n",
" - Read temperature from digital thermometer and thermostat.\n"
);
......
......@@ -376,16 +376,16 @@ void eeprom_init (void)
#if (CONFIG_COMMANDS & CFG_CMD_EEPROM)
#ifdef CFG_I2C_MULTI_EEPROMS
cmd_tbl_t U_BOOT_CMD(EEPROM) = MK_CMD_ENTRY(
"eeprom", 6, 1, do_eeprom,
U_BOOT_CMD(
eeprom, 6, 1, do_eeprom,
"eeprom - EEPROM sub-system\n",
"read devaddr addr off cnt\n"
"eeprom write devaddr addr off cnt\n"
" - read/write `cnt' bytes from `devaddr` EEPROM at offset `off'\n"
);
#else /* One EEPROM */
cmd_tbl_t U_BOOT_CMD(EEPROM) = MK_CMD_ENTRY(
"eeprom", 5, 1, do_eeprom,
U_BOOT_CMD(
eeprom, 5, 1, do_eeprom,
"eeprom - EEPROM sub-system\n",
"read addr off cnt\n"
"eeprom write addr off cnt\n"
......
......@@ -321,14 +321,14 @@ unsigned long load_elf_image (unsigned long addr)
}
/* ====================================================================== */
cmd_tbl_t U_BOOT_CMD(BOOTELF) = MK_CMD_ENTRY(
"bootelf", 2, 0, do_bootelf,
U_BOOT_CMD(
bootelf, 2, 0, do_bootelf,
"bootelf - Boot from an ELF image in memory\n",
" [address] - load address of ELF image.\n"
);
cmd_tbl_t U_BOOT_CMD(BOOTVX) = MK_CMD_ENTRY(
"bootvx", 2, 0, do_bootvx,
U_BOOT_CMD(
bootvx, 2, 0, do_bootvx,
"bootvx - Boot vxWorks from an ELF image\n",
" [address] - load address of vxWorks ELF image.\n"
);
......
......@@ -62,8 +62,8 @@ int do_fat_fsload (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return size;
}
cmd_tbl_t U_BOOT_CMD(FATLOAD) = MK_CMD_ENTRY(
"fatload", 4, 0, do_fat_fsload,
U_BOOT_CMD(
fatload, 4, 0, do_fat_fsload,
"fatload - load binary file from a dos filesystem\n",
"[ off ] [ filename ]\n"
" - load binary file from dos filesystem\n"
......@@ -83,8 +83,8 @@ int do_fat_ls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return (ret);
}
cmd_tbl_t U_BOOT_CMD(FATLS) = MK_CMD_ENTRY(
"fatls", 2, 1, do_fat_ls,
U_BOOT_CMD(
fatls, 2, 1, do_fat_ls,
"fatls - list files in a directory (default /)\n",
"[ directory ]\n"
" - list files in a directory\n"
......@@ -101,8 +101,8 @@ int do_fat_fsinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return (ret);
}
cmd_tbl_t U_BOOT_CMD(FATINFO) = MK_CMD_ENTRY(
"fatinfo", 1, 1, do_fat_fsinfo,
U_BOOT_CMD(
fatinfo, 1, 1, do_fat_fsinfo,
"fatinfo - print information about filesystem\n",
"\n"
" - print information about filesystem\n"
......
......@@ -888,8 +888,8 @@ int do_fdcboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
#if (CONFIG_COMMANDS & CFG_CMD_FDC)
cmd_tbl_t U_BOOT_CMD(FDC) = MK_CMD_ENTRY(
"fdcboot", 3, 1, do_fdcboot,
U_BOOT_CMD(
fdcboot, 3, 1, do_fdcboot,
"fdcboot - boot from floppy device\n",
"loadAddr drive\n"
);
......
......@@ -142,14 +142,14 @@ int do_fdosls(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return (dos_dir ());
}
cmd_tbl_t U_BOOT_CMD(FDOS_BOOT) = MK_CMD_ENTRY(
"fdosboot", 3, 0, do_fdosboot,
U_BOOT_CMD(
fdosboot, 3, 0, do_fdosboot,
"fdosboot- boot from a dos floppy file\n",
"[loadAddr] [filename]\n"
);
cmd_tbl_t U_BOOT_CMD(FDOS_LS) = MK_CMD_ENTRY(
"fdosls", 2, 0, do_fdosls,
U_BOOT_CMD(
fdosls, 2, 0, do_fdosls,
"fdosls - list files in a directory\n",
"[directory]\n"
);
......
......@@ -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"
......
......@@ -154,8 +154,8 @@ static int fpga_get_op( char *opstr )
return op;
}
cmd_tbl_t U_BOOT_CMD(FPGA) = MK_CMD_ENTRY(
"fpga", 6, 1, do_fpga,
U_BOOT_CMD(
fpga, 6, 1, do_fpga,
"fpga - loadable FPGA image support\n",
"fpga [operation type] [device number] [image address] [image size]\n"
"fpga operations:\n"
......
......@@ -867,38 +867,38 @@ int do_sdram ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
/***************************************************/
cmd_tbl_t U_BOOT_CMD(IMD) = MK_CMD_ENTRY(
"imd", 4, 1, do_i2c_md, \
U_BOOT_CMD(
imd, 4, 1, do_i2c_md, \
"imd - i2c memory display\n", \
"chip address[.0, .1, .2] [# of objects]\n - i2c memory display\n" \
);
cmd_tbl_t U_BOOT_CMD(IMM) = MK_CMD_ENTRY(
"imm", 3, 1, do_i2c_mm,
U_BOOT_CMD(
imm, 3, 1, do_i2c_mm,
"imm - i2c memory modify (auto-incrementing)\n",
"chip address[.0, .1, .2]\n"
" - memory modify, auto increment address\n"
);
cmd_tbl_t U_BOOT_CMD(INM) = MK_CMD_ENTRY(
"inm", 3, 1, do_i2c_nm,
U_BOOT_CMD(
inm, 3, 1, do_i2c_nm,
"inm - memory modify (constant address)\n",