| # SPDX-License-Identifier: GPL-2.0-only |
| |
| if IOMMU_SUPPORT |
| |
| config DEVICE_MODULES_MTK_IOMMU |
| tristate "MediaTek IOMMU Support" |
| depends on ARM || ARM64 |
| depends on ARCH_MEDIATEK || COMPILE_TEST |
| select ARM_DMA_USE_IOMMU |
| select IOMMU_API |
| select IOMMU_IO_PGTABLE_ARMV7S |
| select MEMORY |
| select DEVICE_MODULES_MTK_SMI |
| help |
| Support for the M4U on certain Mediatek SOCs. M4U is MultiMedia |
| Memory Management Unit. This option enables remapping of DMA memory |
| accesses for the multimedia subsystem. |
| |
| If unsure, say N here. |
| |
| config MTK_IOMMU_MT8XXX |
| bool "MTK IOMMU MT8XXX Support" |
| depends on DEVICE_MODULES_MTK_IOMMU |
| help |
| Support for the M4U on certain Mediatek SoCs. It is based on the |
| upstream version and support setting flow for MT8XXX product line. |
| |
| if unsure, say N here. |
| |
| endif # IOMMU_SUPPORT |