Skip to content

Commit fc492f3

Browse files
Ming-Fan Chenjoergroedel
authored andcommitted
memory: mtk-smi: Add basic support for MT6779
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]>
1 parent d724794 commit fc492f3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

drivers/memory/mtk-smi.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ static const struct mtk_smi_larb_gen mtk_smi_larb_mt2712 = {
239239
.larb_direct_to_common_mask = BIT(8) | BIT(9), /* bdpsys */
240240
};
241241

242+
static const struct mtk_smi_larb_gen mtk_smi_larb_mt6779 = {
243+
.config_port = mtk_smi_larb_config_port_gen2_general,
244+
.larb_direct_to_common_mask =
245+
BIT(4) | BIT(6) | BIT(11) | BIT(12) | BIT(13),
246+
/* DUMMY | IPU0 | IPU1 | CCU | MDLA */
247+
};
248+
242249
static const struct mtk_smi_larb_gen mtk_smi_larb_mt8183 = {
243250
.has_gals = true,
244251
.config_port = mtk_smi_larb_config_port_gen2_general,
@@ -259,6 +266,10 @@ static const struct of_device_id mtk_smi_larb_of_ids[] = {
259266
.compatible = "mediatek,mt2712-smi-larb",
260267
.data = &mtk_smi_larb_mt2712
261268
},
269+
{
270+
.compatible = "mediatek,mt6779-smi-larb",
271+
.data = &mtk_smi_larb_mt6779
272+
},
262273
{
263274
.compatible = "mediatek,mt8183-smi-larb",
264275
.data = &mtk_smi_larb_mt8183
@@ -388,6 +399,13 @@ static const struct mtk_smi_common_plat mtk_smi_common_gen2 = {
388399
.gen = MTK_SMI_GEN2,
389400
};
390401

402+
static const struct mtk_smi_common_plat mtk_smi_common_mt6779 = {
403+
.gen = MTK_SMI_GEN2,
404+
.has_gals = true,
405+
.bus_sel = F_MMU1_LARB(1) | F_MMU1_LARB(2) | F_MMU1_LARB(4) |
406+
F_MMU1_LARB(5) | F_MMU1_LARB(6) | F_MMU1_LARB(7),
407+
};
408+
391409
static const struct mtk_smi_common_plat mtk_smi_common_mt8183 = {
392410
.gen = MTK_SMI_GEN2,
393411
.has_gals = true,
@@ -408,6 +426,10 @@ static const struct of_device_id mtk_smi_common_of_ids[] = {
408426
.compatible = "mediatek,mt2712-smi-common",
409427
.data = &mtk_smi_common_gen2,
410428
},
429+
{
430+
.compatible = "mediatek,mt6779-smi-common",
431+
.data = &mtk_smi_common_mt6779,
432+
},
411433
{
412434
.compatible = "mediatek,mt8183-smi-common",
413435
.data = &mtk_smi_common_mt8183,

0 commit comments

Comments
 (0)