GNU Linux-libre 4.9.333-gnu1
[releases.git] / drivers / staging / android / ion / Kconfig
1 menuconfig ION
2         bool "Ion Memory Manager"
3         depends on HAVE_MEMBLOCK && HAS_DMA && MMU
4         select GENERIC_ALLOCATOR
5         select DMA_SHARED_BUFFER
6         ---help---
7           Chose this option to enable the ION Memory Manager,
8           used by Android to efficiently allocate buffers
9           from userspace that can be shared between drivers.
10           If you're not using Android its probably safe to
11           say N here.
12
13 config ION_TEST
14         tristate "Ion Test Device"
15         depends on ION
16         help
17           Choose this option to create a device that can be used to test the
18           kernel and device side ION functions.
19
20 config ION_DUMMY
21         bool "Dummy Ion driver"
22         depends on ION
23         help
24           Provides a dummy ION driver that registers the
25           /dev/ion device and some basic heaps. This can
26           be used for testing the ION infrastructure if
27           one doesn't have access to hardware drivers that
28           use ION.
29
30 config ION_TEGRA
31         tristate "Ion for Tegra"
32         depends on ARCH_TEGRA && ION
33         help
34           Choose this option if you wish to use ion on an nVidia Tegra.
35
36 config ION_HISI
37         tristate "Ion for Hisilicon"
38         depends on ARCH_HISI && ION
39         select ION_OF
40         help
41           Choose this option if you wish to use ion on Hisilicon Platform.
42
43 source "drivers/staging/android/ion/hisilicon/Kconfig"
44
45 config ION_OF
46         bool "Devicetree support for Ion"
47         depends on ION && OF_ADDRESS
48         help
49           Provides base support for defining Ion heaps in devicetree
50           and setting them up. Also includes functions for platforms
51           to parse the devicetree and expand for their own custom
52           extensions
53
54           If using Ion and devicetree, you should say Y here