mm: generalize ZONE_[DMA|DMA32]
[linux-2.6-microblaze.git] / mm / Kconfig
index a0b2c37..a02498c 100644 (file)
@@ -761,6 +761,18 @@ config ARCH_HAS_CACHE_LINE_SIZE
 config ARCH_HAS_PTE_DEVMAP
        bool
 
+config ARCH_HAS_ZONE_DMA_SET
+       bool
+
+config ZONE_DMA
+       bool "Support DMA zone" if ARCH_HAS_ZONE_DMA_SET
+       default y if ARM64 || X86
+
+config ZONE_DMA32
+       bool "Support DMA32 zone" if ARCH_HAS_ZONE_DMA_SET
+       depends on !X86_32
+       default y if ARM64
+
 config ZONE_DEVICE
        bool "Device memory (pmem, HMM, etc...) hotplug support"
        depends on MEMORY_HOTPLUG