summaryrefslogtreecommitdiff
path: root/common/cmd_doc.c
diff options
context:
space:
mode:
authorHeiko Schocher <hs@pollux.denx.de>2007-07-14 01:07:51 +0200
committerWolfgang Denk <wd@denx.de>2007-07-14 01:07:51 +0200
commit5da91f6ca93f6abd6454978dc2d8b24760b7d219 (patch)
tree34eb81390734469bc9c2210f704beab5d66d85c0 /common/cmd_doc.c
parent011595307731a7a67a7445d107c279d031e8ab97 (diff)
parentfad63407154f46246ce80d53a9c669a44362ac67 (diff)
downloadu-boot-imx-5da91f6ca93f6abd6454978dc2d8b24760b7d219.zip
u-boot-imx-5da91f6ca93f6abd6454978dc2d8b24760b7d219.tar.gz
u-boot-imx-5da91f6ca93f6abd6454978dc2d8b24760b7d219.tar.bz2
Merge with /home/hs/Atronic/u-boot-dev-new
Diffstat (limited to 'common/cmd_doc.c')
-rw-r--r--common/cmd_doc.c33
1 files changed, 13 insertions, 20 deletions
diff --git a/common/cmd_doc.c b/common/cmd_doc.c
index 4e624a2..9814d75 100644
--- a/common/cmd_doc.c
+++ b/common/cmd_doc.c
@@ -12,13 +12,6 @@
#include <malloc.h>
#include <asm/io.h>
-#ifdef CONFIG_SHOW_BOOT_PROGRESS
-# include <status_led.h>
-# define SHOW_BOOT_PROGRESS(arg) show_boot_progress(arg)
-#else
-# define SHOW_BOOT_PROGRESS(arg)
-#endif
-
#if (CONFIG_COMMANDS & CFG_CMD_DOC)
#include <linux/mtd/nftl.h>
@@ -216,7 +209,7 @@ int do_docboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
image_header_t *hdr;
int rcode = 0;
- SHOW_BOOT_PROGRESS (34);
+ show_boot_progress (34);
switch (argc) {
case 1:
addr = CFG_LOAD_ADDR;
@@ -237,27 +230,27 @@ int do_docboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
break;
default:
printf ("Usage:\n%s\n", cmdtp->usage);
- SHOW_BOOT_PROGRESS (-35);
+ show_boot_progress (-35);
return 1;
}
- SHOW_BOOT_PROGRESS (35);
+ show_boot_progress (35);
if (!boot_device) {
puts ("\n** No boot device **\n");
- SHOW_BOOT_PROGRESS (-36);
+ show_boot_progress (-36);
return 1;
}
- SHOW_BOOT_PROGRESS (36);
+ show_boot_progress (36);
dev = simple_strtoul(boot_device, &ep, 16);
if ((dev >= CFG_MAX_DOC_DEVICE) ||
(doc_dev_desc[dev].ChipID == DOC_ChipID_UNKNOWN)) {
printf ("\n** Device %d not available\n", dev);
- SHOW_BOOT_PROGRESS (-37);
+ show_boot_progress (-37);
return 1;
}
- SHOW_BOOT_PROGRESS (37);
+ show_boot_progress (37);
printf ("\nLoading from device %d: %s at 0x%lX (offset 0x%lX)\n",
dev, doc_dev_desc[dev].name, doc_dev_desc[dev].physadr,
@@ -266,10 +259,10 @@ int do_docboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
if (doc_rw (doc_dev_desc + dev, 1, offset,
SECTORSIZE, NULL, (u_char *)addr)) {
printf ("** Read error on %d\n", dev);
- SHOW_BOOT_PROGRESS (-38);
+ show_boot_progress (-38);
return 1;
}
- SHOW_BOOT_PROGRESS (38);
+ show_boot_progress (38);
hdr = (image_header_t *)addr;
@@ -281,18 +274,18 @@ int do_docboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
cnt -= SECTORSIZE;
} else {
puts ("\n** Bad Magic Number **\n");
- SHOW_BOOT_PROGRESS (-39);
+ show_boot_progress (-39);
return 1;
}
- SHOW_BOOT_PROGRESS (39);
+ show_boot_progress (39);
if (doc_rw (doc_dev_desc + dev, 1, offset + SECTORSIZE, cnt,
NULL, (u_char *)(addr+SECTORSIZE))) {
printf ("** Read error on %d\n", dev);
- SHOW_BOOT_PROGRESS (-40);
+ show_boot_progress (-40);
return 1;
}
- SHOW_BOOT_PROGRESS (40);
+ show_boot_progress (40);
/* Loading ok, update default load address */