diff options
author | Chao Hao <chao.hao@mediatek.com> | 2020-07-03 06:41:20 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2020-07-10 16:13:10 +0200 |
commit | 6b717796227ec8d4303adcdc574165d06e499f0f (patch) | |
tree | f8c09bf9f60b5b1795d34b1544bbc9e1e3504bf6 /drivers/iommu/mtk_iommu.h | |
parent | iommu/mediatek: Rename the register STANDARD_AXI_MODE(0x48) to MISC_CTRL (diff) | |
download | linux-6b717796227ec8d4303adcdc574165d06e499f0f.tar.xz linux-6b717796227ec8d4303adcdc574165d06e499f0f.zip |
iommu/mediatek: Use a u32 flags to describe different HW features
Given the fact that we are adding more and more plat_data bool values,
it would make sense to use a u32 flags register and add the appropriate
macro definitions to set and check for a flag present.
No functional change.
Suggested-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Chao Hao <chao.hao@mediatek.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Yong Wu <yong.wu@mediatek.com>
Link: https://lore.kernel.org/r/20200703044127.27438-4-chao.hao@mediatek.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/mtk_iommu.h')
-rw-r--r-- | drivers/iommu/mtk_iommu.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h index 7212e6fcf982..5225a9170aaa 100644 --- a/drivers/iommu/mtk_iommu.h +++ b/drivers/iommu/mtk_iommu.h @@ -39,12 +39,7 @@ enum mtk_iommu_plat { struct mtk_iommu_plat_data { enum mtk_iommu_plat m4u_plat; - bool has_4gb_mode; - - /* HW will use the EMI clock if there isn't the "bclk". */ - bool has_bclk; - bool has_vld_pa_rng; - bool reset_axi; + u32 flags; unsigned char larbid_remap[MTK_LARB_NR_MAX]; }; |