Kconfig revision fe8d2727ffa65bcb516b4947bec1c546841e7d25
1menu "Android"
2
3config ANDROID
4	bool "Android Drivers"
5	default N
6	---help---
7	  Enable support for various drivers needed on the Android platform
8
9if ANDROID
10
11config ANDROID_BINDER_IPC
12	bool "Android Binder IPC Driver"
13	default n
14
15config ASHMEM
16	bool "Enable the Anonymous Shared Memory Subsystem"
17	default n
18	depends on SHMEM || TINY_SHMEM
19	help
20	  The ashmem subsystem is a new shared memory allocator, similar to
21	  POSIX SHM but with different behavior and sporting a simpler
22	  file-based API.
23
24config ANDROID_LOGGER
25	tristate "Android log driver"
26	default n
27
28config ANDROID_RAM_CONSOLE
29	bool "Android RAM buffer console"
30	default n
31
32config ANDROID_RAM_CONSOLE_ENABLE_VERBOSE
33	bool "Enable verbose console messages on Android RAM console"
34	default y
35	depends on ANDROID_RAM_CONSOLE
36
37menuconfig ANDROID_RAM_CONSOLE_ERROR_CORRECTION
38	bool "Android RAM Console Enable error correction"
39	default n
40	depends on ANDROID_RAM_CONSOLE
41	depends on !ANDROID_RAM_CONSOLE_EARLY_INIT
42	select REED_SOLOMON
43	select REED_SOLOMON_ENC8
44	select REED_SOLOMON_DEC8
45
46if ANDROID_RAM_CONSOLE_ERROR_CORRECTION
47
48config ANDROID_RAM_CONSOLE_ERROR_CORRECTION_DATA_SIZE
49	int "Android RAM Console Data data size"
50	default 128
51	help
52	  Must be a power of 2.
53
54config ANDROID_RAM_CONSOLE_ERROR_CORRECTION_ECC_SIZE
55	int "Android RAM Console ECC size"
56	default 16
57
58config ANDROID_RAM_CONSOLE_ERROR_CORRECTION_SYMBOL_SIZE
59	int "Android RAM Console Symbol size"
60	default 8
61
62config ANDROID_RAM_CONSOLE_ERROR_CORRECTION_POLYNOMIAL
63	hex "Android RAM Console Polynomial"
64	default 0x19 if (ANDROID_RAM_CONSOLE_ERROR_CORRECTION_SYMBOL_SIZE = 4)
65	default 0x29 if (ANDROID_RAM_CONSOLE_ERROR_CORRECTION_SYMBOL_SIZE = 5)
66	default 0x61 if (ANDROID_RAM_CONSOLE_ERROR_CORRECTION_SYMBOL_SIZE = 6)
67	default 0x89 if (ANDROID_RAM_CONSOLE_ERROR_CORRECTION_SYMBOL_SIZE = 7)
68	default 0x11d if (ANDROID_RAM_CONSOLE_ERROR_CORRECTION_SYMBOL_SIZE = 8)
69
70endif # ANDROID_RAM_CONSOLE_ERROR_CORRECTION
71
72config ANDROID_RAM_CONSOLE_EARLY_INIT
73	bool "Start Android RAM console early"
74	default n
75	depends on ANDROID_RAM_CONSOLE
76
77config ANDROID_RAM_CONSOLE_EARLY_ADDR
78	hex "Android RAM console virtual address"
79	default 0
80	depends on ANDROID_RAM_CONSOLE_EARLY_INIT
81
82config ANDROID_RAM_CONSOLE_EARLY_SIZE
83	hex "Android RAM console buffer size"
84	default 0
85	depends on ANDROID_RAM_CONSOLE_EARLY_INIT
86
87config ANDROID_TIMED_OUTPUT
88	bool "Timed output class driver"
89	default y
90
91config ANDROID_TIMED_GPIO
92	tristate "Android timed gpio driver"
93	depends on GENERIC_GPIO && ANDROID_TIMED_OUTPUT
94	default n
95
96config ANDROID_LOW_MEMORY_KILLER
97	bool "Android Low Memory Killer"
98	default N
99	---help---
100	  Register processes to be killed when memory is low
101
102config ANDROID_PMEM
103	bool "Android pmem allocator"
104	depends on ARM
105
106source "drivers/staging/android/switch/Kconfig"
107
108config ANDROID_INTF_ALARM
109	bool "Android alarm driver"
110	depends on RTC_CLASS
111	default y
112	help
113	  Provides non-wakeup and rtc backed wakeup alarms based on rtc or
114	  elapsed realtime, and a non-wakeup alarm on the monotonic clock.
115	  Also provides an interface to set the wall time which must be used
116	  for elapsed realtime to work.
117
118config ANDROID_INTF_ALARM_DEV
119	bool "Android alarm device"
120	depends on ANDROID_INTF_ALARM
121	default y
122	help
123	  Exports the alarm interface to user-space.
124
125endif # if ANDROID
126
127endmenu
128