summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/arm64/smp.S
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-04-25 13:45:32 -0400
committerTom Rini <trini@konsulko.com>2016-04-25 13:45:32 -0400
commit9f69ab86d0592d528a0372f01fa23684291243fa (patch)
tree0ad01e07d0097f36840f78b3ac49dbf811ac2f02 /arch/arm/mach-uniphier/arm64/smp.S
parente6a365289974fe030372c0fb0151df7940992d39 (diff)
parentb75e072c1c53cade2c3944433d852d7d6046661b (diff)
downloadu-boot-9f69ab86d0592d528a0372f01fa23684291243fa.tar.gz
Merge branch 'master' of git://www.denx.de/git/u-boot-uniphier
Diffstat (limited to 'arch/arm/mach-uniphier/arm64/smp.S')
-rw-r--r--arch/arm/mach-uniphier/arm64/smp.S19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/arm64/smp.S b/arch/arm/mach-uniphier/arm64/smp.S
new file mode 100644
index 0000000000..9348ec97c4
--- /dev/null
+++ b/arch/arm/mach-uniphier/arm64/smp.S
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <linux/linkage.h>
+
+ENTRY(uniphier_smp_setup)
+ mrs x0, s3_1_c15_c2_1 /* CPUECTLR_EL1 */
+ orr x0, x0, #(1 << 6) /* SMPEN */
+ msr s3_1_c15_c2_1, x0
+ ret
+ENDPROC(uniphier_smp_setup)
+
+ENTRY(uniphier_secondary_startup)
+ bl uniphier_smp_setup
+ b _start
+ENDPROC(uniphier_secondary_startup)