From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABF232BF017; Thu, 26 Jun 2025 08:53:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750928038; cv=none; b=rZNNbJmGfwnMUVux9Ydy6ylhAYKvVrdEA3DZyTGtnR7Nu6FLq015Kz+PPoZJiEwZO5/msJdfAbyBuxCzuEBUJX+NVfHvQQS9kV+fCfckFQY/90Zn2U2khOX+Vmxh7Qbh/gexJcD+FHW+nWPu7Af94jZYQ0TVkz/UDqjBNQxVObI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750928038; c=relaxed/simple; bh=yl69ujOKudAoxb7BsY6W6/j+nW0EaIsBsX9NLiSjkC4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WkG58+++n+n+L1IBGJ/aQ7z1lXB5jAAdi0mkQvpTfpp4WE4XM0M0C8LiBn1aLnJQKFkJJTwZDzN4xLycouuTTBKsCW2hr5HhQ6VxuDz+dTnsEjKRyPjd1qbBEwvhPn9/DJ325duiEPSdUR9xonk/ikivsgC8NlxoVk+hjmIgDbM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=j6AJkPh6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="j6AJkPh6" Received: by smtp.kernel.org (Postfix) with ESMTPS id 5576AC4CEF5; Thu, 26 Jun 2025 08:53:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1750928038; bh=yl69ujOKudAoxb7BsY6W6/j+nW0EaIsBsX9NLiSjkC4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=j6AJkPh6jiRpTTLHkdrcjcpUCnHAnerHejz5HU7KgF+u0IV/UlQXrGOm1WW/2IRnG wipTvep0j8F8O+nt0JzCLtacMLN3CgvWB28TfGhJTld7eiDSTKG532Z8ZA+a1+svft WJs5L4Atxy1wizvhoZk1RVDdpvK4di4qBKfBI5KpsBsDEIUODyWH++96KHn7C1AtEf wu9Sb6TvOFfQnekZjEWEOcznqxmukYdmZ9tI2cPUAHggeWru4A2frs+E8xUbjgvPpr 17A1VqqYLCsylEHc/Q8zq3Ei0+/BR9lPuq80wgWp/EuXj+YrRXE18XwiSS2lNv0QG/ e4TqG3es1YiJQ== 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 4B57BC7EE39; Thu, 26 Jun 2025 08:53:58 +0000 (UTC) From: Max Shevchenko via B4 Relay Date: Thu, 26 Jun 2025 11:54:01 +0300 Subject: [PATCH v2 08/11] ARM: mediatek: add MT6572 smp bring up code Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250626-mt6572-v2-8-f7f842196986@proton.me> References: <20250626-mt6572-v2-0-f7f842196986@proton.me> In-Reply-To: <20250626-mt6572-v2-0-f7f842196986@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=1750928035; l=1940; i=wctrl@proton.me; s=20250603; h=from:subject:message-id; bh=PSE9MkQgZmOqgXgkbRv8mf/3whMKOtrk3zwWFrj3c7Q=; b=EtH/D6zXOkpxM6VpdFFNzxmHLCMnLjl/J04meIJmKoli+ginyiEvsHWGUM56wkjsplZXKRKY1 ybaL0xOhzmzCYRKhO+2cnmkIiP2CB0TnxqD0q7lxRA3EGMAxlbtMbnY 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 Reply-To: wctrl@proton.me From: Max Shevchenko Add support for booting the secondary CPU on the MT6572 SoC. Reviewed-by: AngeloGioacchino Del Regno 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