Make most arch asm/module.h files use asm-generic/module.h
[deliverable/linux.git] / arch / mn10300 / Kconfig
CommitLineData
b920de1b
DH
1config MN10300
2 def_bool y
58bafe72 3 select HAVE_OPROFILE
4692edbd 4 select HAVE_GENERIC_HARDIRQS
2a8f55b1 5 select GENERIC_IRQ_SHOW
c1d7e01d 6 select ARCH_WANT_IPC_PARSE_VERSION
e460d644
DH
7 select HAVE_ARCH_TRACEHOOK
8 select HAVE_ARCH_KGDB
d314d74c 9 select HAVE_NMI_WATCHDOG if MN10300_WD_TIMER
ea533209 10 select GENERIC_CLOCKEVENTS
786d35d4 11 select MODULES_USE_ELF_RELA
b920de1b 12
22d4225f
AT
13config AM33_2
14 def_bool n
15
16config AM33_3
17 def_bool n
18
19config AM34_2
20 def_bool n
8fbbf7c7 21 select MN10300_HAS_ATOMIC_OPS_UNIT
b478491f 22 select MN10300_HAS_CACHE_SNOOP
b920de1b 23
8f19e3da
AT
24config ERRATUM_NEED_TO_RELOAD_MMUCTR
25 def_bool y if AM33_3 || AM34_2
26
b920de1b
DH
27config MMU
28 def_bool y
29
30config HIGHMEM
31 def_bool n
32
33config NUMA
34 def_bool n
35
36config UID16
37 def_bool y
38
39config RWSEM_GENERIC_SPINLOCK
40 def_bool y
41
42config RWSEM_XCHGADD_ALGORITHM
43 bool
44
b920de1b
DH
45config GENERIC_CALIBRATE_DELAY
46 def_bool y
47
b920de1b
DH
48config GENERIC_HWEIGHT
49 def_bool y
50
b920de1b
DH
51config GENERIC_BUG
52 def_bool y
53
54config QUICKLIST
55 def_bool y
56
57config ARCH_HAS_ILOG2_U32
58 def_bool y
59
b920de1b
DH
60config HOTPLUG_CPU
61 def_bool n
62
b920de1b
DH
63source "init/Kconfig"
64
dc52ddc0
MH
65source "kernel/Kconfig.freezer"
66
b920de1b 67
a5e03ca2 68menu "Panasonic MN10300 system setup"
b920de1b
DH
69
70choice
71 prompt "Unit type"
72 default MN10300_UNIT_ASB2303
73 help
74 This option specifies board for which the kernel will be
75 compiled. It affects the external peripherals catered for.
76
77config MN10300_UNIT_ASB2303
78 bool "ASB2303"
79
80config MN10300_UNIT_ASB2305
81 bool "ASB2305"
82
368dd5ac
AT
83config MN10300_UNIT_ASB2364
84 bool "ASB2364"
62747cd2 85 select SMSC911X_ARCH_HOOKS if SMSC911X
368dd5ac 86
b920de1b
DH
87endchoice
88
89choice
90 prompt "Processor support"
91 default MN10300_PROC_MN103E010
92 help
93 This option specifies the processor for which the kernel will be
94 compiled. It affects the on-chip peripherals catered for.
95
96config MN10300_PROC_MN103E010
97 bool "MN103E010"
98 depends on MN10300_UNIT_ASB2303 || MN10300_UNIT_ASB2305
22d4225f 99 select AM33_2
b920de1b
DH
100 select MN10300_PROC_HAS_TTYSM0
101 select MN10300_PROC_HAS_TTYSM1
102 select MN10300_PROC_HAS_TTYSM2
103
368dd5ac
AT
104config MN10300_PROC_MN2WS0050
105 bool "MN2WS0050"
106 depends on MN10300_UNIT_ASB2364
107 select AM34_2
108 select MN10300_PROC_HAS_TTYSM0
109 select MN10300_PROC_HAS_TTYSM1
110 select MN10300_PROC_HAS_TTYSM2
b920de1b
DH
111
112endchoice
113
8fbbf7c7
AT
114config MN10300_HAS_ATOMIC_OPS_UNIT
115 def_bool n
116 help
117 This should be enabled if the processor has an atomic ops unit
118 capable of doing LL/SC equivalent operations.
119
b920de1b
DH
120config FPU
121 bool "FPU present"
122 default y
368dd5ac 123 depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
b920de1b 124
278d91c4
AT
125config LAZY_SAVE_FPU
126 bool "Save FPU state lazily"
127 default y
128 depends on FPU && !SMP
129 help
130 Enable this to be lazy in the saving of the FPU state to the owning
131 task's thread struct. This is useful if most tasks on the system
132 don't use the FPU as only those tasks that use it will pass it
133 between them, and the state needn't be saved for a task that isn't
134 using it.
135
136 This can't be so easily used on SMP as the process that owns the FPU
137 state on a CPU may be currently running on another CPU, so for the
138 moment, it is disabled.
139
0bc42d7f 140source "arch/mn10300/mm/Kconfig.cache"
b920de1b 141
a9bc60eb
AT
142config MN10300_TLB_USE_PIDR
143 def_bool y
144
b920de1b
DH
145menu "Memory layout options"
146
147config KERNEL_RAM_BASE_ADDRESS
148 hex "Base address of kernel RAM"
149 default "0x90000000"
150
151config INTERRUPT_VECTOR_BASE
152 hex "Base address of vector table"
153 default "0x90000000"
154 help
155 The base address of the vector table will be programmed into
156 the TBR register. It must be on 16MiB address boundary.
157
158config KERNEL_TEXT_ADDRESS
159 hex "Base address of kernel"
160 default "0x90001000"
161
162config KERNEL_ZIMAGE_BASE_ADDRESS
163 hex "Base address of compressed vmlinux image"
368dd5ac
AT
164 default "0x50700000"
165
166config BOOT_STACK_OFFSET
167 hex
168 default "0xF00" if SMP
169 default "0xFF0" if !SMP
b920de1b 170
368dd5ac
AT
171config BOOT_STACK_SIZE
172 hex
173 depends on SMP
174 default "0x100"
b920de1b
DH
175endmenu
176
368dd5ac
AT
177config SMP
178 bool "Symmetric multi-processing support"
179 default y
351f8f8e 180 select USE_GENERIC_SMP_HELPERS
368dd5ac
AT
181 depends on MN10300_PROC_MN2WS0038 || MN10300_PROC_MN2WS0050
182 ---help---
183 This enables support for systems with more than one CPU. If you have
184 a system with only one CPU, like most personal computers, say N. If
185 you have a system with more than one CPU, say Y.
186
187 If you say N here, the kernel will run on single and multiprocessor
188 machines, but will use only one CPU of a multiprocessor machine. If
189 you say Y here, the kernel will run on many, but not all,
190 singleprocessor machines. On a singleprocessor machine, the kernel
191 will run faster if you say N here.
192
395cf969 193 See also <file:Documentation/x86/i386/IO-APIC.txt>,
368dd5ac
AT
194 <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
195 <http://www.tldp.org/docs.html#howto>.
b920de1b 196
368dd5ac
AT
197 If you don't know what to do here, say N.
198
199config NR_CPUS
200 int
201 depends on SMP
202 default "2"
203
368dd5ac 204source "kernel/Kconfig.preempt"
b920de1b 205
b920de1b
DH
206config MN10300_CURRENT_IN_E2
207 bool "Hold current task address in E2 register"
368dd5ac 208 depends on !SMP
b920de1b
DH
209 default y
210 help
211 This option removes the E2/R2 register from the set available to gcc
212 for normal use and instead uses it to store the address of the
213 current process's task_struct whilst in the kernel.
214
215 This means the kernel doesn't need to calculate the address each time
216 "current" is used (take SP, AND with mask and dereference pointer
217 just to get the address), and instead can just use E2+offset
218 addressing each time.
219
220 This has no effect on userspace.
221
222config MN10300_USING_JTAG
223 bool "Using JTAG to debug kernel"
224 default y
225 help
226 This options indicates that JTAG will be used to debug the kernel. It
227 suppresses the use of certain hardware debugging features, such as
228 single-stepping, which are taken over completely by the JTAG unit.
229
368dd5ac
AT
230source "kernel/Kconfig.hz"
231
b920de1b
DH
232config MN10300_RTC
233 bool "Using MN10300 RTC"
368dd5ac
AT
234 depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
235 select GENERIC_CMOS_UPDATE
b920de1b
DH
236 default n
237 help
b920de1b
DH
238 This option enables support for the RTC, thus enabling time to be
239 tracked, even when system is powered down. This is available on-chip
240 on the MN103E010.
241
242config MN10300_WD_TIMER
243 bool "Using MN10300 watchdog timer"
244 default y
245 help
246 This options indicates that the watchdog timer will be used.
247
248config PCI
249 bool "Use PCI"
250 depends on MN10300_UNIT_ASB2305
251 default y
34f1bdee 252 select GENERIC_PCI_IOMAP
b920de1b
DH
253 help
254 Some systems (such as the ASB2305) have PCI onboard. If you have one
255 of these boards and you wish to use the PCI facilities, say Y here.
256
257 The PCI-HOWTO, available from
258 <http://www.tldp.org/docs.html#howto>, contains valuable
259 information about which PCI hardware does work under Linux and which
260 doesn't.
261
262source "drivers/pci/Kconfig"
263
264source "drivers/pcmcia/Kconfig"
265
266menu "MN10300 internal serial options"
267
268config MN10300_PROC_HAS_TTYSM0
269 bool
270 default n
271
272config MN10300_PROC_HAS_TTYSM1
273 bool
274 default n
275
276config MN10300_PROC_HAS_TTYSM2
277 bool
278 default n
279
280config MN10300_TTYSM
281 bool "Support for ttySM serial ports"
282 depends on MN10300
283 default y
284 select SERIAL_CORE
285 help
286 This option enables support for the on-chip serial ports that the
287 MN10300 has available.
288
289config MN10300_TTYSM_CONSOLE
290 bool "Support for console on ttySM serial ports"
291 depends on MN10300_TTYSM
292 select SERIAL_CORE_CONSOLE
293 help
294 This option enables support for a console on the on-chip serial ports
295 that the MN10300 has available.
296
297#
298# /dev/ttySM0
299#
300config MN10300_TTYSM0
301 bool "Enable SIF0 (/dev/ttySM0)"
302 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM0
303 help
304 Enable access to SIF0 through /dev/ttySM0 or gdb-stub
305
306choice
307 prompt "Select the timer to supply the clock for SIF0"
308 default MN10300_TTYSM0_TIMER8
309 depends on MN10300_TTYSM0
310
311config MN10300_TTYSM0_TIMER8
312 bool "Use timer 8 (16-bit)"
313
314config MN10300_TTYSM0_TIMER2
315 bool "Use timer 2 (8-bit)"
316
317endchoice
318
319#
320# /dev/ttySM1
321#
322config MN10300_TTYSM1
323 bool "Enable SIF1 (/dev/ttySM1)"
324 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM1
325 help
326 Enable access to SIF1 through /dev/ttySM1 or gdb-stub
327
328choice
329 prompt "Select the timer to supply the clock for SIF1"
368dd5ac
AT
330 default MN10300_TTYSM1_TIMER12 \
331 if !(AM33_2 || AM33_3)
332 default MN10300_TTYSM1_TIMER9 \
333 if AM33_2 || AM33_3
b920de1b
DH
334 depends on MN10300_TTYSM1
335
368dd5ac
AT
336config MN10300_TTYSM1_TIMER12
337 bool "Use timer 12 (16-bit)"
338 depends on !(AM33_2 || AM33_3)
339
b920de1b
DH
340config MN10300_TTYSM1_TIMER9
341 bool "Use timer 9 (16-bit)"
368dd5ac 342 depends on AM33_2 || AM33_3
b920de1b
DH
343
344config MN10300_TTYSM1_TIMER3
345 bool "Use timer 3 (8-bit)"
368dd5ac 346 depends on AM33_2 || AM33_3
b920de1b
DH
347
348endchoice
349
350#
351# /dev/ttySM2
352#
353config MN10300_TTYSM2
354 bool "Enable SIF2 (/dev/ttySM2)"
355 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM2
356 help
357 Enable access to SIF2 through /dev/ttySM2 or gdb-stub
358
359choice
360 prompt "Select the timer to supply the clock for SIF2"
368dd5ac
AT
361 default MN10300_TTYSM2_TIMER3 \
362 if !(AM33_2 || AM33_3)
363 default MN10300_TTYSM2_TIMER10 \
364 if AM33_2 || AM33_3
b920de1b
DH
365 depends on MN10300_TTYSM2
366
368dd5ac
AT
367config MN10300_TTYSM2_TIMER9
368 bool "Use timer 9 (16-bit)"
369 depends on !(AM33_2 || AM33_3)
370
371config MN10300_TTYSM2_TIMER1
372 bool "Use timer 1 (8-bit)"
373 depends on !(AM33_2 || AM33_3)
374
375config MN10300_TTYSM2_TIMER3
376 bool "Use timer 3 (8-bit)"
377 depends on !(AM33_2 || AM33_3)
378
b920de1b
DH
379config MN10300_TTYSM2_TIMER10
380 bool "Use timer 10 (16-bit)"
368dd5ac 381 depends on AM33_2 || AM33_3
b920de1b
DH
382
383endchoice
384
385config MN10300_TTYSM2_CTS
386 bool "Enable the use of the CTS line /dev/ttySM2"
368dd5ac 387 depends on MN10300_TTYSM2 && AM33_2
b920de1b
DH
388
389endmenu
390
37e4ec96
AT
391menu "Interrupt request priority options"
392
393comment "[!] NOTE: A lower number/level indicates a higher priority (0 is highest, 6 is lowest)"
394
395comment "____Non-maskable interrupt levels____"
396comment "The following must be set to a higher priority than local_irq_disable() and on-chip serial"
397
67ddb405
DH
398config DEBUGGER_IRQ_LEVEL
399 int "DEBUGGER interrupt priority"
792576b1 400 depends on KERNEL_DEBUGGER
37e4ec96
AT
401 range 0 1 if LINUX_CLI_LEVEL = 2
402 range 0 2 if LINUX_CLI_LEVEL = 3
403 range 0 3 if LINUX_CLI_LEVEL = 4
404 range 0 4 if LINUX_CLI_LEVEL = 5
405 range 0 5 if LINUX_CLI_LEVEL = 6
406 default 0
407
408comment "The following must be set to a higher priority than local_irq_disable()"
409
410config MN10300_SERIAL_IRQ_LEVEL
411 int "MN10300 on-chip serial interrupt priority"
412 depends on MN10300_TTYSM
413 range 1 1 if LINUX_CLI_LEVEL = 2
414 range 1 2 if LINUX_CLI_LEVEL = 3
415 range 1 3 if LINUX_CLI_LEVEL = 4
416 range 1 4 if LINUX_CLI_LEVEL = 5
417 range 1 5 if LINUX_CLI_LEVEL = 6
418 default 1
419
420comment "-"
421comment "____Maskable interrupt levels____"
422
423config LINUX_CLI_LEVEL
424 int "The highest interrupt priority excluded by local_irq_disable() (2-6)"
425 range 2 6
426 default 2
427 help
428 local_irq_disable() doesn't actually disable maskable interrupts -
429 what it does is restrict the levels of interrupt which are permitted
430 (a lower level indicates a higher priority) by lowering the value in
431 EPSW.IM from 7. Any interrupt is permitted for which the level is
432 lower than EPSW.IM.
433
67ddb405 434 Certain interrupts, such as DEBUGGER and virtual MN10300 on-chip
37e4ec96
AT
435 serial DMA interrupts are allowed to interrupt normal disabled
436 sections.
437
438comment "The following must be set to a equal to or lower priority than LINUX_CLI_LEVEL"
439
440config TIMER_IRQ_LEVEL
441 int "Kernel timer interrupt priority"
442 range LINUX_CLI_LEVEL 6
443 default 4
444
445config PCI_IRQ_LEVEL
446 int "PCI interrupt priority"
447 depends on PCI
448 range LINUX_CLI_LEVEL 6
449 default 5
450
451config ETHERNET_IRQ_LEVEL
452 int "Ethernet interrupt priority"
453 depends on SMC91X || SMC911X || SMSC911X
454 range LINUX_CLI_LEVEL 6
455 default 6
456
457config EXT_SERIAL_IRQ_LEVEL
458 int "External serial port interrupt priority"
459 depends on SERIAL_8250
460 range LINUX_CLI_LEVEL 6
461 default 6
462
463endmenu
464
b920de1b
DH
465source "mm/Kconfig"
466
467menu "Power management options"
468source kernel/power/Kconfig
469endmenu
470
471endmenu
472
473
474menu "Executable formats"
475
476source "fs/Kconfig.binfmt"
477
478endmenu
479
480source "net/Kconfig"
481
482source "drivers/Kconfig"
483
484source "fs/Kconfig"
485
486source "arch/mn10300/Kconfig.debug"
487
488source "security/Kconfig"
489
490source "crypto/Kconfig"
491
492source "lib/Kconfig"
This page took 0.297536 seconds and 5 git commands to generate.