Staging: android: ram_console: Disable ECC when early init is enabled and validate...
[linux-2.6] / 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 config ANDROID_BINDER_IPC
10         bool "Android Binder IPC Driver"
11         default n
12
13 config ANDROID_LOGGER
14         tristate "Android log driver"
15         default n
16
17 config ANDROID_RAM_CONSOLE
18         bool "Android RAM buffer console"
19         default n
20
21 config ANDROID_RAM_CONSOLE_ENABLE_VERBOSE
22         bool "Enable verbose console messages on Android RAM console"
23         default y
24         depends on ANDROID_RAM_CONSOLE
25
26 menuconfig ANDROID_RAM_CONSOLE_ERROR_CORRECTION
27         bool "Android RAM Console Enable error correction"
28         default n
29         depends on ANDROID_RAM_CONSOLE
30         depends on !ANDROID_RAM_CONSOLE_EARLY_INIT
31         select REED_SOLOMON
32         select REED_SOLOMON_ENC8
33         select REED_SOLOMON_DEC8
34
35 if ANDROID_RAM_CONSOLE_ERROR_CORRECTION
36
37 config ANDROID_RAM_CONSOLE_ERROR_CORRECTION_DATA_SIZE
38         int "Android RAM Console Data data size"
39         default 128
40         help
41           Must be a power of 2.
42
43 config ANDROID_RAM_CONSOLE_ERROR_CORRECTION_ECC_SIZE
44         int "Android RAM Console ECC size"
45         default 16
46
47 config ANDROID_RAM_CONSOLE_ERROR_CORRECTION_SYMBOL_SIZE
48         int "Android RAM Console Symbol size"
49         default 8
50
51 config ANDROID_RAM_CONSOLE_ERROR_CORRECTION_POLYNOMIAL
52         hex "Android RAM Console Polynomial"
53         default 0x19 if (ANDROID_RAM_CONSOLE_ERROR_CORRECTION_SYMBOL_SIZE = 4)
54         default 0x29 if (ANDROID_RAM_CONSOLE_ERROR_CORRECTION_SYMBOL_SIZE = 5)
55         default 0x61 if (ANDROID_RAM_CONSOLE_ERROR_CORRECTION_SYMBOL_SIZE = 6)
56         default 0x89 if (ANDROID_RAM_CONSOLE_ERROR_CORRECTION_SYMBOL_SIZE = 7)
57         default 0x11d if (ANDROID_RAM_CONSOLE_ERROR_CORRECTION_SYMBOL_SIZE = 8)
58
59 endif # ANDROID_RAM_CONSOLE_ERROR_CORRECTION
60
61 config ANDROID_RAM_CONSOLE_EARLY_INIT
62         bool "Start Android RAM console early"
63         default n
64         depends on ANDROID_RAM_CONSOLE
65
66 config ANDROID_RAM_CONSOLE_EARLY_ADDR
67         hex "Android RAM console virtual address"
68         default 0
69         depends on ANDROID_RAM_CONSOLE_EARLY_INIT
70
71 config ANDROID_RAM_CONSOLE_EARLY_SIZE
72         hex "Android RAM console buffer size"
73         default 0
74         depends on ANDROID_RAM_CONSOLE_EARLY_INIT
75
76 config ANDROID_TIMED_GPIO
77         tristate "Android timed gpio driver"
78         depends on GENERIC_GPIO
79         default n
80
81 config ANDROID_LOW_MEMORY_KILLER
82         bool "Android Low Memory Killer"
83         default N
84         ---help---
85           Register processes to be killed when memory is low
86
87 endmenu