aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-mvebu/headsmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-mvebu/headsmp.S')
-rw-r--r--arch/arm/mach-mvebu/headsmp.S19
1 files changed, 5 insertions, 14 deletions
diff --git a/arch/arm/mach-mvebu/headsmp.S b/arch/arm/mach-mvebu/headsmp.S
index 7147300c8af..2c4032e368b 100644
--- a/arch/arm/mach-mvebu/headsmp.S
+++ b/arch/arm/mach-mvebu/headsmp.S
@@ -21,7 +21,7 @@
#include <linux/linkage.h>
#include <linux/init.h>
- __CPUINIT
+#include <asm/assembler.h>
/*
* Armada XP specific entry point for secondary CPUs.
@@ -29,21 +29,12 @@
* startup
*/
ENTRY(armada_xp_secondary_startup)
- /* Get coherency fabric base physical address */
- adr r0, 1f
- ldr r1, [r0]
- ldr r0, [r0, r1]
+ ARM_BE8(setend be ) @ go BE8 if entered LE
- /* Read CPU id */
- mrc p15, 0, r1, c0, c0, 5
- and r1, r1, #0xF
+ bl ll_add_cpu_to_smp_group
+
+ bl ll_enable_coherency
- /* Add CPU to coherency fabric */
- bl ll_set_cpu_coherent
b secondary_startup
ENDPROC(armada_xp_secondary_startup)
-
- .align 2
-1:
- .long coherency_phys_base - .