blob: 9348ec97c425d7983b56c354c533c422ef1b6872 [file] [log] [blame]
Masahiro Yamada063eb1e2016-04-21 14:43:18 +09001/*
2 * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <linux/linkage.h>
8
9ENTRY(uniphier_smp_setup)
10 mrs x0, s3_1_c15_c2_1 /* CPUECTLR_EL1 */
11 orr x0, x0, #(1 << 6) /* SMPEN */
12 msr s3_1_c15_c2_1, x0
13 ret
14ENDPROC(uniphier_smp_setup)
15
16ENTRY(uniphier_secondary_startup)
17 bl uniphier_smp_setup
18 b _start
19ENDPROC(uniphier_secondary_startup)