summaryrefslogtreecommitdiff
path: root/common/cmd_boot.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-05-20 10:58:04 +0000
committerwdenk <wdenk>2003-05-20 10:58:04 +0000
commit59de2ed6b5631c709d6e9c6dce7c0bffdf5a2058 (patch)
tree54e2c2fd8c76243c01544c041bb3002d0d895e5f /common/cmd_boot.c
parent86d82762f685c4554e24628838b19e93c9a38001 (diff)
downloadu-boot-imx-59de2ed6b5631c709d6e9c6dce7c0bffdf5a2058.zip
u-boot-imx-59de2ed6b5631c709d6e9c6dce7c0bffdf5a2058.tar.gz
u-boot-imx-59de2ed6b5631c709d6e9c6dce7c0bffdf5a2058.tar.bz2
Patch by Christophe Lindheimer, 20 May 2003:
allow the use of CFG_LOADS when CFG_NO_FLASH is set
Diffstat (limited to 'common/cmd_boot.c')
-rw-r--r--common/cmd_boot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/cmd_boot.c b/common/cmd_boot.c
index 2fc0729..c2897a2 100644
--- a/common/cmd_boot.c
+++ b/common/cmd_boot.c
@@ -332,6 +332,7 @@ load_serial (ulong offset)
case SREC_DATA3:
case SREC_DATA4:
store_addr = addr + offset;
+#ifndef CFG_NO_FLASH
if (addr2info(store_addr)) {
int rc;
@@ -340,7 +341,9 @@ load_serial (ulong offset)
flash_perror (rc);
return (~0);
}
- } else {
+ } else
+#endif
+ {
memcpy ((char *)(store_addr), binbuf, binlen);
}
if ((store_addr) < start_addr)