]> Git Repo - linux.git/commitdiff
memory: mtk-smi: Add basic support for MT6779
authorMing-Fan Chen <[email protected]>
Wed, 8 Jan 2020 06:41:30 +0000 (14:41 +0800)
committerJoerg Roedel <[email protected]>
Mon, 13 Jul 2020 13:28:56 +0000 (15:28 +0200)
Add smi-larb and smi-common nodes and config_port for MT6779.

changelog since v2:
Split basic nodes and config_port support from initial golden setting patch

Signed-off-by: Ming-Fan Chen <[email protected]>
Reviewed-by: Matthias Brugger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
drivers/memory/mtk-smi.c

index a113e811faabea34387d0d15ac1e4b74315ec29c..109c7e51d551348d5c691168b9884f47fd6c3e55 100644 (file)
@@ -239,6 +239,13 @@ static const struct mtk_smi_larb_gen mtk_smi_larb_mt2712 = {
        .larb_direct_to_common_mask = BIT(8) | BIT(9),      /* bdpsys */
 };
 
+static const struct mtk_smi_larb_gen mtk_smi_larb_mt6779 = {
+       .config_port  = mtk_smi_larb_config_port_gen2_general,
+       .larb_direct_to_common_mask =
+               BIT(4) | BIT(6) | BIT(11) | BIT(12) | BIT(13),
+               /* DUMMY | IPU0 | IPU1 | CCU | MDLA */
+};
+
 static const struct mtk_smi_larb_gen mtk_smi_larb_mt8183 = {
        .has_gals                   = true,
        .config_port                = mtk_smi_larb_config_port_gen2_general,
@@ -259,6 +266,10 @@ static const struct of_device_id mtk_smi_larb_of_ids[] = {
                .compatible = "mediatek,mt2712-smi-larb",
                .data = &mtk_smi_larb_mt2712
        },
+       {
+               .compatible = "mediatek,mt6779-smi-larb",
+               .data = &mtk_smi_larb_mt6779
+       },
        {
                .compatible = "mediatek,mt8183-smi-larb",
                .data = &mtk_smi_larb_mt8183
@@ -388,6 +399,13 @@ static const struct mtk_smi_common_plat mtk_smi_common_gen2 = {
        .gen = MTK_SMI_GEN2,
 };
 
+static const struct mtk_smi_common_plat mtk_smi_common_mt6779 = {
+       .gen            = MTK_SMI_GEN2,
+       .has_gals       = true,
+       .bus_sel        = F_MMU1_LARB(1) | F_MMU1_LARB(2) | F_MMU1_LARB(4) |
+                         F_MMU1_LARB(5) | F_MMU1_LARB(6) | F_MMU1_LARB(7),
+};
+
 static const struct mtk_smi_common_plat mtk_smi_common_mt8183 = {
        .gen      = MTK_SMI_GEN2,
        .has_gals = true,
@@ -408,6 +426,10 @@ static const struct of_device_id mtk_smi_common_of_ids[] = {
                .compatible = "mediatek,mt2712-smi-common",
                .data = &mtk_smi_common_gen2,
        },
+       {
+               .compatible = "mediatek,mt6779-smi-common",
+               .data = &mtk_smi_common_mt6779,
+       },
        {
                .compatible = "mediatek,mt8183-smi-common",
                .data = &mtk_smi_common_mt8183,
This page took 0.051579 seconds and 4 git commands to generate.