iommu/mediatek: Add bclk can be supported optionally
authorYong Wu <yong.wu@mediatek.com>
Sat, 24 Aug 2019 03:01:56 +0000 (11:01 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 30 Aug 2019 13:57:26 +0000 (15:57 +0200)
commit2aa4c2597cd67139697eb3095d5b6d61074c7ffc
tree806e28fd73772c5eafc004b5d1c84405e7c91193
parentb4dad40e4f35bbf2393f35f4492acf799eb8136d
iommu/mediatek: Add bclk can be supported optionally

In some SoCs, M4U doesn't have its "bclk", it will use the EMI
clock instead which has always been enabled when entering kernel.

Currently mt2712 and mt8173 have this bclk while mt8183 doesn't.

This also is a preparing patch for mt8183.

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>
drivers/iommu/mtk_iommu.c
drivers/iommu/mtk_iommu.h