Commit ebaf6b26 authored by Frank Li's avatar Frank Li Committed by Stefano Babic
Browse files

imx6: fix random hang when download by usb



ROM did not invalidate L1 cache when download by usb
Need invalidate L1 cache before enable cache
Signed-off-by: default avatarHuang yongcai <b20788@freescale.com>
Signed-off-by: default avatarFrank Li <Frank.Li@freescale.com>
parent 5b5a82eb
......@@ -150,6 +150,8 @@ int arch_cpu_init(void)
#ifndef CONFIG_SYS_DCACHE_OFF
void enable_caches(void)
{
/* Avoid random hang when download by usb */
invalidate_dcache_all();
/* Enable D-cache. I-cache is already enabled in start.S */
dcache_enable();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment