ARM: mediatek: add MT7623a smp bringup code
authorSean Wang <sean.wang@mediatek.com>
Mon, 31 Jul 2017 07:36:38 +0000 (15:36 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 31 Jul 2017 11:31:48 +0000 (13:31 +0200)
Add support for booting secondary CPUs on MT7623a.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm/mach-mediatek/mediatek.c
arch/arm/mach-mediatek/platsmp.c

index c3cf215773b2de6228abbd27cc89ca234512f7f8..6910b4e0d913bc9f3e02a7f846c42d32676306bd 100644 (file)
@@ -30,6 +30,7 @@ static void __init mediatek_timer_init(void)
 
        if (of_machine_is_compatible("mediatek,mt6589") ||
            of_machine_is_compatible("mediatek,mt7623") ||
+           of_machine_is_compatible("mediatek,mt7623a") ||
            of_machine_is_compatible("mediatek,mt8135") ||
            of_machine_is_compatible("mediatek,mt8127")) {
                /* turn on GPT6 which ungates arch timer clocks */
@@ -49,6 +50,7 @@ static const char * const mediatek_board_dt_compat[] = {
        "mediatek,mt6589",
        "mediatek,mt6592",
        "mediatek,mt7623",
+       "mediatek,mt7623a",
        "mediatek,mt8127",
        "mediatek,mt8135",
        NULL,
index 726eb69bb655decfbd7a817bdddcb8946c761dc4..27d78c945cafc60c87b4e9913d749855f7bfdba1 100644 (file)
@@ -59,6 +59,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,mt6589", .data = &mtk_mt6589_boot },
        { .compatible   = "mediatek,mt7623", .data = &mtk_mt7623_boot },
+       { .compatible   = "mediatek,mt7623a", .data = &mtk_mt7623_boot },
 };
 
 static void __iomem *mtk_smp_base;