diff options
author | Frank Li <Frank.Li@freescale.com> | 2013-11-13 23:26:40 +0800 |
---|---|---|
committer | Frank Li <Frank.Li@freescale.com> | 2013-11-14 00:41:40 +0800 |
commit | 15ecf2d35389137fbae090672a095825bc4d57e1 (patch) | |
tree | e7e81aa3b899f5ec9b71555ab03badd267a37148 | |
parent | bb0c13dcc7ceb7f65df663c3e1d23e0168a3f435 (diff) | |
download | u-boot-imx-15ecf2d35389137fbae090672a095825bc4d57e1.zip u-boot-imx-15ecf2d35389137fbae090672a095825bc4d57e1.tar.gz u-boot-imx-15ecf2d35389137fbae090672a095825bc4d57e1.tar.bz2 |
ENGR00287923 fix random hang when download by mfgtools
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>
-rw-r--r-- | arch/arm/cpu/armv7/mx6/soc.c | 2 |
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 2d348e5..b52c294 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -382,6 +382,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(); } |