Skip to content

Commit 20e672e

Browse files
wctrlAngeloGioacchino Del Regno
authored andcommitted
ARM: mediatek: add MT6572 smp bring up code
Add support for booting the secondary CPU on the MT6572 SoC. Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Max Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
1 parent 8d26eff commit 20e672e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

arch/arm/mach-mediatek/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ config MACH_MT2701
1515
bool "MediaTek MT2701 SoCs support"
1616
default ARCH_MEDIATEK
1717

18+
config MACH_MT6572
19+
bool "MediaTek MT6572 SoCs support"
20+
default ARCH_MEDIATEK
21+
1822
config MACH_MT6589
1923
bool "MediaTek MT6589 SoCs support"
2024
default ARCH_MEDIATEK

arch/arm/mach-mediatek/platsmp.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ static const struct mtk_smp_boot_info mtk_mt8135_tz_boot = {
2929
{ 0x3f8, 0x3f8, 0x3f8 },
3030
};
3131

32+
static const struct mtk_smp_boot_info mtk_mt6572_boot = {
33+
0x10001400, 0x08,
34+
{ 0x534c4131 },
35+
{ 0x0c },
36+
};
37+
3238
static const struct mtk_smp_boot_info mtk_mt6589_boot = {
3339
0x10002000, 0x34,
3440
{ 0x534c4131, 0x4c415332, 0x41534c33 },
@@ -49,6 +55,7 @@ static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = {
4955
};
5056

5157
static const struct of_device_id mtk_smp_boot_infos[] __initconst = {
58+
{ .compatible = "mediatek,mt6572", .data = &mtk_mt6572_boot },
5259
{ .compatible = "mediatek,mt6589", .data = &mtk_mt6589_boot },
5360
{ .compatible = "mediatek,mt7623", .data = &mtk_mt7623_boot },
5461
{ .compatible = "mediatek,mt7629", .data = &mtk_mt7623_boot },

0 commit comments

Comments
 (0)