diff options
author | John Crispin <blogic@openwrt.org> | 2016-01-05 11:24:28 -0500 |
---|---|---|
committer | Matthias Brugger <matthias.bgg@gmail.com> | 2016-01-25 12:59:41 -0500 |
commit | fd63892fcf28d839694d50d7d355ca0cbde401a1 (patch) | |
tree | 426db17415316db5f5febfb6ad31b59b639cc25d | |
parent | 73efe5792bfa73589a7e04abf773f8b7a4c01650 (diff) |
ARM: mediatek: add MT7623 smp bringup code
Add support for booting secondary CPUs on MT7623.
Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
-rw-r--r-- | arch/arm/mach-mediatek/platsmp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c index a1b07eeaaf5b..306a8dd00166 100644 --- a/arch/arm/mach-mediatek/platsmp.c +++ b/arch/arm/mach-mediatek/platsmp.c | |||
@@ -44,6 +44,12 @@ static const struct mtk_smp_boot_info mtk_mt6589_boot = { | |||
44 | { 0x38, 0x3c, 0x40 }, | 44 | { 0x38, 0x3c, 0x40 }, |
45 | }; | 45 | }; |
46 | 46 | ||
47 | static const struct mtk_smp_boot_info mtk_mt7623_boot = { | ||
48 | 0x10202000, 0x34, | ||
49 | { 0x534c4131, 0x4c415332, 0x41534c33 }, | ||
50 | { 0x38, 0x3c, 0x40 }, | ||
51 | }; | ||
52 | |||
47 | static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = { | 53 | static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = { |
48 | { .compatible = "mediatek,mt8135", .data = &mtk_mt8135_tz_boot }, | 54 | { .compatible = "mediatek,mt8135", .data = &mtk_mt8135_tz_boot }, |
49 | { .compatible = "mediatek,mt8127", .data = &mtk_mt8135_tz_boot }, | 55 | { .compatible = "mediatek,mt8127", .data = &mtk_mt8135_tz_boot }, |
@@ -51,6 +57,7 @@ static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = { | |||
51 | 57 | ||
52 | static const struct of_device_id mtk_smp_boot_infos[] __initconst = { | 58 | static const struct of_device_id mtk_smp_boot_infos[] __initconst = { |
53 | { .compatible = "mediatek,mt6589", .data = &mtk_mt6589_boot }, | 59 | { .compatible = "mediatek,mt6589", .data = &mtk_mt6589_boot }, |
60 | { .compatible = "mediatek,mt7623", .data = &mtk_mt7623_boot }, | ||
54 | }; | 61 | }; |
55 | 62 | ||
56 | static void __iomem *mtk_smp_base; | 63 | static void __iomem *mtk_smp_base; |