Merge branch 'kbuild/rc-fixes' into kbuild/kconfig
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / mn10300 / Kconfig
1 config MN10300
2 def_bool y
3 select HAVE_OPROFILE
4 select HAVE_ARCH_TRACEHOOK
5
6 config AM33
7 def_bool y
8
9 config MMU
10 def_bool y
11
12 config HIGHMEM
13 def_bool n
14
15 config NUMA
16 def_bool n
17
18 config UID16
19 def_bool y
20
21 config RWSEM_GENERIC_SPINLOCK
22 def_bool y
23
24 config RWSEM_XCHGADD_ALGORITHM
25 bool
26
27 config GENERIC_HARDIRQS_NO__DO_IRQ
28 def_bool y
29
30 config GENERIC_CALIBRATE_DELAY
31 def_bool y
32
33 config GENERIC_CMOS_UPDATE
34 def_bool y
35
36 config GENERIC_FIND_NEXT_BIT
37 def_bool y
38
39 config GENERIC_HWEIGHT
40 def_bool y
41
42 config GENERIC_BUG
43 def_bool y
44
45 config QUICKLIST
46 def_bool y
47
48 config ARCH_HAS_ILOG2_U32
49 def_bool y
50
51 # Use the generic interrupt handling code in kernel/irq/
52 config GENERIC_HARDIRQS
53 def_bool y
54
55 config HOTPLUG_CPU
56 def_bool n
57
58 config HZ
59 int
60 default 1000
61
62 source "init/Kconfig"
63
64 source "kernel/Kconfig.freezer"
65
66
67 menu "Matsushita MN10300 system setup"
68
69 choice
70 prompt "Unit type"
71 default MN10300_UNIT_ASB2303
72 help
73 This option specifies board for which the kernel will be
74 compiled. It affects the external peripherals catered for.
75
76 config MN10300_UNIT_ASB2303
77 bool "ASB2303"
78
79 config MN10300_UNIT_ASB2305
80 bool "ASB2305"
81
82 endchoice
83
84 choice
85 prompt "Processor support"
86 default MN10300_PROC_MN103E010
87 help
88 This option specifies the processor for which the kernel will be
89 compiled. It affects the on-chip peripherals catered for.
90
91 config MN10300_PROC_MN103E010
92 bool "MN103E010"
93 depends on MN10300_UNIT_ASB2303 || MN10300_UNIT_ASB2305
94 select MN10300_PROC_HAS_TTYSM0
95 select MN10300_PROC_HAS_TTYSM1
96 select MN10300_PROC_HAS_TTYSM2
97
98 endchoice
99
100 choice
101 prompt "Processor core support"
102 default MN10300_CPU_AM33V2
103 help
104 This option specifies the processor core for which the kernel will be
105 compiled. It affects the instruction set used.
106
107 config MN10300_CPU_AM33V2
108 bool "AM33v2"
109
110 endchoice
111
112 config FPU
113 bool "FPU present"
114 default y
115 depends on MN10300_PROC_MN103E010
116
117 choice
118 prompt "CPU Caching mode"
119 default MN10300_CACHE_WBACK
120 help
121 This option determines the caching mode for the kernel.
122
123 Write-Back caching mode involves the all reads and writes causing
124 the affected cacheline to be read into the cache first before being
125 operated upon. Memory is not then updated by a write until the cache
126 is filled and a cacheline needs to be displaced from the cache to
127 make room. Only at that point is it written back.
128
129 Write-Through caching only fetches cachelines from memory on a
130 read. Writes always get written directly to memory. If the affected
131 cacheline is also in cache, it will be updated too.
132
133 The final option is to turn of caching entirely.
134
135 config MN10300_CACHE_WBACK
136 bool "Write-Back"
137
138 config MN10300_CACHE_WTHRU
139 bool "Write-Through"
140
141 config MN10300_CACHE_DISABLED
142 bool "Disabled"
143
144 endchoice
145
146 menu "Memory layout options"
147
148 config KERNEL_RAM_BASE_ADDRESS
149 hex "Base address of kernel RAM"
150 default "0x90000000"
151
152 config INTERRUPT_VECTOR_BASE
153 hex "Base address of vector table"
154 default "0x90000000"
155 help
156 The base address of the vector table will be programmed into
157 the TBR register. It must be on 16MiB address boundary.
158
159 config KERNEL_TEXT_ADDRESS
160 hex "Base address of kernel"
161 default "0x90001000"
162
163 config KERNEL_ZIMAGE_BASE_ADDRESS
164 hex "Base address of compressed vmlinux image"
165 default "0x90700000"
166
167 endmenu
168
169 config PREEMPT
170 bool "Preemptible Kernel"
171 help
172 This option reduces the latency of the kernel when reacting to
173 real-time or interactive events by allowing a low priority process to
174 be preempted even if it is in kernel mode executing a system call.
175 This allows applications to run more reliably even when the system is
176 under load.
177
178 Say Y here if you are building a kernel for a desktop, embedded
179 or real-time system. Say N if you are unsure.
180
181 config MN10300_CURRENT_IN_E2
182 bool "Hold current task address in E2 register"
183 default y
184 help
185 This option removes the E2/R2 register from the set available to gcc
186 for normal use and instead uses it to store the address of the
187 current process's task_struct whilst in the kernel.
188
189 This means the kernel doesn't need to calculate the address each time
190 "current" is used (take SP, AND with mask and dereference pointer
191 just to get the address), and instead can just use E2+offset
192 addressing each time.
193
194 This has no effect on userspace.
195
196 config MN10300_USING_JTAG
197 bool "Using JTAG to debug kernel"
198 default y
199 help
200 This options indicates that JTAG will be used to debug the kernel. It
201 suppresses the use of certain hardware debugging features, such as
202 single-stepping, which are taken over completely by the JTAG unit.
203
204 config MN10300_RTC
205 bool "Using MN10300 RTC"
206 depends on MN10300_PROC_MN103E010
207 default n
208 help
209
210 This option enables support for the RTC, thus enabling time to be
211 tracked, even when system is powered down. This is available on-chip
212 on the MN103E010.
213
214 config MN10300_WD_TIMER
215 bool "Using MN10300 watchdog timer"
216 default y
217 help
218 This options indicates that the watchdog timer will be used.
219
220 config PCI
221 bool "Use PCI"
222 depends on MN10300_UNIT_ASB2305
223 default y
224 help
225 Some systems (such as the ASB2305) have PCI onboard. If you have one
226 of these boards and you wish to use the PCI facilities, say Y here.
227
228 The PCI-HOWTO, available from
229 <http://www.tldp.org/docs.html#howto>, contains valuable
230 information about which PCI hardware does work under Linux and which
231 doesn't.
232
233 source "drivers/pci/Kconfig"
234
235 source "drivers/pcmcia/Kconfig"
236
237 menu "MN10300 internal serial options"
238
239 config MN10300_PROC_HAS_TTYSM0
240 bool
241 default n
242
243 config MN10300_PROC_HAS_TTYSM1
244 bool
245 default n
246
247 config MN10300_PROC_HAS_TTYSM2
248 bool
249 default n
250
251 config MN10300_TTYSM
252 bool "Support for ttySM serial ports"
253 depends on MN10300
254 default y
255 select SERIAL_CORE
256 help
257 This option enables support for the on-chip serial ports that the
258 MN10300 has available.
259
260 config MN10300_TTYSM_CONSOLE
261 bool "Support for console on ttySM serial ports"
262 depends on MN10300_TTYSM
263 select SERIAL_CORE_CONSOLE
264 help
265 This option enables support for a console on the on-chip serial ports
266 that the MN10300 has available.
267
268 #
269 # /dev/ttySM0
270 #
271 config MN10300_TTYSM0
272 bool "Enable SIF0 (/dev/ttySM0)"
273 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM0
274 help
275 Enable access to SIF0 through /dev/ttySM0 or gdb-stub
276
277 choice
278 prompt "Select the timer to supply the clock for SIF0"
279 default MN10300_TTYSM0_TIMER8
280 depends on MN10300_TTYSM0
281
282 config MN10300_TTYSM0_TIMER8
283 bool "Use timer 8 (16-bit)"
284
285 config MN10300_TTYSM0_TIMER2
286 bool "Use timer 2 (8-bit)"
287
288 endchoice
289
290 #
291 # /dev/ttySM1
292 #
293 config MN10300_TTYSM1
294 bool "Enable SIF1 (/dev/ttySM1)"
295 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM1
296 help
297 Enable access to SIF1 through /dev/ttySM1 or gdb-stub
298
299 choice
300 prompt "Select the timer to supply the clock for SIF1"
301 default MN10300_TTYSM0_TIMER9
302 depends on MN10300_TTYSM1
303
304 config MN10300_TTYSM1_TIMER9
305 bool "Use timer 9 (16-bit)"
306
307 config MN10300_TTYSM1_TIMER3
308 bool "Use timer 3 (8-bit)"
309
310 endchoice
311
312 #
313 # /dev/ttySM2
314 #
315 config MN10300_TTYSM2
316 bool "Enable SIF2 (/dev/ttySM2)"
317 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM2
318 help
319 Enable access to SIF2 through /dev/ttySM2 or gdb-stub
320
321 choice
322 prompt "Select the timer to supply the clock for SIF2"
323 default MN10300_TTYSM0_TIMER10
324 depends on MN10300_TTYSM2
325
326 config MN10300_TTYSM2_TIMER10
327 bool "Use timer 10 (16-bit)"
328
329 endchoice
330
331 config MN10300_TTYSM2_CTS
332 bool "Enable the use of the CTS line /dev/ttySM2"
333 depends on MN10300_TTYSM2
334
335 endmenu
336
337 source "mm/Kconfig"
338
339 menu "Power management options"
340 source kernel/power/Kconfig
341 endmenu
342
343 endmenu
344
345
346 menu "Executable formats"
347
348 source "fs/Kconfig.binfmt"
349
350 endmenu
351
352 source "net/Kconfig"
353
354 source "drivers/Kconfig"
355
356 source "fs/Kconfig"
357
358 source "arch/mn10300/Kconfig.debug"
359
360 source "security/Kconfig"
361
362 source "crypto/Kconfig"
363
364 source "lib/Kconfig"