[xen staging] arm: make it possible to disable the SMMU driver

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] arm: make it possible to disable the SMMU driver

patchbot
commit 277aa3523d9d71502e1bc6a82553e07013c2facb
Author:     Stefano Stabellini <[hidden email]>
AuthorDate: Tue Jul 31 08:19:01 2018 -0700
Commit:     Julien Grall <[hidden email]>
CommitDate: Thu Aug 2 12:24:27 2018 +0100

    arm: make it possible to disable the SMMU driver
   
    Introduce a Kconfig option for the ARM SMMUv1 and SMMUv2 driver.
   
    Signed-off-by: Stefano Stabellini <[hidden email]>
    Acked-by: Julien Grall <[hidden email]>
    Acked-by: Jan Beulich <[hidden email]>
    CC: [hidden email]
   
    ---
    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      | 12 ++++++++++++
 xen/drivers/passthrough/arm/Makefile |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/xen/drivers/passthrough/Kconfig b/xen/drivers/passthrough/Kconfig
index 8d90b67e2e..a3c06491be 100644
--- a/xen/drivers/passthrough/Kconfig
+++ b/xen/drivers/passthrough/Kconfig
@@ -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
diff --git a/xen/drivers/passthrough/arm/Makefile b/xen/drivers/passthrough/arm/Makefile
index f4cd26e15d..01564314ea 100644
--- a/xen/drivers/passthrough/arm/Makefile
+++ b/xen/drivers/passthrough/arm/Makefile
@@ -1,2 +1,2 @@
 obj-y += iommu.o
-obj-y += smmu.o
+obj-$(ARM_SMMU) += smmu.o
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog