]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ARM: mediatek: add MT6572 smp bring up code
authorMax Shevchenko <wctrl@proton.me>
Wed, 2 Jul 2025 10:50:45 +0000 (13:50 +0300)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Fri, 11 Jul 2025 08:04:08 +0000 (10:04 +0200)
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>
Link: https://lore.kernel.org/r/20250702-mt6572-v4-8-bde75b7ed445@proton.me
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm/mach-mediatek/Kconfig
arch/arm/mach-mediatek/platsmp.c

index 35a3430c7942d897106bb32916df78347113798a..638eabad2dd37ee56244fc036cb76af135aee416 100644 (file)
@@ -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
index 16a4ee6c959050474c5535ac6a65d92b29482d53..bbd26d423bdef23629ec5ca9d9c61903748988b7 100644 (file)
@@ -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 },