blob: aa03f2e13385fe5083a50b17ae6f8c02e3ccb269 [file] [log] [blame]
David Howellsb920de12008-02-08 04:19:31 -08001config MN10300
2 def_bool y
David Howells58bafe72009-02-20 15:38:38 -08003 select HAVE_OPROFILE
David Howells4692edb2011-03-18 16:52:53 +00004 select HAVE_GENERIC_HARDIRQS
Thomas Gleixner2a8f55b2011-03-24 18:54:24 +01005 select GENERIC_IRQ_SHOW
Will Deaconc1d7e012012-07-30 14:42:46 -07006 select ARCH_WANT_IPC_PARSE_VERSION
David Howellse460d642011-03-18 16:54:31 +00007 select HAVE_ARCH_TRACEHOOK
8 select HAVE_ARCH_KGDB
Cong Wangd314d742012-03-23 15:01:51 -07009 select HAVE_NMI_WATCHDOG if MN10300_WD_TIMER
Anna-Maria Gleixnerea533202012-05-18 16:45:50 +000010 select GENERIC_CLOCKEVENTS
David Howells786d35d2012-09-28 14:31:03 +093011 select MODULES_USE_ELF_RELA
David Howellsb920de12008-02-08 04:19:31 -080012
Akira Takeuchi22d42252010-10-27 17:28:38 +010013config AM33_2
14 def_bool n
15
16config AM33_3
17 def_bool n
18
19config AM34_2
20 def_bool n
Akira Takeuchi8fbbf7c2010-10-27 17:28:40 +010021 select MN10300_HAS_ATOMIC_OPS_UNIT
David Howellsb4784912010-10-27 17:28:46 +010022 select MN10300_HAS_CACHE_SNOOP
David Howellsb920de12008-02-08 04:19:31 -080023
Akira Takeuchi8f19e3d2010-10-27 17:28:48 +010024config ERRATUM_NEED_TO_RELOAD_MMUCTR
25 def_bool y if AM33_3 || AM34_2
26
David Howellsb920de12008-02-08 04:19:31 -080027config 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
David Howellsb920de12008-02-08 04:19:31 -080045config GENERIC_CALIBRATE_DELAY
46 def_bool y
47
David Howellsb920de12008-02-08 04:19:31 -080048config GENERIC_HWEIGHT
49 def_bool y
50
David Howellsb920de12008-02-08 04:19:31 -080051config GENERIC_BUG
52 def_bool y
53
54config QUICKLIST
55 def_bool y
56
57config ARCH_HAS_ILOG2_U32
58 def_bool y
59
David Howellsb920de12008-02-08 04:19:31 -080060config HOTPLUG_CPU
61 def_bool n
62
David Howellsb920de12008-02-08 04:19:31 -080063source "init/Kconfig"
64
Matt Helsleydc52ddc2008-10-18 20:27:21 -070065source "kernel/Kconfig.freezer"
66
David Howellsb920de12008-02-08 04:19:31 -080067
Akira Takeuchia5e03ca2010-10-27 17:29:00 +010068menu "Panasonic MN10300 system setup"
David Howellsb920de12008-02-08 04:19:31 -080069
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
Akira Takeuchi368dd5a2010-10-27 17:28:55 +010083config MN10300_UNIT_ASB2364
84 bool "ASB2364"
Akira Takeuchi62747cd2010-10-27 17:28:58 +010085 select SMSC911X_ARCH_HOOKS if SMSC911X
Akira Takeuchi368dd5a2010-10-27 17:28:55 +010086
David Howellsb920de12008-02-08 04:19:31 -080087endchoice
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
Akira Takeuchi22d42252010-10-27 17:28:38 +010099 select AM33_2
David Howellsb920de12008-02-08 04:19:31 -0800100 select MN10300_PROC_HAS_TTYSM0
101 select MN10300_PROC_HAS_TTYSM1
102 select MN10300_PROC_HAS_TTYSM2
103
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100104config 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
David Howellsb920de12008-02-08 04:19:31 -0800111
112endchoice
113
Akira Takeuchi8fbbf7c2010-10-27 17:28:40 +0100114config 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
David Howellsb920de12008-02-08 04:19:31 -0800120config FPU
121 bool "FPU present"
122 default y
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100123 depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
David Howellsb920de12008-02-08 04:19:31 -0800124
Akira Takeuchi278d91c2010-10-27 17:28:52 +0100125config 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
David Howells0bc42d72010-10-27 17:28:41 +0100140source "arch/mn10300/mm/Kconfig.cache"
David Howellsb920de12008-02-08 04:19:31 -0800141
Akira Takeuchia9bc60e2010-10-27 17:28:49 +0100142config MN10300_TLB_USE_PIDR
143 def_bool y
144
David Howellsb920de12008-02-08 04:19:31 -0800145menu "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"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100164 default "0x50700000"
David Howellsb920de12008-02-08 04:19:31 -0800165
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100166config BOOT_STACK_OFFSET
167 hex
168 default "0xF00" if SMP
169 default "0xFF0" if !SMP
170
171config BOOT_STACK_SIZE
172 hex
173 depends on SMP
174 default "0x100"
David Howellsb920de12008-02-08 04:19:31 -0800175endmenu
176
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100177config SMP
178 bool "Symmetric multi-processing support"
179 default y
Amerigo Wang351f8f82011-01-12 16:59:39 -0800180 select USE_GENERIC_SMP_HELPERS
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100181 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.
David Howellsb920de12008-02-08 04:19:31 -0800186
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100187 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
Paul Bolle395cf962011-08-15 02:02:26 +0200193 See also <file:Documentation/x86/i386/IO-APIC.txt>,
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100194 <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
195 <http://www.tldp.org/docs.html#howto>.
196
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
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100204source "kernel/Kconfig.preempt"
David Howellsb920de12008-02-08 04:19:31 -0800205
David Howellsb920de12008-02-08 04:19:31 -0800206config MN10300_CURRENT_IN_E2
207 bool "Hold current task address in E2 register"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100208 depends on !SMP
David Howellsb920de12008-02-08 04:19:31 -0800209 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
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100230source "kernel/Kconfig.hz"
231
David Howellsb920de12008-02-08 04:19:31 -0800232config MN10300_RTC
233 bool "Using MN10300 RTC"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100234 depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
235 select GENERIC_CMOS_UPDATE
David Howellsb920de12008-02-08 04:19:31 -0800236 default n
237 help
David Howellsb920de12008-02-08 04:19:31 -0800238 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
Michael S. Tsirkin34f1bde2011-12-01 12:41:36 +0200252 select GENERIC_PCI_IOMAP
David Howellsb920de12008-02-08 04:19:31 -0800253 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"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100330 default MN10300_TTYSM1_TIMER12 \
331 if !(AM33_2 || AM33_3)
332 default MN10300_TTYSM1_TIMER9 \
333 if AM33_2 || AM33_3
David Howellsb920de12008-02-08 04:19:31 -0800334 depends on MN10300_TTYSM1
335
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100336config MN10300_TTYSM1_TIMER12
337 bool "Use timer 12 (16-bit)"
338 depends on !(AM33_2 || AM33_3)
339
David Howellsb920de12008-02-08 04:19:31 -0800340config MN10300_TTYSM1_TIMER9
341 bool "Use timer 9 (16-bit)"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100342 depends on AM33_2 || AM33_3
David Howellsb920de12008-02-08 04:19:31 -0800343
344config MN10300_TTYSM1_TIMER3
345 bool "Use timer 3 (8-bit)"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100346 depends on AM33_2 || AM33_3
David Howellsb920de12008-02-08 04:19:31 -0800347
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"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100361 default MN10300_TTYSM2_TIMER3 \
362 if !(AM33_2 || AM33_3)
363 default MN10300_TTYSM2_TIMER10 \
364 if AM33_2 || AM33_3
David Howellsb920de12008-02-08 04:19:31 -0800365 depends on MN10300_TTYSM2
366
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100367config 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
David Howellsb920de12008-02-08 04:19:31 -0800379config MN10300_TTYSM2_TIMER10
380 bool "Use timer 10 (16-bit)"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100381 depends on AM33_2 || AM33_3
David Howellsb920de12008-02-08 04:19:31 -0800382
383endchoice
384
385config MN10300_TTYSM2_CTS
386 bool "Enable the use of the CTS line /dev/ttySM2"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100387 depends on MN10300_TTYSM2 && AM33_2
David Howellsb920de12008-02-08 04:19:31 -0800388
389endmenu
390
Akira Takeuchi37e4ec92010-10-27 17:28:54 +0100391menu "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
David Howells67ddb402011-03-18 16:54:30 +0000398config DEBUGGER_IRQ_LEVEL
399 int "DEBUGGER interrupt priority"
David Howells792576b2011-03-18 16:54:30 +0000400 depends on KERNEL_DEBUGGER
Akira Takeuchi37e4ec92010-10-27 17:28:54 +0100401 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
David Howells67ddb402011-03-18 16:54:30 +0000434 Certain interrupts, such as DEBUGGER and virtual MN10300 on-chip
Akira Takeuchi37e4ec92010-10-27 17:28:54 +0100435 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
David Howellsb920de12008-02-08 04:19:31 -0800465source "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"