| menuconfig ION |
| bool "Ion Memory Manager" |
| depends on HAVE_MEMBLOCK && HAS_DMA && MMU && ION_MSM |
| select GENERIC_ALLOCATOR |
| select DMA_SHARED_BUFFER |
| ---help--- |
| Chose this option to enable the ION Memory Manager, |
| used by Android to efficiently allocate buffers |
| from userspace that can be shared between drivers. |
| If you're not using Android its probably safe to |
| say N here. |
| |
| config ION_TEST |
| tristate "Ion Test Device" |
| depends on ION |
| help |
| Choose this option to create a device that can be used to test the |
| kernel and device side ION functions. |
| |
| config ION_DUMMY |
| bool "Dummy Ion driver" |
| depends on ION |
| help |
| Provides a dummy ION driver that registers the |
| /dev/ion device and some basic heaps. This can |
| be used for testing the ION infrastructure if |
| one doesn't have access to hardware drivers that |
| use ION. |
| |
| config ION_TEGRA |
| tristate "Ion for Tegra" |
| depends on ARCH_TEGRA && ION |
| help |
| Choose this option if you wish to use ion on an nVidia Tegra. |
| |
| config ION_HISI |
| tristate "Ion for Hisilicon" |
| depends on ARCH_HISI && ION |
| help |
| Choose this option if you wish to use ion on Hisilicon Platform. |
| |
| source "drivers/staging/android/ion/hisilicon/Kconfig" |
| |
| config ION_POOL_CACHE_POLICY |
| bool "Ion set page pool cache policy" |
| depends on ION && X86 |
| default y if X86 |
| help |
| Choose this option if need to explicity set cache policy of the |
| pages in the page pool. |
| |
| config ION_MSM |
| tristate "Ion for MSM" |
| depends on ARCH_QCOM && CMA |
| select MSM_SECURE_BUFFER |
| help |
| Choose this option if you wish to use ion on an MSM target. |
| Features include allocating heaps from device tree, buffer |
| cache maintenance, and a custom ioctl/compat_ioctl. Enable |
| utility functions used by ion_system_heap. |
| |
| config ALLOC_BUFFERS_IN_4K_CHUNKS |
| bool "Turns off allocation optimization and allocate only 4K pages" |
| depends on ARCH_QCOM && ION |
| help |
| Choose this option if you want ION to allocate buffers in |
| only 4KB chunks. |