mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 21:51:31 +00:00
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: Huang yongcai <b20788@freescale.com> Signed-off-by: Frank Li <Frank.Li@freescale.com>
This commit is contained in:
parent
5b5a82eb70
commit
ebaf6b26bc
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue