Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 1 | menu "Android" |
| 2 | |
| 3 | config ANDROID |
| 4 | bool "Android Drivers" |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 5 | ---help--- |
| 6 | Enable support for various drivers needed on the Android platform |
| 7 | |
| 8 | if ANDROID |
| 9 | |
| 10 | config ANDROID_BINDER_IPC |
| 11 | bool "Android Binder IPC Driver" |
Chen Gang | 31507f7 | 2013-09-02 17:11:57 +0800 | [diff] [blame] | 12 | depends on MMU |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 13 | default n |
Cruz Julian Bishop | d7f9729 | 2012-12-22 09:00:46 +1000 | [diff] [blame] | 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. |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 21 | |
Arve Hjønnevåg | da49889 | 2014-02-21 14:40:26 -0800 | [diff] [blame] | 22 | config ANDROID_BINDER_IPC_32BIT |
John Stultz | d0bdff0 | 2014-02-26 14:29:07 -0800 | [diff] [blame] | 23 | bool |
John Stultz | 1acec6a | 2014-02-21 14:40:27 -0800 | [diff] [blame] | 24 | depends on !64BIT && ANDROID_BINDER_IPC |
| 25 | default y |
Arve Hjønnevåg | da49889 | 2014-02-21 14:40:26 -0800 | [diff] [blame] | 26 | ---help--- |
| 27 | The Binder API has been changed to support both 32 and 64bit |
| 28 | applications in a mixed environment. |
| 29 | |
| 30 | Enable this to support an old 32-bit Android user-space (v4.4 and |
| 31 | earlier). |
| 32 | |
| 33 | Note that enabling this will break newer Android user-space. |
| 34 | |
Robert Love | 11980c2 | 2011-12-20 16:49:48 -0800 | [diff] [blame] | 35 | config ASHMEM |
| 36 | bool "Enable the Anonymous Shared Memory Subsystem" |
| 37 | default n |
Paul Bolle | 2c0fb1c | 2013-03-14 10:41:39 +0100 | [diff] [blame] | 38 | depends on SHMEM |
Cruz Julian Bishop | d7f9729 | 2012-12-22 09:00:46 +1000 | [diff] [blame] | 39 | ---help--- |
Robert Love | 11980c2 | 2011-12-20 16:49:48 -0800 | [diff] [blame] | 40 | The ashmem subsystem is a new shared memory allocator, similar to |
| 41 | POSIX SHM but with different behavior and sporting a simpler |
| 42 | file-based API. |
| 43 | |
Cruz Julian Bishop | d7f9729 | 2012-12-22 09:00:46 +1000 | [diff] [blame] | 44 | It is, in theory, a good memory allocator for low-memory devices, |
| 45 | because it can discard shared memory units when under memory pressure. |
| 46 | |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 47 | config ANDROID_LOGGER |
| 48 | tristate "Android log driver" |
| 49 | default n |
Cruz Julian Bishop | d7f9729 | 2012-12-22 09:00:46 +1000 | [diff] [blame] | 50 | ---help--- |
| 51 | This adds support for system-wide logging using four log buffers. |
| 52 | |
| 53 | These are: |
| 54 | |
| 55 | 1: main |
| 56 | 2: events |
| 57 | 3: radio |
| 58 | 4: system |
| 59 | |
| 60 | Log reading and writing is performed via normal Linux reads and |
| 61 | optimized writes. This optimization avoids logging having too |
| 62 | much overhead in the system. |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 63 | |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 64 | config ANDROID_TIMED_OUTPUT |
| 65 | bool "Timed output class driver" |
| 66 | default y |
| 67 | |
| 68 | config ANDROID_TIMED_GPIO |
| 69 | tristate "Android timed gpio driver" |
Alexandre Courbot | 76ec9d1 | 2013-03-28 04:34:56 -0700 | [diff] [blame] | 70 | depends on GPIOLIB && ANDROID_TIMED_OUTPUT |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 71 | default n |
| 72 | |
| 73 | config ANDROID_LOW_MEMORY_KILLER |
| 74 | bool "Android Low Memory Killer" |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 75 | ---help--- |
Cruz Julian Bishop | d7f9729 | 2012-12-22 09:00:46 +1000 | [diff] [blame] | 76 | Registers processes to be killed when memory is low |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 77 | |
John Stultz | ef2353d | 2012-04-20 12:31:47 -0700 | [diff] [blame] | 78 | config ANDROID_INTF_ALARM_DEV |
John Stultz | fe8d272 | 2012-02-09 14:24:36 -0800 | [diff] [blame] | 79 | bool "Android alarm driver" |
| 80 | depends on RTC_CLASS |
Praneeth Kumar Bajjuri | 58a38ff | 2012-02-09 14:24:37 -0800 | [diff] [blame] | 81 | default n |
Cruz Julian Bishop | d7f9729 | 2012-12-22 09:00:46 +1000 | [diff] [blame] | 82 | ---help--- |
John Stultz | fe8d272 | 2012-02-09 14:24:36 -0800 | [diff] [blame] | 83 | Provides non-wakeup and rtc backed wakeup alarms based on rtc or |
| 84 | elapsed realtime, and a non-wakeup alarm on the monotonic clock. |
John Stultz | ef2353d | 2012-04-20 12:31:47 -0700 | [diff] [blame] | 85 | Also exports the alarm interface to user-space. |
John Stultz | fe8d272 | 2012-02-09 14:24:36 -0800 | [diff] [blame] | 86 | |
Erik Gilling | 7ad530b | 2013-02-28 16:42:57 -0800 | [diff] [blame] | 87 | config SYNC |
| 88 | bool "Synchronization framework" |
| 89 | default n |
| 90 | select ANON_INODES |
Maarten Lankhorst | 0f0d840 | 2014-07-01 12:57:31 +0200 | [diff] [blame^] | 91 | select DMA_SHARED_BUFFER |
Cruz Julian Bishop | fb51b50 | 2013-09-03 22:05:05 +1000 | [diff] [blame] | 92 | ---help--- |
Erik Gilling | 7ad530b | 2013-02-28 16:42:57 -0800 | [diff] [blame] | 93 | This option enables the framework for synchronization between multiple |
| 94 | drivers. Sync implementations can take advantage of hardware |
| 95 | synchronization built into devices like GPUs. |
| 96 | |
Erik Gilling | 9d1906e | 2013-02-28 16:42:58 -0800 | [diff] [blame] | 97 | config SW_SYNC |
| 98 | bool "Software synchronization objects" |
| 99 | default n |
| 100 | depends on SYNC |
Cruz Julian Bishop | fb51b50 | 2013-09-03 22:05:05 +1000 | [diff] [blame] | 101 | ---help--- |
Erik Gilling | 9d1906e | 2013-02-28 16:42:58 -0800 | [diff] [blame] | 102 | A sync object driver that uses a 32bit counter to coordinate |
| 103 | syncrhronization. Useful when there is no hardware primitive backing |
| 104 | the synchronization. |
| 105 | |
| 106 | config SW_SYNC_USER |
| 107 | bool "Userspace API for SW_SYNC" |
| 108 | default n |
| 109 | depends on SW_SYNC |
Cruz Julian Bishop | fb51b50 | 2013-09-03 22:05:05 +1000 | [diff] [blame] | 110 | ---help--- |
Erik Gilling | 9d1906e | 2013-02-28 16:42:58 -0800 | [diff] [blame] | 111 | Provides a user space API to the sw sync object. |
| 112 | *WARNING* improper use of this can result in deadlocking kernel |
| 113 | drivers from userspace. |
| 114 | |
Rebecca Schultz Zavin | c30707b | 2013-12-13 19:38:38 -0800 | [diff] [blame] | 115 | source "drivers/staging/android/ion/Kconfig" |
| 116 | |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 117 | endif # if ANDROID |
| 118 | |
| 119 | endmenu |