mediatek: sync and patches add support for several boards
[openwrt/openwrt.git] / target / linux / mediatek / patches-4.4 / 0028-ARM-mediatek-add-MT7623-smp-bringup-code.patch
1 From a7b6aff661303f2c67e3f8d03b152fd6a0a19ac2 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/90] 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 diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c
15 index 8141f3f..8151400 100644
16 --- a/arch/arm/mach-mediatek/platsmp.c
17 +++ b/arch/arm/mach-mediatek/platsmp.c
18 @@ -44,6 +44,12 @@ static const struct mtk_smp_boot_info mtk_mt6589_boot = {
19 { 0x38, 0x3c, 0x40 },
20 };
21
22 +static const struct mtk_smp_boot_info mtk_mt7623_boot = {
23 + 0x10202000, 0x34,
24 + { 0x534c4131, 0x4c415332, 0x41534c33 },
25 + { 0x38, 0x3c, 0x40 },
26 +};
27 +
28 static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = {
29 { .compatible = "mediatek,mt8135", .data = &mtk_mt8135_tz_boot },
30 { .compatible = "mediatek,mt8127", .data = &mtk_mt8135_tz_boot },
31 @@ -51,6 +57,7 @@ static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = {
32
33 static const struct of_device_id mtk_smp_boot_infos[] __initconst = {
34 { .compatible = "mediatek,mt6589", .data = &mtk_mt6589_boot },
35 + { .compatible = "mediatek,mt7623", .data = &mtk_mt7623_boot },
36 };
37
38 static void __iomem *mtk_smp_base;
39 --
40 1.7.10.4
41