]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/mediatek: Update oas for v7s
authorYong Wu <yong.wu@mediatek.com>
Mon, 11 Jan 2021 11:18:56 +0000 (19:18 +0800)
committerWill Deacon <will@kernel.org>
Mon, 1 Feb 2021 11:31:17 +0000 (11:31 +0000)
commit2a9ab0bb180a776d15dc05f56cc173e7916ccd63
tree2eddafa887ade378066a10bca3aca028f0f6e25a
parenta418f1bc3024294bf543aa9bd6a3ee32644f6d2b
iommu/mediatek: Update oas for v7s

This patch only updates oas in different SoCs.

If the SoC supports 4GB-mode and current dram size is 4GB, the oas is 33.
otherwise, it's still 32. In the lastest SoC, the oas is 35bits.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Link: https://lore.kernel.org/r/20210111111914.22211-16-yong.wu@mediatek.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/mtk_iommu.c