summaryrefslogtreecommitdiff
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorFrank Li <Frank.Li@freescale.com>2013-11-14 00:58:46 +0800
committerStefano Babic <sbabic@denx.de>2013-12-17 18:48:45 +0100
commitebaf6b26bc12bd470188f3149a75397f112ab09d (patch)
tree0fdce9b75383e5cce25412dd3ead12a919310cbf /arch/arm/cpu
parent5b5a82eb7054869e869c2aa3c7018fe50a84c47a (diff)
downloadu-boot-imx-ebaf6b26bc12bd470188f3149a75397f112ab09d.zip
u-boot-imx-ebaf6b26bc12bd470188f3149a75397f112ab09d.tar.gz
u-boot-imx-ebaf6b26bc12bd470188f3149a75397f112ab09d.tar.bz2
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>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/armv7/mx6/soc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index a390296..335706a 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -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();
}