mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-29 01:31:23 +02: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
@ -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…
x
Reference in New Issue
Block a user