]> xenbits.xensource.com Git - xen.git/commitdiff
arm: make it possible to disable the SMMU driver
authorStefano Stabellini <sstabellini@kernel.org>
Tue, 31 Jul 2018 15:19:01 +0000 (08:19 -0700)
committerJulien Grall <julien.grall@arm.com>
Thu, 2 Aug 2018 11:24:27 +0000 (12:24 +0100)
Introduce a Kconfig option for the ARM SMMUv1 and SMMUv2 driver.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Julien Grall <julien.grall@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
CC: jbeulich@suse.com
---
Changes in v3:
- rename SMMUv2 to ARM_SMMU
- improve help message
- use if ARM

Changes in v2:
- rename HAS_SMMUv2 to SMMUv2
- move SMMUv2 to xen/drivers/passthrough/Kconfig

xen/drivers/passthrough/Kconfig
xen/drivers/passthrough/arm/Makefile

index 8d90b67e2e0987ea70b321d53bd6503671f6b6c4..a3c06491be42e05186a8e5f9584c9429ffafd494 100644 (file)
@@ -1,3 +1,15 @@
 
 config HAS_PASSTHROUGH
        bool
+
+if ARM
+config ARM_SMMU
+       bool "ARM SMMUv1 and v2 driver"
+       default y
+       ---help---
+         Support for implementations of the ARM System MMU architecture
+         versions 1 and 2.
+
+         Say Y here if your SoC includes an IOMMU device implementing the
+         ARM SMMU architecture.
+endif
index f4cd26e15d5e3f95e594977b917669bf0cf8b59e..01564314eaf71c5085b521ec225a9771ce9c9c7f 100644 (file)
@@ -1,2 +1,2 @@
 obj-y += iommu.o
-obj-y += smmu.o
+obj-$(ARM_SMMU) += smmu.o