summaryrefslogtreecommitdiffstats
path: root/include/soc/mediatek
diff options
context:
space:
mode:
authorYong Wu <yong.wu@mediatek.com>2019-08-24 05:02:07 +0200
committerJoerg Roedel <jroedel@suse.de>2019-08-30 15:57:27 +0200
commitec2da07ca1202552d87fb01b238d46642817da2b (patch)
tree8da2856e02687fc93c587f25077e811e5eaed32f /include/soc/mediatek
parentiommu/mediatek: Fix VLD_PA_RNG register backup when suspend (diff)
downloadlinux-ec2da07ca1202552d87fb01b238d46642817da2b.tar.xz
linux-ec2da07ca1202552d87fb01b238d46642817da2b.zip
memory: mtk-smi: Get rid of need_larbid
The "mediatek,larb-id" has already been parsed in MTK IOMMU driver. It's no need to parse it again in SMI driver. Only clean some codes. This patch is fit for all the current mt2701, mt2712, mt7623, mt8173 and mt8183. After this patch, the "mediatek,larb-id" only be needed for mt2712 which have 2 M4Us. In the other SoCs, we can get the larb-id from M4U in which the larbs in the "mediatek,larbs" always are ordered. Correspondingly, the larb_nr in the "struct mtk_smi_iommu" could also be deleted. CC: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Yong Wu <yong.wu@mediatek.com> Reviewed-by: Evan Green <evgreen@chromium.org> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/soc/mediatek')
-rw-r--r--include/soc/mediatek/smi.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/soc/mediatek/smi.h b/include/soc/mediatek/smi.h
index 79b74ced9d91..6f0b00cc73ea 100644
--- a/include/soc/mediatek/smi.h
+++ b/include/soc/mediatek/smi.h
@@ -21,7 +21,6 @@ struct mtk_smi_larb_iommu {
};
struct mtk_smi_iommu {
- unsigned int larb_nr;
struct mtk_smi_larb_iommu larb_imu[MTK_LARB_NR_MAX];
};