5b8490ac9b106e2d670884835a13dbc314ea37a1
[openwrt/openwrt.git] / target / linux / mediatek / patches-4.4 / 0028-ARM-mediatek-add-MT7623-smp-bringup-code.patch
1 From e4a5c39f75a11ecb78d1243b19b929af54f888fa Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Tue, 5 Jan 2016 17:24:28 +0100
4 Subject: [PATCH 28/91] ARM: mediatek: add MT7623 smp bringup code
5
6 Add support for booting secondary CPUs on MT7623.
7
8 Signed-off-by: John Crispin <blogic@openwrt.org>
9 Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
10 ---
11 arch/arm/mach-mediatek/platsmp.c | 7 +++++++
12 1 file changed, 7 insertions(+)
13
14 --- a/arch/arm/mach-mediatek/platsmp.c
15 +++ b/arch/arm/mach-mediatek/platsmp.c
16 @@ -44,6 +44,12 @@ static const struct mtk_smp_boot_info mt
17 { 0x38, 0x3c, 0x40 },
18 };
19
20 +static const struct mtk_smp_boot_info mtk_mt7623_boot = {
21 + 0x10202000, 0x34,
22 + { 0x534c4131, 0x4c415332, 0x41534c33 },
23 + { 0x38, 0x3c, 0x40 },
24 +};
25 +
26 static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = {
27 { .compatible = "mediatek,mt8135", .data = &mtk_mt8135_tz_boot },
28 { .compatible = "mediatek,mt8127", .data = &mtk_mt8135_tz_boot },
29 @@ -51,6 +57,7 @@ static const struct of_device_id mtk_tz_
30
31 static const struct of_device_id mtk_smp_boot_infos[] __initconst = {
32 { .compatible = "mediatek,mt6589", .data = &mtk_mt6589_boot },
33 + { .compatible = "mediatek,mt7623", .data = &mtk_mt7623_boot },
34 };
35
36 static void __iomem *mtk_smp_base;