mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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>
This commit is contained in:
parent
32bf3d143a
commit
84d0c2f1e3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue