summaryrefslogtreecommitdiff
path: root/arch/arm/mach-berlin/headsmp.S
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2014-07-07 22:41:47 -0700
committerOlof Johansson <olof@lixom.net>2014-07-07 22:42:24 -0700
commit3ae22f4d94e5b69b8d9b8b1ce2702043e4aca43d (patch)
treec4777bd224a87c2f313a3ca6dcff216dd3d7c5c1 /arch/arm/mach-berlin/headsmp.S
parentb3c20e983269667ecce75fa7f4b0353917a8d0d1 (diff)
parent7b7dfdd2b9927c1861bb6d03ca35261f1739aceb (diff)
Merge tag 'berlin-soc-3.17-1' of git://git.infradead.org/users/hesselba/linux-berlin into next/soc
Merge "Berlin SoC changes for v3.17" from Sebastian Hesselbarth: - SMP support for BG2 and BG2Q * tag 'berlin-soc-3.17-1' of git://git.infradead.org/users/hesselba/linux-berlin: ARM: berlin: add SMP support Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-berlin/headsmp.S')
-rw-r--r--arch/arm/mach-berlin/headsmp.S30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-berlin/headsmp.S b/arch/arm/mach-berlin/headsmp.S
new file mode 100644
index 000000000000..4a4c56a58ad3
--- /dev/null
+++ b/arch/arm/mach-berlin/headsmp.S
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2014 Marvell Technology Group Ltd.
+ *
+ * Antoine Ténart <antoine.tenart@free-electrons.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/linkage.h>
+#include <linux/init.h>
+#include <asm/assembler.h>
+
+ENTRY(berlin_secondary_startup)
+ ARM_BE8(setend be)
+ bl v7_invalidate_l1
+ b secondary_startup
+ENDPROC(berlin_secondary_startup)
+
+/*
+ * If the following instruction is set in the reset exception vector, CPUs
+ * will fetch the value of the software reset address vector when being
+ * reset.
+ */
+.global boot_inst
+boot_inst:
+ ldr pc, [pc, #140]
+
+ .align