diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-12-30 03:16:07 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2011-12-30 03:16:07 -0500 |
commit | 5b2acf384c8a8707d32a98106192ee7187e4446d (patch) | |
tree | 568cc0c99cc25e0003c26e62e50f94ce5c2bd2eb /arch | |
parent | 5f0a6e2d503896062f641639dacfe5055c2f593b (diff) |
ARM: imx6: fix v7_invalidate_l1 by adding I-Cache invalidation
The recent suspend/resume and reset testing on imx6q discovers that
not only D-Cache but also I-Cache has random data and validity when
the core comes out of a power recycle.
This patch adds I-Cache invalidation into v7_invalidate_l1 to make
sure both D-Cache and I-Cache invalidated on power-up.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/head-v7.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/head-v7.S b/arch/arm/mach-imx/head-v7.S index 6229efbc70cb..c844112061be 100644 --- a/arch/arm/mach-imx/head-v7.S +++ b/arch/arm/mach-imx/head-v7.S | |||
@@ -33,6 +33,7 @@ | |||
33 | */ | 33 | */ |
34 | ENTRY(v7_invalidate_l1) | 34 | ENTRY(v7_invalidate_l1) |
35 | mov r0, #0 | 35 | mov r0, #0 |
36 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache | ||
36 | mcr p15, 2, r0, c0, c0, 0 | 37 | mcr p15, 2, r0, c0, c0, 0 |
37 | mrc p15, 1, r0, c0, c0, 0 | 38 | mrc p15, 1, r0, c0, c0, 0 |
38 | 39 | ||