From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 12217C7115C for ; Fri, 20 Jun 2025 15:58:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=t2tLUf+2BIN1ztN81IpKbfxjznFlwBOLUuHkoZvZzOI=; b=MlqYb5f1BSvjhUsRsRLFLqKD36 NZEFqrHJ9R7LIAMGo1/vu0H1mxTpC1iiQNyqu3cJsDV2lJS/poH80nAVyucAMIGZdUHSuEilBkWQy ILKTFSilaCCK9JEzh36Y/C2qJbNHotxw+ubx5RABrZRvQwAx6e9DNvd9/2214w/9X4BR9TwfBGXJU ocijYKpzeWfP/PgUdRdBP1oRU4hQJ8Pdir66XDnQCtuuZiNtre8TZ93cTP7vCfR7+AuVjWZHK/rci Ayd2+5MzM4VaJGYFFHi62LNRg8VHqRZZFRkFoI2btVwk7M22CbKgdWwZQd8dhuL4g3ENwtdRPnvxo bMUxG6FQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uSe7z-0000000G4Q1-3jZO; Fri, 20 Jun 2025 15:58:07 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uSduF-0000000G1RG-0VE3; Fri, 20 Jun 2025 15:43:57 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 4AFE24AF8B; Fri, 20 Jun 2025 15:43:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id E9F4EC4CEFB; Fri, 20 Jun 2025 15:43:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1750434234; bh=Rj7KD75WcgJtvIqW6RZMxDs0u6BFvPI2J2iy6HHQGz8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Xj8EFzrjQnbGovpoALtOdnmSuU8QU7uuMv2+npD2yE/PfAvS85RXI6MtV5hZN6H+M kObJ/vF28wGu2QdNh/XOMaMk5Gizd73k34Vt0RXlxbqMXJYTR9jkg49Wt7w3Qy55NS k8g3AGzqa5hbWtTJg9NELzOilUpWUfu69UQ0sLJvQYxR34IR3y2B/R4J3zii6Go918 N3FaUQLnBmmcsxcfnyh1flXkiFzi4z7m/x91ylGZ/vt10kBcYi+Dxx1WuiBEtN556Y STmc6mUFnts2SLjqV/6+RtPDNpBLx5rBHfWDtgmsvbtb6AuUpFas+7o+4RuvKSwelY 2SJmsjmoQczgg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1F8CC7115B; Fri, 20 Jun 2025 15:43:53 +0000 (UTC) From: Max Shevchenko via B4 Relay Date: Fri, 20 Jun 2025 18:40:47 +0300 Subject: [PATCH 08/11] ARM: mediatek: add MT6572 smp bring up code MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250620-mt6572-v1-8-e2d47820f042@proton.me> References: <20250620-mt6572-v1-0-e2d47820f042@proton.me> In-Reply-To: <20250620-mt6572-v1-0-e2d47820f042@proton.me> To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Thomas Gleixner , Daniel Lezcano , Wim Van Sebroeck , Guenter Roeck , Sean Wang , Russell King 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 X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1750434231; l=1857; i=wctrl@proton.me; s=20250603; h=from:subject:message-id; bh=T8VXT+/gkb+tLiu+YbfKUS6YHMSUIjr+TS94R7QyjLU=; b=gaVOQG/JP38ntFBWyX8QqYCp36/uojX4tLGegknkDl4SPhVEeGu2m0ySgQlrNY+MWL3qoU0m1 wx/W1N8/ohvDJCC7EeRtd8/ZTvbXyZ/pqKdOLHs2HlNyvUn32hpmEjs X-Developer-Key: i=wctrl@proton.me; a=ed25519; pk=JXUx3mL/OrnRvbK57HXgugBjEBKq4QgDKJqp7BALm74= X-Endpoint-Received: by B4 Relay for wctrl@proton.me/20250603 with auth_id=421 X-Original-From: Max Shevchenko X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250620_084355_253645_5EEF93AF X-CRM114-Status: GOOD ( 10.54 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: wctrl@proton.me Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: Max Shevchenko Add support for booting the secondary CPU on the MT6572 SoC. Signed-off-by: Max Shevchenko --- 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