devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Max Shevchenko via B4 Relay <devnull+wctrl.proton.me@kernel.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	 Jiri Slaby <jirislaby@kernel.org>, Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	 Matthias Brugger <matthias.bgg@gmail.com>,
	 AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	 Thomas Gleixner <tglx@linutronix.de>,
	 Daniel Lezcano <daniel.lezcano@linaro.org>,
	 Wim Van Sebroeck <wim@linux-watchdog.org>,
	 Guenter Roeck <linux@roeck-us.net>,
	Sean Wang <sean.wang@mediatek.com>,
	 Russell King <linux@armlinux.org.uk>
Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
	 devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	 linux-mediatek@lists.infradead.org,
	linux-watchdog@vger.kernel.org,  Max Shevchenko <wctrl@proton.me>
Subject: [PATCH v2 08/11] ARM: mediatek: add MT6572 smp bring up code
Date: Thu, 26 Jun 2025 11:54:01 +0300	[thread overview]
Message-ID: <20250626-mt6572-v2-8-f7f842196986@proton.me> (raw)
In-Reply-To: <20250626-mt6572-v2-0-f7f842196986@proton.me>

From: Max Shevchenko <wctrl@proton.me>

Add support for booting the secondary CPU on the MT6572 SoC.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Max Shevchenko <wctrl@proton.me>
---
 arch/arm/mach-mediatek/Kconfig   | 4 ++++
 arch/arm/mach-mediatek/platsmp.c | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
index 35a3430c7942d897106bb32916df78347113798a..638eabad2dd37ee56244fc036cb76af135aee416 100644
--- a/arch/arm/mach-mediatek/Kconfig
+++ b/arch/arm/mach-mediatek/Kconfig
@@ -15,6 +15,10 @@ config MACH_MT2701
 	bool "MediaTek MT2701 SoCs support"
 	default ARCH_MEDIATEK
 
+config MACH_MT6572
+	bool "MediaTek MT6572 SoCs support"
+	default ARCH_MEDIATEK
+
 config MACH_MT6589
 	bool "MediaTek MT6589 SoCs support"
 	default ARCH_MEDIATEK
diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c
index 16a4ee6c959050474c5535ac6a65d92b29482d53..bbd26d423bdef23629ec5ca9d9c61903748988b7 100644
--- a/arch/arm/mach-mediatek/platsmp.c
+++ b/arch/arm/mach-mediatek/platsmp.c
@@ -29,6 +29,12 @@ static const struct mtk_smp_boot_info mtk_mt8135_tz_boot = {
 	{ 0x3f8, 0x3f8, 0x3f8 },
 };
 
+static const struct mtk_smp_boot_info mtk_mt6572_boot = {
+	0x10001400, 0x08,
+	{ 0x534c4131 },
+	{ 0x0c },
+};
+
 static const struct mtk_smp_boot_info mtk_mt6589_boot = {
 	0x10002000, 0x34,
 	{ 0x534c4131, 0x4c415332, 0x41534c33 },
@@ -49,6 +55,7 @@ static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = {
 };
 
 static const struct of_device_id mtk_smp_boot_infos[] __initconst = {
+	{ .compatible   = "mediatek,mt6572", .data = &mtk_mt6572_boot },
 	{ .compatible   = "mediatek,mt6589", .data = &mtk_mt6589_boot },
 	{ .compatible   = "mediatek,mt7623", .data = &mtk_mt7623_boot },
 	{ .compatible   = "mediatek,mt7629", .data = &mtk_mt7623_boot },

-- 
2.50.0



  parent reply	other threads:[~2025-06-26  8:53 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-26  8:53 [PATCH v2 00/11] ARM: Add support for MediaTek MT6572 SoC Max Shevchenko via B4 Relay
2025-06-26  8:53 ` [PATCH v2 01/11] dt-bindings: serial: mediatek,uart: add MT6572 Max Shevchenko via B4 Relay
2025-06-30  7:40   ` AngeloGioacchino Del Regno
2025-06-26  8:53 ` [PATCH v2 02/11] dt-bindings: interrupt-controller: mediatek,mt6577-sysirq: " Max Shevchenko via B4 Relay
2025-06-27 21:22   ` Rob Herring (Arm)
2025-06-26  8:53 ` [PATCH v2 03/11] dt-bindings: timer: mediatek: " Max Shevchenko via B4 Relay
2025-06-27 21:22   ` Rob Herring (Arm)
2025-06-26  8:53 ` [PATCH v2 04/11] dt-bindings: watchdog: mediatek,mtk-wdt: " Max Shevchenko via B4 Relay
2025-06-27 21:22   ` Rob Herring (Arm)
2025-06-30 13:29   ` Guenter Roeck
2025-06-26  8:53 ` [PATCH v2 05/11] dt-bindings: vendor-prefixes: add JTY Max Shevchenko via B4 Relay
2025-06-27 21:23   ` Rob Herring (Arm)
2025-06-30 13:30   ` Guenter Roeck
2025-06-26  8:53 ` [PATCH v2 06/11] dt-bindings: arm: mediatek: add boards based on the MT6572 SoC Max Shevchenko via B4 Relay
2025-06-27 21:23   ` Rob Herring (Arm)
2025-06-26  8:54 ` [PATCH v2 07/11] ARM: mediatek: add board_dt_compat entry for " Max Shevchenko via B4 Relay
2025-06-26  8:54 ` Max Shevchenko via B4 Relay [this message]
2025-06-26  8:54 ` [PATCH v2 09/11] ARM: dts: mediatek: add basic support for " Max Shevchenko via B4 Relay
2025-06-30  7:40   ` AngeloGioacchino Del Regno
2025-06-26  8:54 ` [PATCH v2 10/11] ARM: dts: mediatek: add basic support for JTY D101 board Max Shevchenko via B4 Relay
2025-06-26  8:54 ` [PATCH v2 11/11] ARM: dts: mediatek: add basic support for Lenovo A369i board Max Shevchenko via B4 Relay
2025-06-26 19:53 ` [PATCH v2 00/11] ARM: Add support for MediaTek MT6572 SoC Rob Herring (Arm)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250626-mt6572-v2-8-f7f842196986@proton.me \
    --to=devnull+wctrl.proton.me@kernel.org \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=linux@roeck-us.net \
    --cc=matthias.bgg@gmail.com \
    --cc=robh@kernel.org \
    --cc=sean.wang@mediatek.com \
    --cc=tglx@linutronix.de \
    --cc=wctrl@proton.me \
    --cc=wim@linux-watchdog.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).