A22: add working power management function
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-rk29 / Kconfig
1 if ARCH_RK29
2
3 choice
4         prompt "Select Board Type"
5         depends on ARCH_RK29
6         default MACH_RK29SDK
7
8 config MACH_RK29SDK
9         depends on ARCH_RK29
10         bool "ROCKCHIP Board Rk29 For Sdk"
11         help
12           Support for the ROCKCHIP Board For Rk29 Sdk.
13
14 config MACH_RK29SDK_DDR3
15         depends on ARCH_RK29
16         bool "ROCKCHIP Board Rk29 For DDR3 SDK"
17         help
18           Support for the ROCKCHIP Board For Rk29 Sdk.
19
20 config MACH_RK29WINACCORD
21         depends on ARCH_RK29
22         bool "ROCKCHIP Board Rk29 For Winaccord"
23         help
24           Support for the ROCKCHIP Board For Rk29 Winaccord.
25
26 config MACH_RK29FIH
27         depends on ARCH_RK29
28         bool "ROCKCHIP Board Rk29 For FIH"
29         help
30           Support for the ROCKCHIP Board For Rk29 FIH.
31
32 config MACH_RK29_MALATA
33         depends on ARCH_RK29
34         bool "ROCKCHIP Board Rk29 For Malata"
35         help
36           Support for the ROCKCHIP Board For Rk29 Malata.
37
38 config MACH_RK29_PHONESDK
39         depends on ARCH_RK29
40         bool "ROCKCHIP Board Rk29 For Phone Sdk"
41         help
42           Support for the ROCKCHIP Board For Rk29 Phone Sdk.
43
44 config MACH_RK29_A22
45         depends on ARCH_RK29
46         bool "ROCKCHIP Board Rk29 For A22"
47         help
48           Support for the ROCKCHIP Board For A22.
49
50 config MACH_RK29_PHONEPADSDK
51         depends on ARCH_RK29
52         bool "ROCKCHIP Board Rk29 For Phone Pad Sdk"
53         help
54           Support for the ROCKCHIP Board For Rk29 Phone Pad Sdk.
55           
56 config MACH_RK29_newton
57                 depends on ARCH_RK29
58                 bool "ROCKCHIP Board Rk29 For project newton"
59                 help
60                   Support for the ROCKCHIP Board For project newton.
61 endchoice
62
63 choice DDR_TYPE
64         prompt "DDR Memory Type"
65         default DDR_TYPE_DDR3_DEFAULT 
66
67 config DDR_TYPE_DDRII
68         bool "DDRII"
69         help
70           Support for DDRII memory
71
72 config DDR_TYPE_LPDDR
73         bool "mobile DDR"
74         help
75           Support for mobile DDR, MCP device
76
77 config DDR_TYPE_DDR3_800D
78         bool "DDR3-800 5-5-5"
79
80 config DDR_TYPE_DDR3_800E
81         bool "DDR3-800 6-6-6"
82
83 config DDR_TYPE_DDR3_1066E
84         bool "DDR3-1066 6-6-6"
85
86 config DDR_TYPE_DDR3_1066F
87         bool "DDR3-1066 7-7-7"
88
89 config DDR_TYPE_DDR3_1066G
90         bool "DDR3-1066 8-8-8"
91
92 config DDR_TYPE_DDR3_1333F
93         bool "DDR3-1333 7-7-7"
94
95 config DDR_TYPE_DDR3_1333G
96         bool "DDR3-1333 8-8-8"
97
98 config DDR_TYPE_DDR3_1333H
99         bool "DDR3-1333 9-9-9"
100
101 config DDR_TYPE_DDR3_1333J
102         bool "DDR3-1333 10-10-10"
103
104 config DDR_TYPE_DDR3_1600G
105         bool "DDR3-1600 8-8-8"
106
107 config DDR_TYPE_DDR3_1600H
108         bool "DDR3-1600 9-9-9"
109
110 config DDR_TYPE_DDR3_1600J
111         bool "DDR3-1600 10-10-10"
112
113 config DDR_TYPE_DDR3_1600K
114         bool "DDR3-1600 11-11-11"
115
116 config DDR_TYPE_DDR3_1866J
117         bool "DDR3-1866 10-10-10"
118
119 config DDR_TYPE_DDR3_1866K
120         bool "DDR3-1866 11-11-11"
121
122 config DDR_TYPE_DDR3_1866L
123         bool "DDR3-1866 12-12-12"
124
125 config DDR_TYPE_DDR3_1866M
126         bool "DDR3-1866 13-13-13"
127
128 config DDR_TYPE_DDR3_2133K
129         bool "DDR3-2133 11-11-11"
130
131 config DDR_TYPE_DDR3_2133L
132         bool "DDR3-2133 12-12-12"
133
134 config DDR_TYPE_DDR3_2133M
135         bool "DDR3-2133 13-13-13"
136
137 config DDR_TYPE_DDR3_2133N
138         bool "DDR3-2133 14-14-14"
139
140 config DDR_TYPE_DDR3_DEFAULT
141         bool "DDR3 (Type default)"
142
143 endchoice
144
145 choice RK29_MEM_SIZE
146         prompt "DDR Memory Size"
147         default RK29_MEM_SIZE_512M
148         help
149           Select High Memory Support (from Kernel Features) for 1G memory.
150           Deselect High Memory Support for 512MB memory.
151
152 config RK29_MEM_SIZE_512M
153         bool "512MB"
154         depends on !HIGHMEM
155
156 config RK29_MEM_SIZE_1G
157         bool "1GB"
158         depends on HIGHMEM
159         select ZONE_DMA
160
161 endchoice
162
163 config RK29_MEM_SIZE_M
164         int
165         default 512 if RK29_MEM_SIZE_512M
166         default 1024 if RK29_MEM_SIZE_1G
167
168 config DDR_SDRAM_FREQ
169         int "DDR SDRAM frequence (in MHz)"
170         default 400
171
172 config WIFI_CONTROL_FUNC
173         bool "Enable WiFi control function abstraction"
174         help
175           Enables Power/Reset/Carddetect function abstraction
176
177 menu "RK29 VPU (Video Processing Unit) support"
178
179 config RK29_VPU
180         tristate "Support for RK29 VPU (Video Processing Unit)"
181         depends on ARCH_RK29
182         default y
183
184 config RK29_VPU_DEBUG
185         bool "RK29 VPU debugging"
186         depends on RK29_VPU != n
187         default n
188         help
189           This is an option for the developers; most people should
190           say N here.  This enables RK29 VPU driver debugging.
191
192 endmenu
193
194 config RK29_JTAG
195         bool "Enable JTAG support (debug only)"
196         help
197           This is an option for SDK board. Always enable JTAG clock,
198           but consumes more power.
199
200 config RK29_LAST_LOG
201         bool "Save the last kernel log on /proc/last_log"
202         depends on DEBUG_KERNEL && PRINTK
203         default y
204         help
205           It is only intended for debugging.
206
207 menu "support for RK29 power manage "
208 config RK29_WORKING_POWER_MANAGEMENT
209         bool "Support power saving in working"
210         default n
211         help 
212           a series of measures to reduce working power
213
214 config RK29_CLK_SWITCH_TO_32K
215         bool "Support clock switch to 32.768k"
216         default n
217
218 config RK29_GPIO_SUSPEND
219         bool "Support gpio suspend"
220         default n
221
222 config RK29_SPI_INSRAM
223         tristate "Support spi control interface"
224         depends on REGULATOR_WM831X
225         default ns
226
227 config RK29_PWM_INSRAM
228         tristate "Support pwm control interface"
229         depends on RK29_PWM_REGULATOR
230         default y
231 endmenu
232
233
234 endif