Browse Source

Add support for Intel IOMMU

Signed-off-by: Oliver Schib <lich000king@yahoo.de>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Oliver Schib 8 years ago
parent
commit
d5381fb96d

+ 3 - 0
target/config/Config.in.hardware

@@ -113,3 +113,6 @@ config ADK_TARGET_WITH_MMU
 
 config ADK_TARGET_WITHOUT_MMU
 	bool
+
+config ADK_TARGET_WITH_IOMMU
+	bool

+ 3 - 0
target/linux/config/Config.in.bus

@@ -11,3 +11,6 @@ config ADK_KERNEL_PCI
 
 config ADK_KERNEL_PCI_QUIRKS
 	bool
+
+config ADK_KERNEL_PCI_MSI
+	bool

+ 22 - 0
target/linux/config/Config.in.misc

@@ -41,6 +41,18 @@ config ADK_KERNEL_IMX_WEIM
 	default y if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
 	default n
 
+config ADK_KERNEL_INTEL_IOMMU
+        bool
+
+config ADK_KERNEL_IOMMU_API
+        bool
+
+config ADK_KERNEL_IOMMU_IOVA
+        bool
+
+config ADK_KERNEL_DMAR_TABLE
+        bool
+
 menu "Miscellaneous devices support"
 
 source "target/linux/config/Config.in.rtc"
@@ -108,5 +120,15 @@ config ADK_KERNEL_EEPROM_93CX6
 	tristate "93cx6 eeprom support"
 	depends on ADK_KERNEL_MAC80211
 	select ADK_KERNEL_MISC_DEVICES
+
+config ADK_KERNEL_IOMMU_SUPPORT
+	bool "IOMMU support for Intel"
+	select ADK_KERNEL_PCI_MSI
+	select ADK_KERNEL_INTEL_IOMMU
+	select ADK_KERNEL_IOMMU_API
+	select ADK_KERNEL_IOMMU_IOVA
+	select ADK_KERNEL_DMAR_TABLE
+	depends on ADK_TARGET_WITH_IOMMU
+	default y
  
 endmenu

+ 1 - 0
target/x86/systems/generic-x86

@@ -13,6 +13,7 @@ config ADK_TARGET_SYSTEM_GENERIC_X86
 	select ADK_TARGET_WITH_BLOCK
 	select ADK_TARGET_WITH_PATA
 	select ADK_TARGET_WITH_SATA
+	select ADK_TARGET_WITH_IOMMU
 	select ADK_PACKAGE_GRUB
 	help
 	  Example config for generic i686 based PC.

+ 1 - 0
target/x86_64/systems/generic-x86_64

@@ -13,6 +13,7 @@ config ADK_TARGET_SYSTEM_GENERIC_X86_64
 	select ADK_TARGET_WITH_BLOCK
 	select ADK_TARGET_WITH_PATA
 	select ADK_TARGET_WITH_SATA
+	select ADK_TARGET_WITH_IOMMU
 	select ADK_PACKAGE_GRUB
 	help
 	  Example config for generic x86_64 based PC.