2016-04-29 11:34:31 +00:00
|
|
|
From e4a5c39f75a11ecb78d1243b19b929af54f888fa Mon Sep 17 00:00:00 2001
|
2015-11-02 10:18:50 +00:00
|
|
|
From: John Crispin <blogic@openwrt.org>
|
2016-03-21 20:42:51 +00:00
|
|
|
Date: Tue, 5 Jan 2016 17:24:28 +0100
|
2016-04-29 11:34:31 +00:00
|
|
|
Subject: [PATCH 28/91] ARM: mediatek: add MT7623 smp bringup code
|
2016-03-21 20:42:51 +00:00
|
|
|
|
|
|
|
Add support for booting secondary CPUs on MT7623.
|
2015-11-02 10:18:50 +00:00
|
|
|
|
|
|
|
Signed-off-by: John Crispin <blogic@openwrt.org>
|
2016-03-21 20:42:51 +00:00
|
|
|
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
|
2015-11-02 10:18:50 +00:00
|
|
|
---
|
|
|
|
arch/arm/mach-mediatek/platsmp.c | 7 +++++++
|
|
|
|
1 file changed, 7 insertions(+)
|
|
|
|
|
2016-04-26 11:43:38 +00:00
|
|
|
diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c
|
|
|
|
index 8141f3f..8151400 100644
|
2015-11-02 10:18:50 +00:00
|
|
|
--- a/arch/arm/mach-mediatek/platsmp.c
|
|
|
|
+++ b/arch/arm/mach-mediatek/platsmp.c
|
2016-04-26 11:43:38 +00:00
|
|
|
@@ -44,6 +44,12 @@ static const struct mtk_smp_boot_info mtk_mt6589_boot = {
|
2015-11-02 10:18:50 +00:00
|
|
|
{ 0x38, 0x3c, 0x40 },
|
|
|
|
};
|
|
|
|
|
|
|
|
+static const struct mtk_smp_boot_info mtk_mt7623_boot = {
|
2016-03-21 20:42:51 +00:00
|
|
|
+ 0x10202000, 0x34,
|
2015-11-02 10:18:50 +00:00
|
|
|
+ { 0x534c4131, 0x4c415332, 0x41534c33 },
|
|
|
|
+ { 0x38, 0x3c, 0x40 },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = {
|
|
|
|
{ .compatible = "mediatek,mt8135", .data = &mtk_mt8135_tz_boot },
|
|
|
|
{ .compatible = "mediatek,mt8127", .data = &mtk_mt8135_tz_boot },
|
2016-04-26 11:43:38 +00:00
|
|
|
@@ -51,6 +57,7 @@ static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = {
|
2015-11-02 10:18:50 +00:00
|
|
|
|
|
|
|
static const struct of_device_id mtk_smp_boot_infos[] __initconst = {
|
|
|
|
{ .compatible = "mediatek,mt6589", .data = &mtk_mt6589_boot },
|
|
|
|
+ { .compatible = "mediatek,mt7623", .data = &mtk_mt7623_boot },
|
|
|
|
};
|
|
|
|
|
|
|
|
static void __iomem *mtk_smp_base;
|
2016-04-26 11:43:38 +00:00
|
|
|
--
|
|
|
|
1.7.10.4
|
|
|
|
|