diff options
author | Kim B. Heino <Kim.Heino@bluegiga.com> | 2008-03-03 10:39:13 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-03-03 21:48:02 +0100 |
commit | 84d0c2f1e39caff58bf765a7ab7c72da23c25ec8 (patch) | |
tree | 184a16fb920a073a9afa285bc383822feacdbb0d /common/cmd_mem.c | |
parent | 32bf3d143a888f8deacfdcc97e898f6c06d0aea4 (diff) | |
download | u-boot-imx-84d0c2f1e39caff58bf765a7ab7c72da23c25ec8.zip u-boot-imx-84d0c2f1e39caff58bf765a7ab7c72da23c25ec8.tar.gz u-boot-imx-84d0c2f1e39caff58bf765a7ab7c72da23c25ec8.tar.bz2 |
fix copy from ram to dataflash
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>
Diffstat (limited to 'common/cmd_mem.c')
-rw-r--r-- | common/cmd_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c index ed91f27..4262e26 100644 --- 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; |