summaryrefslogtreecommitdiff
path: root/common/command.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-15 22:40:42 +0000
committerwdenk <wdenk>2003-06-15 22:40:42 +0000
commit71f9511803de65a3b98d2f592d418da1d1539f13 (patch)
tree4be38a22fc4f588a80aa8cc350ecd5617a211389 /common/command.c
parent487778b781257831aa9b9140dd3c7ad4176e8314 (diff)
downloadu-boot-imx-71f9511803de65a3b98d2f592d418da1d1539f13.zip
u-boot-imx-71f9511803de65a3b98d2f592d418da1d1539f13.tar.gz
u-boot-imx-71f9511803de65a3b98d2f592d418da1d1539f13.tar.bz2
* Fix CONFIG_NET_MULTI support in include/net.h
* Patches by Kyle Harris, 13 Mar 2003: - Add FAT partition support - Add command support for FAT - Add command support for MMC ---- - Add Intel PXA support for video - Add Intel PXA support for MMC ---- - Enable MMC and FAT for lubbock board - Other misc changes for lubbock board
Diffstat (limited to 'common/command.c')
-rw-r--r--common/command.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/common/command.c b/common/command.c
index d52ddf1..842e784 100644
--- a/common/command.c
+++ b/common/command.c
@@ -74,6 +74,8 @@
#include <cmd_fdos.h>
#include <cmd_bmp.h>
#include <cmd_portio.h>
+#include <cmd_mmc.h>
+#include <cmd_fat.h>
#ifdef CONFIG_AMIGAONEG3SE
#include <cmd_menu.h>
@@ -131,13 +133,14 @@ do_echo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
if (i > 1)
putc(' ');
- while ((c = *p++) != '\0')
+ while ((c = *p++) != '\0') {
if (c == '\\' && *p == 'c') {
putnl = 0;
p++;
- }
- else
+ } else {
putc(c);
+ }
+ }
}
if (putnl)
@@ -190,8 +193,7 @@ do_help (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
if (cmdtp->usage)
puts (cmdtp->usage);
#endif /* CFG_LONGHELP */
- }
- else {
+ } else {
printf ("Unknown command '%s' - try 'help'"
" without arguments for list of all"
" known commands\n\n",
@@ -263,6 +265,7 @@ cmd_tbl_t cmd_tbl[] = {
CMD_TBL_DTT
CMD_TBL_ECHO
CMD_TBL_EEPROM
+ CMD_TBL_FAT
CMD_TBL_FCCINFO
CMD_TBL_FLERASE
CMD_TBL_FDC
@@ -302,6 +305,7 @@ cmd_tbl_t cmd_tbl[] = {
CMD_TBL_LOOP
CMD_TBL_JFFS2_LS
CMD_TBL_MCCINFO
+ CMD_TBL_MMC
CMD_TBL_MD
CMD_TBL_MEMCINFO
#ifdef CONFIG_AMIGAONEG3SE