aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2007-07-20 06:42:29 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-07-20 16:41:55 -0400
commit7092fc38ee770251aed361572bf6bed05fcf3ee2 (patch)
treea32e3b9b99d78476746afbf45f8abf4bfd69c4c1 /arch/arm
parent69ebb22277a53f612ccd632ceb73ed87c9093412 (diff)
[ARM] 4498/1: ARMv7: Remove the L2 cache configuration via the aux ctrl register
The auxiliary control and the L2 auxiliary control registers are Cortex-A8 specific. They need to be removed from the generic ARMv7 support code. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mm/Kconfig6
-rw-r--r--arch/arm/mm/proc-v7.S10
2 files changed, 0 insertions, 16 deletions
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig
index d377376d6eed..7cc32b707113 100644
--- a/arch/arm/mm/Kconfig
+++ b/arch/arm/mm/Kconfig
@@ -612,12 +612,6 @@ config CPU_CACHE_ROUND_ROBIN
612 Say Y here to use the predictable round-robin cache replacement 612 Say Y here to use the predictable round-robin cache replacement
613 policy. Unless you specifically require this or are unsure, say N. 613 policy. Unless you specifically require this or are unsure, say N.
614 614
615config CPU_L2CACHE_DISABLE
616 bool "Disable level 2 cache"
617 depends on CPU_V7
618 help
619 Say Y here to disable the level 2 cache. If unsure, say N.
620
621config CPU_BPREDICT_DISABLE 615config CPU_BPREDICT_DISABLE
622 bool "Disable branch prediction" 616 bool "Disable branch prediction"
623 depends on CPU_ARM1020 || CPU_V6 || CPU_XSC3 || CPU_V7 617 depends on CPU_ARM1020 || CPU_V6 || CPU_XSC3 || CPU_V7
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S
index 718f4782ee8b..07b0269dafa7 100644
--- a/arch/arm/mm/proc-v7.S
+++ b/arch/arm/mm/proc-v7.S
@@ -176,16 +176,6 @@ __v7_setup:
176 mcr p15, 0, r4, c2, c0, 1 @ load TTB1 176 mcr p15, 0, r4, c2, c0, 1 @ load TTB1
177 mov r10, #0x1f @ domains 0, 1 = manager 177 mov r10, #0x1f @ domains 0, 1 = manager
178 mcr p15, 0, r10, c3, c0, 0 @ load domain access register 178 mcr p15, 0, r10, c3, c0, 0 @ load domain access register
179#ifndef CONFIG_CPU_L2CACHE_DISABLE
180 @ L2 cache configuration in the L2 aux control register
181 mrc p15, 1, r10, c9, c0, 2
182 bic r10, r10, #(1 << 16) @ L2 outer cache
183 mcr p15, 1, r10, c9, c0, 2
184 @ L2 cache is enabled in the aux control register
185 mrc p15, 0, r10, c1, c0, 1
186 orr r10, r10, #2
187 mcr p15, 0, r10, c1, c0, 1
188#endif
189 mrc p15, 0, r0, c1, c0, 0 @ read control register 179 mrc p15, 0, r0, c1, c0, 0 @ read control register
190 ldr r10, cr1_clear @ get mask for bits to clear 180 ldr r10, cr1_clear @ get mask for bits to clear
191 bic r0, r0, r10 @ clear bits them 181 bic r0, r0, r10 @ clear bits them