Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -150,6 +150,8 @@ int arch_cpu_init(void) ...@@ -150,6 +150,8 @@ int arch_cpu_init(void)
#ifndef CONFIG_SYS_DCACHE_OFF #ifndef CONFIG_SYS_DCACHE_OFF
void enable_caches(void) 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 */ /* Enable D-cache. I-cache is already enabled in start.S */
dcache_enable(); dcache_enable();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment