45e3380accbc0eb76b0f6c8c9c5ebc930609d61d
[firefly-linux-kernel-4.4.55.git] / drivers / staging / android / Kconfig
1 menu "Android"
2
3 config ANDROID
4         bool "Android Drivers"
5         default N
6         ---help---
7           Enable support for various drivers needed on the Android platform
8
9 if ANDROID
10
11 config ANDROID_BINDER_IPC
12         bool "Android Binder IPC Driver"
13         default n
14         ---help---
15           Binder is used in Android for both communication between processes,
16           and remote method invocation.
17
18           This means one Android process can call a method/routine in another
19           Android process, using Binder to identify, invoke and pass arguments
20           between said processes.
21
22 config ANDROID_BINDER_IPC_32BIT
23         bool "Use old 32-bit binder api"
24         depends on !64BIT
25         ---help---
26           The Binder API has been changed to support both 32 and 64bit
27           applications in a mixed environment.
28
29           Enable this to support an old 32-bit Android user-space (v4.4 and
30           earlier).
31
32           Note that enabling this will break newer Android user-space.
33
34 config ASHMEM
35         bool "Enable the Anonymous Shared Memory Subsystem"
36         default n
37         depends on SHMEM
38         ---help---
39           The ashmem subsystem is a new shared memory allocator, similar to
40           POSIX SHM but with different behavior and sporting a simpler
41           file-based API.
42
43           It is, in theory, a good memory allocator for low-memory devices,
44           because it can discard shared memory units when under memory pressure.
45
46 config ANDROID_LOGGER
47         tristate "Android log driver"
48         default n
49         ---help---
50           This adds support for system-wide logging using four log buffers.
51
52           These are:
53
54               1: main
55               2: events
56               3: radio
57               4: system
58
59           Log reading and writing is performed via normal Linux reads and
60           optimized writes. This optimization avoids logging having too
61           much overhead in the system.
62
63 config ANDROID_TIMED_OUTPUT
64         bool "Timed output class driver"
65         default y
66
67 config ANDROID_TIMED_GPIO
68         tristate "Android timed gpio driver"
69         depends on GPIOLIB && ANDROID_TIMED_OUTPUT
70         default n
71
72 config ANDROID_LOW_MEMORY_KILLER
73         bool "Android Low Memory Killer"
74         default N
75         ---help---
76           Registers processes to be killed when memory is low
77
78 config ANDROID_LOW_MEMORY_KILLER_AUTODETECT_OOM_ADJ_VALUES
79         bool "Android Low Memory Killer: detect oom_adj values"
80         depends on ANDROID_LOW_MEMORY_KILLER
81         default y
82         ---help---
83           Detect oom_adj values written to
84           /sys/module/lowmemorykiller/parameters/adj and convert them
85           to oom_score_adj values.
86
87 config ANDROID_INTF_ALARM_DEV
88         bool "Android alarm driver"
89         depends on RTC_CLASS
90         default n
91         ---help---
92           Provides non-wakeup and rtc backed wakeup alarms based on rtc or
93           elapsed realtime, and a non-wakeup alarm on the monotonic clock.
94           Also exports the alarm interface to user-space.
95
96 config SYNC
97         bool "Synchronization framework"
98         default n
99         select ANON_INODES
100         help
101           This option enables the framework for synchronization between multiple
102           drivers.  Sync implementations can take advantage of hardware
103           synchronization built into devices like GPUs.
104
105 config SW_SYNC
106         bool "Software synchronization objects"
107         default n
108         depends on SYNC
109         help
110           A sync object driver that uses a 32bit counter to coordinate
111           syncrhronization.  Useful when there is no hardware primitive backing
112           the synchronization.
113
114 config SW_SYNC_USER
115         bool "Userspace API for SW_SYNC"
116         default n
117         depends on SW_SYNC
118         help
119           Provides a user space API to the sw sync object.
120           *WARNING* improper use of this can result in deadlocking kernel
121           drivers from userspace.
122
123 source "drivers/staging/android/ion/Kconfig"
124
125 source "drivers/staging/android/fiq_debugger/Kconfig"
126
127 endif # if ANDROID
128
129 endmenu