summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/mtk_iommu.h
diff options
context:
space:
mode:
authorYong Wu <yong.wu@mediatek.com>2019-08-24 11:01:47 +0800
committerJoerg Roedel <jroedel@suse.de>2019-08-30 15:57:26 +0200
commitcecdce9d7eed33ce24da8dd4a2151b68d5c17865 (patch)
tree20d8644c6b4006151e55aad9526cc579939bcb0a /drivers/iommu/mtk_iommu.h
parent29746d012588f1de8517fc6921683c3844120989 (diff)
downloadlinux-stable-cecdce9d7eed33ce24da8dd4a2151b68d5c17865.tar.gz
linux-stable-cecdce9d7eed33ce24da8dd4a2151b68d5c17865.tar.bz2
linux-stable-cecdce9d7eed33ce24da8dd4a2151b68d5c17865.zip
iommu/mediatek: Use a struct as the platform data
Use a struct as the platform special data instead of the enumeration. This is a prepare patch for adding mt8183 iommu support. Signed-off-by: Yong Wu <yong.wu@mediatek.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Reviewed-by: Evan Green <evgreen@chromium.org> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/mtk_iommu.h')
-rw-r--r--drivers/iommu/mtk_iommu.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h
index 59337323db58..9725b083c62f 100644
--- a/drivers/iommu/mtk_iommu.h
+++ b/drivers/iommu/mtk_iommu.h
@@ -32,6 +32,10 @@ enum mtk_iommu_plat {
M4U_MT8173,
};
+struct mtk_iommu_plat_data {
+ enum mtk_iommu_plat m4u_plat;
+};
+
struct mtk_iommu_domain;
struct mtk_iommu_data {
@@ -48,7 +52,7 @@ struct mtk_iommu_data {
bool tlb_flush_active;
struct iommu_device iommu;
- enum mtk_iommu_plat m4u_plat;
+ const struct mtk_iommu_plat_data *plat_data;
struct list_head list;
};