summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge G. Davis <davis_g@com.rmk.(none)>2004-12-17 22:13:33 +0000
committerRussell King <rmk@flint.arm.linux.org.uk>2004-12-17 22:13:33 +0000
commitd8ed15fb707bf7c1f191a1977fcd4e9913cb35d0 (patch)
treec619bb8ea38ce7637cc700167b2cc5617784d797
parent76fda6505c0a348b9162d5be18cf465f1bcd7f08 (diff)
[ARM PATCH] 2318/1: Enable access to ARMv6 VFP coprocessr
Patch from George G. Davis Turn on ARMv6 VFP copressor, if present. According to the ARM1136 TRM, setting CACR bits will be ignored if the coprocessor is not present. In that case, this is change has no effect. Signed-off-by: George G. Davis Signed-off-by: Russell King
-rw-r--r--arch/arm/mm/proc-v6.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mm/proc-v6.S b/arch/arm/mm/proc-v6.S
index 166a94e861c9..fa3a5dd42a71 100644
--- a/arch/arm/mm/proc-v6.S
+++ b/arch/arm/mm/proc-v6.S
@@ -201,6 +201,11 @@ __v6_setup:
mov r10, #0x1f @ domains 0, 1 = manager
mcr p15, 0, r10, c3, c0, 0 @ load domain access register
mrc p15, 0, r0, c1, c0, 0 @ read control register
+#ifdef CONFIG_VFP
+ mrc p15, 0, r10, c1, c0, 2
+ orr r10, r10, #(3 << 20)
+ mcr p15, 0, r10, c1, c0, 2 @ Enable full access to VFP
+#endif
ldr r10, cr1_clear @ get mask for bits to clear
bic r0, r0, r10 @ clear bits them
ldr r10, cr1_set @ get mask for bits to set