1# SPDX-License-Identifier: GPL-2.0
2menuconfig ION
3	bool "Ion Memory Manager"
4	depends on HAS_DMA && MMU
5	select GENERIC_ALLOCATOR
6	select DMA_SHARED_BUFFER
7	help
8	  Choose this option to enable the ION Memory Manager,
9	  used by Android to efficiently allocate buffers
10	  from userspace that can be shared between drivers.
11	  If you're not using Android its probably safe to
12	  say N here.
13
14config ION_SYSTEM_HEAP
15	bool "Ion system heap"
16	depends on ION
17	help
18	  Choose this option to enable the Ion system heap. The system heap
19	  is backed by pages from the buddy allocator. If in doubt, say Y.
20
21config ION_CMA_HEAP
22	bool "Ion CMA heap support"
23	depends on ION && DMA_CMA
24	help
25	  Choose this option to enable CMA heaps with Ion. This heap is backed
26	  by the Contiguous Memory Allocator (CMA). If your system has these
27	  regions, you should say Y here.
28