提交 84d0c2f1 编写于 作者: K Kim B. Heino 提交者: Wolfgang Denk

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: NKim B. Heino <Kim.Heino@bluegiga.com>
上级 32bf3d14
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册