Skip to content

Commit 69bda55

Browse files
committed
Merge tag 'memory-controller-drv-6.4-2' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl into soc/drivers
Memory controller drivers for v6.4, part two 1. Tegra210 EMC: correct reading of MR18 register. 2. MediaTek SMI: add support for MT8365. * tag 'memory-controller-drv-6.4-2' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl: memory: mtk-smi: mt8365: Add SMI Support dt-bindings: memory-controllers: mediatek,smi-larb: add mt8365 dt-bindings: memory-controllers: mediatek,smi-common: add mt8365 memory: tegra: read values from correct device Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 4f2f299 + 3ec0e1e commit 69bda55

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ properties:
4343
- mediatek,mt8195-smi-common-vdo
4444
- mediatek,mt8195-smi-common-vpp
4545
- mediatek,mt8195-smi-sub-common
46+
- mediatek,mt8365-smi-common
4647

4748
- description: for mt7623
4849
items:
@@ -133,6 +134,7 @@ allOf:
133134
- mediatek,mt8192-smi-common
134135
- mediatek,mt8195-smi-common-vdo
135136
- mediatek,mt8195-smi-common-vpp
137+
- mediatek,mt8365-smi-common
136138

137139
then:
138140
properties:

Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ properties:
3434
- const: mediatek,mt7623-smi-larb
3535
- const: mediatek,mt2701-smi-larb
3636

37+
- items:
38+
- const: mediatek,mt8365-smi-larb
39+
- const: mediatek,mt8186-smi-larb
40+
3741
reg:
3842
maxItems: 1
3943

drivers/memory/mtk-smi.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,11 @@ static const struct mtk_smi_common_plat mtk_smi_sub_common_mt8195 = {
713713
.has_gals = true,
714714
};
715715

716+
static const struct mtk_smi_common_plat mtk_smi_common_mt8365 = {
717+
.type = MTK_SMI_GEN2,
718+
.bus_sel = F_MMU1_LARB(2) | F_MMU1_LARB(4),
719+
};
720+
716721
static const struct of_device_id mtk_smi_common_of_ids[] = {
717722
{.compatible = "mediatek,mt2701-smi-common", .data = &mtk_smi_common_gen1},
718723
{.compatible = "mediatek,mt2712-smi-common", .data = &mtk_smi_common_gen2},
@@ -728,6 +733,7 @@ static const struct of_device_id mtk_smi_common_of_ids[] = {
728733
{.compatible = "mediatek,mt8195-smi-common-vdo", .data = &mtk_smi_common_mt8195_vdo},
729734
{.compatible = "mediatek,mt8195-smi-common-vpp", .data = &mtk_smi_common_mt8195_vpp},
730735
{.compatible = "mediatek,mt8195-smi-sub-common", .data = &mtk_smi_sub_common_mt8195},
736+
{.compatible = "mediatek,mt8365-smi-common", .data = &mtk_smi_common_mt8365},
731737
{}
732738
};
733739

drivers/memory/tegra/tegra210-emc-cc-r21021.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ static u32 update_clock_tree_delay(struct tegra210_emc *emc, int type)
277277
/*
278278
* Dev1 LSB.
279279
*/
280-
value = tegra210_emc_mrr_read(emc, 2, 18);
280+
value = tegra210_emc_mrr_read(emc, 1, 18);
281281

282282
for (i = 0; i < emc->num_channels; i++) {
283283
temp[i][0] |= (value & 0x00ff) >> 0;

0 commit comments

Comments
 (0)