Skip to content

Commit 73bcce0

Browse files
committed
Merge tag 'mtk-arm32-for-v6.17' of https://git.kernel.org/pub/scm/linux/kernel/git/mediatek/linux into soc/arm
MediaTek mach ARM32 updates This adds support for the MediaTek MT6572 SoC, found in various old smartphones and tablets from various manufacturers. In particular, this adds a board_dt_compat entry for this SoC and its SMP bring up sequence to enable secondary cores. * tag 'mtk-arm32-for-v6.17' of https://git.kernel.org/pub/scm/linux/kernel/git/mediatek/linux: ARM: mediatek: add MT6572 smp bring up code ARM: mediatek: add board_dt_compat entry for the MT6572 SoC Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 5d3aeec + 20e672e commit 73bcce0

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-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/mediatek.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ static void __init mediatek_timer_init(void)
3838

3939
static const char * const mediatek_board_dt_compat[] = {
4040
"mediatek,mt2701",
41+
"mediatek,mt6572",
4142
"mediatek,mt6589",
4243
"mediatek,mt6592",
4344
"mediatek,mt7623",

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)