projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32bf3d1
)
fix copy from ram to dataflash
author
Kim B. Heino
<Kim.Heino@bluegiga.com>
Mon, 3 Mar 2008 08:39:13 +0000
(10:39 +0200)
committer
Wolfgang Denk
<wd@denx.de>
Mon, 3 Mar 2008 20:48:02 +0000
(21:48 +0100)
If I try to "cp.b <ram> <dataflash>", u-boot selects normal flash
routines instead of dataflash. This is because it checks "if source
address is not dataflash" instead of target address.
Signed-off-by: Kim B. Heino <Kim.Heino@bluegiga.com>
common/cmd_mem.c
patch
|
blob
|
history
diff --git
a/common/cmd_mem.c
b/common/cmd_mem.c
index ed91f27046b52c5c6dd3f0208f708d3f02bd09aa..4262e26a61576c46f5f336044e5ce2fdaad307a9 100644
(file)
--- a/
common/cmd_mem.c
+++ b/
common/cmd_mem.c
@@
-417,7
+417,7
@@
int do_mem_cp ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
/* check if we are copying to Flash */
if ( (addr2info(dest) != NULL)
#ifdef CONFIG_HAS_DATAFLASH
- && (!addr_dataflash(
addr
))
+ && (!addr_dataflash(
dest
))
#endif
) {
int rc;