iommu/mediatek: Use a u32 flags to describe different HW features
authorChao Hao <chao.hao@mediatek.com>
Fri, 3 Jul 2020 04:41:20 +0000 (12:41 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 10 Jul 2020 14:13:10 +0000 (16:13 +0200)
commit6b717796227ec8d4303adcdc574165d06e499f0f
treef8c09bf9f60b5b1795d34b1544bbc9e1e3504bf6
parent75eed350877c4cdae2bd9e8410c66292143bd410
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>
drivers/iommu/mtk_iommu.c
drivers/iommu/mtk_iommu.h