memory: mtk-smi: Add enable IOMMU SMC command for MM master
authorChengci.Xu <chengci.xu@mediatek.com>
Wed, 17 Aug 2022 12:46:07 +0000 (20:46 +0800)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 30 Aug 2022 17:54:05 +0000 (20:54 +0300)
commit4e508b259ed02f5fa608cdd83b817a7f49c22271
treefe616ab4fcbaa42cd115da667be36d1e8e39582b
parent8c1561edc0692fa8e321daf2777c3c32454b5748
memory: mtk-smi: Add enable IOMMU SMC command for MM master

For concerns about security, the register to enable/disable IOMMU of
SMI LARB should only be configured in secure world. Thus, we add some
SMC command for multimedia master to enable/disable MM IOMMU in ATF by
setting the register of SMI LARB. This function is prepared for MT8188.

Signed-off-by: Chengci.Xu <chengci.xu@mediatek.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220817124608.10062-4-chengci.xu@mediatek.com
drivers/memory/mtk-smi.c
include/linux/soc/mediatek/mtk_sip_svc.h
include/soc/mediatek/smi.h