Skip to contentSkip to conversation

arm: add support for the Cortex-A12 processor

PATCH Superseded Jonathan Austin 2 participants 2 messages Oct 23, 2013 – Nov 6, 2013 Arm (32-bit)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: add support for the Cortex-A12 processor

The A12 behaves as the A7/A15 does with respect to setting the SMP bit, and doesn't require TLB ops broadcasting to be explicitly enabled like the A9 does.

Note that as the ACTLR cannot (usually) be written from non-secure, it is the responsibility of the bootloader/firmware to set this bit per core - it is done here in Linux as last resort in case of bad firmware.

---
 arch/arm/mm/proc-v7.S |   11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm/mm/proc-v7.S +11 -0
index 3a5922d..9745288 100644
@@ -164,6 +164,7 @@ __v7_cr7mp_setup:
 	mov	r10, #(1 << 0)			@ Cache/TLB ops broadcasting
 	b	1f
 __v7_ca7mp_setup:
+__v7_ca12mp_setup:
 __v7_ca15mp_setup:
 	mov	r10, #0
 1:
@@ -440,6 +441,16 @@ __v7_ca7mp_proc_info:
 	.size	__v7_ca7mp_proc_info, . - __v7_ca7mp_proc_info
 
 	/*
+	 * ARM Ltd. Cortex A12 processor.
+	 */
+	.type	__v7_ca12mp_proc_info, #object
+__v7_ca12mp_proc_info:
+	.long	0x410fc0d0
+	.long	0xff0ffff0
+	__v7_proc __v7_ca12mp_setup
+	.size	__v7_ca12mp_proc_info, . - __v7_ca12mp_proc_info
+
+	/*
 	 * ARM Ltd. Cortex A15 processor.
 	 */
 	.type	__v7_ca15mp_proc_info, #object
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 arm: add support for the Cortex-A12 processor

Quoted 26 lines · Jonathan Austin

The A12 behaves as the A7/A15 does with respect to setting the SMP bit, and doesn't require TLB ops broadcasting to be explicitly enabled like the A9 does.

Note that as the ACTLR cannot (usually) be written from non-secure, it is the responsibility of the bootloader/firmware to set this bit per core - it is done here in Linux as last resort in case of bad firmware.

---
 arch/arm/mm/proc-v7.S |   11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm/mm/proc-v7.S +1 -0
index 3a5922d..9745288 100644
@@ -164,6 +164,7 @@ __v7_cr7mp_setup:
 	mov	r10, #(1 << 0)			@ Cache/TLB ops broadcasting
 	b	1f
 __v7_ca7mp_setup:
+__v7_ca12mp_setup:
 __v7_ca15mp_setup:
 	mov	r10, #0
 1:

arch/arm/mm/proc-v7.S __v7_ca7mp_proc_info: · line 448

Quoted 8 lines
arch/arm/mm/proc-v7.S +5 -0
@@ -440,6 +441,16 @@ __v7_ca7mp_proc_info:
 	.size	__v7_ca7mp_proc_info, . - __v7_ca7mp_proc_info
 
 	/*
+	 * ARM Ltd. Cortex A12 processor.
+	 */
+	.type	__v7_ca12mp_proc_info, #object
+__v7_ca12mp_proc_info:
+	.long	0x410fc0d0

Great, looks like we can't count.

Please put this into the patch system:

Will