blob: a523c94fa6986dbab1858a7276e883711accaec7 [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 Gleixnerdf43b862011-03-18 16:52:53 +00005 select GENERIC_HARDIRQS_NO_DEPRECATED
Thomas Gleixner2a8f55b2011-03-24 18:54:24 +01006 select GENERIC_IRQ_SHOW
David Howellse460d642011-03-18 16:54:31 +00007 select HAVE_ARCH_TRACEHOOK
8 select HAVE_ARCH_KGDB
David Howellsb920de12008-02-08 04:19:31 -08009
Akira Takeuchi22d42252010-10-27 17:28:38 +010010config AM33_2
11 def_bool n
12
13config AM33_3
14 def_bool n
15
16config AM34_2
17 def_bool n
Akira Takeuchi8fbbf7c2010-10-27 17:28:40 +010018 select MN10300_HAS_ATOMIC_OPS_UNIT
David Howellsb4784912010-10-27 17:28:46 +010019 select MN10300_HAS_CACHE_SNOOP
David Howellsb920de12008-02-08 04:19:31 -080020
Akira Takeuchi8f19e3d2010-10-27 17:28:48 +010021config ERRATUM_NEED_TO_RELOAD_MMUCTR
22 def_bool y if AM33_3 || AM34_2
23
David Howellsb920de12008-02-08 04:19:31 -080024config MMU
25 def_bool y
26
27config HIGHMEM
28 def_bool n
29
30config NUMA
31 def_bool n
32
33config UID16
34 def_bool y
35
36config RWSEM_GENERIC_SPINLOCK
37 def_bool y
38
39config RWSEM_XCHGADD_ALGORITHM
40 bool
41
David Howellsb920de12008-02-08 04:19:31 -080042config GENERIC_CALIBRATE_DELAY
43 def_bool y
44
John Stultzf7a56572010-03-03 19:57:17 -080045config GENERIC_CMOS_UPDATE
Akira Takeuchi368dd5a2010-10-27 17:28:55 +010046 def_bool n
John Stultzf7a56572010-03-03 19:57:17 -080047
David Howellsb920de12008-02-08 04:19:31 -080048config GENERIC_FIND_NEXT_BIT
49 def_bool y
50
51config GENERIC_HWEIGHT
52 def_bool y
53
Mark Salter730c1fa2010-10-27 17:28:57 +010054config GENERIC_TIME
55 def_bool y
56
57config GENERIC_CLOCKEVENTS
58 def_bool y
59
David Howellsb920de12008-02-08 04:19:31 -080060config GENERIC_BUG
61 def_bool y
62
63config QUICKLIST
64 def_bool y
65
66config ARCH_HAS_ILOG2_U32
67 def_bool y
68
David Howellsb920de12008-02-08 04:19:31 -080069config HOTPLUG_CPU
70 def_bool n
71
David Howellsb920de12008-02-08 04:19:31 -080072source "init/Kconfig"
73
Matt Helsleydc52ddc2008-10-18 20:27:21 -070074source "kernel/Kconfig.freezer"
75
David Howellsb920de12008-02-08 04:19:31 -080076
Akira Takeuchia5e03ca2010-10-27 17:29:00 +010077menu "Panasonic MN10300 system setup"
David Howellsb920de12008-02-08 04:19:31 -080078
79choice
80 prompt "Unit type"
81 default MN10300_UNIT_ASB2303
82 help
83 This option specifies board for which the kernel will be
84 compiled. It affects the external peripherals catered for.
85
86config MN10300_UNIT_ASB2303
87 bool "ASB2303"
88
89config MN10300_UNIT_ASB2305
90 bool "ASB2305"
91
Akira Takeuchi368dd5a2010-10-27 17:28:55 +010092config MN10300_UNIT_ASB2364
93 bool "ASB2364"
Akira Takeuchi62747cd2010-10-27 17:28:58 +010094 select SMSC911X_ARCH_HOOKS if SMSC911X
Akira Takeuchi368dd5a2010-10-27 17:28:55 +010095
David Howellsb920de12008-02-08 04:19:31 -080096endchoice
97
98choice
99 prompt "Processor support"
100 default MN10300_PROC_MN103E010
101 help
102 This option specifies the processor for which the kernel will be
103 compiled. It affects the on-chip peripherals catered for.
104
105config MN10300_PROC_MN103E010
106 bool "MN103E010"
107 depends on MN10300_UNIT_ASB2303 || MN10300_UNIT_ASB2305
Akira Takeuchi22d42252010-10-27 17:28:38 +0100108 select AM33_2
David Howellsb920de12008-02-08 04:19:31 -0800109 select MN10300_PROC_HAS_TTYSM0
110 select MN10300_PROC_HAS_TTYSM1
111 select MN10300_PROC_HAS_TTYSM2
112
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100113config MN10300_PROC_MN2WS0050
114 bool "MN2WS0050"
115 depends on MN10300_UNIT_ASB2364
116 select AM34_2
117 select MN10300_PROC_HAS_TTYSM0
118 select MN10300_PROC_HAS_TTYSM1
119 select MN10300_PROC_HAS_TTYSM2
David Howellsb920de12008-02-08 04:19:31 -0800120
121endchoice
122
Akira Takeuchi8fbbf7c2010-10-27 17:28:40 +0100123config MN10300_HAS_ATOMIC_OPS_UNIT
124 def_bool n
125 help
126 This should be enabled if the processor has an atomic ops unit
127 capable of doing LL/SC equivalent operations.
128
David Howellsb920de12008-02-08 04:19:31 -0800129config FPU
130 bool "FPU present"
131 default y
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100132 depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
David Howellsb920de12008-02-08 04:19:31 -0800133
Akira Takeuchi278d91c2010-10-27 17:28:52 +0100134config LAZY_SAVE_FPU
135 bool "Save FPU state lazily"
136 default y
137 depends on FPU && !SMP
138 help
139 Enable this to be lazy in the saving of the FPU state to the owning
140 task's thread struct. This is useful if most tasks on the system
141 don't use the FPU as only those tasks that use it will pass it
142 between them, and the state needn't be saved for a task that isn't
143 using it.
144
145 This can't be so easily used on SMP as the process that owns the FPU
146 state on a CPU may be currently running on another CPU, so for the
147 moment, it is disabled.
148
David Howells0bc42d72010-10-27 17:28:41 +0100149source "arch/mn10300/mm/Kconfig.cache"
David Howellsb920de12008-02-08 04:19:31 -0800150
Akira Takeuchia9bc60e2010-10-27 17:28:49 +0100151config MN10300_TLB_USE_PIDR
152 def_bool y
153
David Howellsb920de12008-02-08 04:19:31 -0800154menu "Memory layout options"
155
156config KERNEL_RAM_BASE_ADDRESS
157 hex "Base address of kernel RAM"
158 default "0x90000000"
159
160config INTERRUPT_VECTOR_BASE
161 hex "Base address of vector table"
162 default "0x90000000"
163 help
164 The base address of the vector table will be programmed into
165 the TBR register. It must be on 16MiB address boundary.
166
167config KERNEL_TEXT_ADDRESS
168 hex "Base address of kernel"
169 default "0x90001000"
170
171config KERNEL_ZIMAGE_BASE_ADDRESS
172 hex "Base address of compressed vmlinux image"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100173 default "0x50700000"
David Howellsb920de12008-02-08 04:19:31 -0800174
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100175config BOOT_STACK_OFFSET
176 hex
177 default "0xF00" if SMP
178 default "0xFF0" if !SMP
179
180config BOOT_STACK_SIZE
181 hex
182 depends on SMP
183 default "0x100"
David Howellsb920de12008-02-08 04:19:31 -0800184endmenu
185
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100186config SMP
187 bool "Symmetric multi-processing support"
188 default y
Amerigo Wang351f8f82011-01-12 16:59:39 -0800189 select USE_GENERIC_SMP_HELPERS
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100190 depends on MN10300_PROC_MN2WS0038 || MN10300_PROC_MN2WS0050
191 ---help---
192 This enables support for systems with more than one CPU. If you have
193 a system with only one CPU, like most personal computers, say N. If
194 you have a system with more than one CPU, say Y.
David Howellsb920de12008-02-08 04:19:31 -0800195
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100196 If you say N here, the kernel will run on single and multiprocessor
197 machines, but will use only one CPU of a multiprocessor machine. If
198 you say Y here, the kernel will run on many, but not all,
199 singleprocessor machines. On a singleprocessor machine, the kernel
200 will run faster if you say N here.
201
202 See also <file:Documentation/i386/IO-APIC.txt>,
203 <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
204 <http://www.tldp.org/docs.html#howto>.
205
206 If you don't know what to do here, say N.
207
208config NR_CPUS
209 int
210 depends on SMP
211 default "2"
212
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100213source "kernel/Kconfig.preempt"
David Howellsb920de12008-02-08 04:19:31 -0800214
David Howellsb920de12008-02-08 04:19:31 -0800215config MN10300_CURRENT_IN_E2
216 bool "Hold current task address in E2 register"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100217 depends on !SMP
David Howellsb920de12008-02-08 04:19:31 -0800218 default y
219 help
220 This option removes the E2/R2 register from the set available to gcc
221 for normal use and instead uses it to store the address of the
222 current process's task_struct whilst in the kernel.
223
224 This means the kernel doesn't need to calculate the address each time
225 "current" is used (take SP, AND with mask and dereference pointer
226 just to get the address), and instead can just use E2+offset
227 addressing each time.
228
229 This has no effect on userspace.
230
231config MN10300_USING_JTAG
232 bool "Using JTAG to debug kernel"
233 default y
234 help
235 This options indicates that JTAG will be used to debug the kernel. It
236 suppresses the use of certain hardware debugging features, such as
237 single-stepping, which are taken over completely by the JTAG unit.
238
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100239source "kernel/Kconfig.hz"
Mark Salter730c1fa2010-10-27 17:28:57 +0100240source "kernel/time/Kconfig"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100241
David Howellsb920de12008-02-08 04:19:31 -0800242config MN10300_RTC
243 bool "Using MN10300 RTC"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100244 depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
245 select GENERIC_CMOS_UPDATE
David Howellsb920de12008-02-08 04:19:31 -0800246 default n
247 help
David Howellsb920de12008-02-08 04:19:31 -0800248 This option enables support for the RTC, thus enabling time to be
249 tracked, even when system is powered down. This is available on-chip
250 on the MN103E010.
251
252config MN10300_WD_TIMER
253 bool "Using MN10300 watchdog timer"
254 default y
255 help
256 This options indicates that the watchdog timer will be used.
257
258config PCI
259 bool "Use PCI"
260 depends on MN10300_UNIT_ASB2305
261 default y
262 help
263 Some systems (such as the ASB2305) have PCI onboard. If you have one
264 of these boards and you wish to use the PCI facilities, say Y here.
265
266 The PCI-HOWTO, available from
267 <http://www.tldp.org/docs.html#howto>, contains valuable
268 information about which PCI hardware does work under Linux and which
269 doesn't.
270
271source "drivers/pci/Kconfig"
272
273source "drivers/pcmcia/Kconfig"
274
275menu "MN10300 internal serial options"
276
277config MN10300_PROC_HAS_TTYSM0
278 bool
279 default n
280
281config MN10300_PROC_HAS_TTYSM1
282 bool
283 default n
284
285config MN10300_PROC_HAS_TTYSM2
286 bool
287 default n
288
289config MN10300_TTYSM
290 bool "Support for ttySM serial ports"
291 depends on MN10300
292 default y
293 select SERIAL_CORE
294 help
295 This option enables support for the on-chip serial ports that the
296 MN10300 has available.
297
298config MN10300_TTYSM_CONSOLE
299 bool "Support for console on ttySM serial ports"
300 depends on MN10300_TTYSM
301 select SERIAL_CORE_CONSOLE
302 help
303 This option enables support for a console on the on-chip serial ports
304 that the MN10300 has available.
305
306#
307# /dev/ttySM0
308#
309config MN10300_TTYSM0
310 bool "Enable SIF0 (/dev/ttySM0)"
311 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM0
312 help
313 Enable access to SIF0 through /dev/ttySM0 or gdb-stub
314
315choice
316 prompt "Select the timer to supply the clock for SIF0"
317 default MN10300_TTYSM0_TIMER8
318 depends on MN10300_TTYSM0
319
320config MN10300_TTYSM0_TIMER8
321 bool "Use timer 8 (16-bit)"
322
323config MN10300_TTYSM0_TIMER2
324 bool "Use timer 2 (8-bit)"
325
326endchoice
327
328#
329# /dev/ttySM1
330#
331config MN10300_TTYSM1
332 bool "Enable SIF1 (/dev/ttySM1)"
333 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM1
334 help
335 Enable access to SIF1 through /dev/ttySM1 or gdb-stub
336
337choice
338 prompt "Select the timer to supply the clock for SIF1"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100339 default MN10300_TTYSM1_TIMER12 \
340 if !(AM33_2 || AM33_3)
341 default MN10300_TTYSM1_TIMER9 \
342 if AM33_2 || AM33_3
David Howellsb920de12008-02-08 04:19:31 -0800343 depends on MN10300_TTYSM1
344
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100345config MN10300_TTYSM1_TIMER12
346 bool "Use timer 12 (16-bit)"
347 depends on !(AM33_2 || AM33_3)
348
David Howellsb920de12008-02-08 04:19:31 -0800349config MN10300_TTYSM1_TIMER9
350 bool "Use timer 9 (16-bit)"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100351 depends on AM33_2 || AM33_3
David Howellsb920de12008-02-08 04:19:31 -0800352
353config MN10300_TTYSM1_TIMER3
354 bool "Use timer 3 (8-bit)"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100355 depends on AM33_2 || AM33_3
David Howellsb920de12008-02-08 04:19:31 -0800356
357endchoice
358
359#
360# /dev/ttySM2
361#
362config MN10300_TTYSM2
363 bool "Enable SIF2 (/dev/ttySM2)"
364 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM2
365 help
366 Enable access to SIF2 through /dev/ttySM2 or gdb-stub
367
368choice
369 prompt "Select the timer to supply the clock for SIF2"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100370 default MN10300_TTYSM2_TIMER3 \
371 if !(AM33_2 || AM33_3)
372 default MN10300_TTYSM2_TIMER10 \
373 if AM33_2 || AM33_3
David Howellsb920de12008-02-08 04:19:31 -0800374 depends on MN10300_TTYSM2
375
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100376config MN10300_TTYSM2_TIMER9
377 bool "Use timer 9 (16-bit)"
378 depends on !(AM33_2 || AM33_3)
379
380config MN10300_TTYSM2_TIMER1
381 bool "Use timer 1 (8-bit)"
382 depends on !(AM33_2 || AM33_3)
383
384config MN10300_TTYSM2_TIMER3
385 bool "Use timer 3 (8-bit)"
386 depends on !(AM33_2 || AM33_3)
387
David Howellsb920de12008-02-08 04:19:31 -0800388config MN10300_TTYSM2_TIMER10
389 bool "Use timer 10 (16-bit)"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100390 depends on AM33_2 || AM33_3
David Howellsb920de12008-02-08 04:19:31 -0800391
392endchoice
393
394config MN10300_TTYSM2_CTS
395 bool "Enable the use of the CTS line /dev/ttySM2"
Akira Takeuchi368dd5a2010-10-27 17:28:55 +0100396 depends on MN10300_TTYSM2 && AM33_2
David Howellsb920de12008-02-08 04:19:31 -0800397
398endmenu
399
Akira Takeuchi37e4ec92010-10-27 17:28:54 +0100400menu "Interrupt request priority options"
401
402comment "[!] NOTE: A lower number/level indicates a higher priority (0 is highest, 6 is lowest)"
403
404comment "____Non-maskable interrupt levels____"
405comment "The following must be set to a higher priority than local_irq_disable() and on-chip serial"
406
David Howells67ddb402011-03-18 16:54:30 +0000407config DEBUGGER_IRQ_LEVEL
408 int "DEBUGGER interrupt priority"
David Howells792576b2011-03-18 16:54:30 +0000409 depends on KERNEL_DEBUGGER
Akira Takeuchi37e4ec92010-10-27 17:28:54 +0100410 range 0 1 if LINUX_CLI_LEVEL = 2
411 range 0 2 if LINUX_CLI_LEVEL = 3
412 range 0 3 if LINUX_CLI_LEVEL = 4
413 range 0 4 if LINUX_CLI_LEVEL = 5
414 range 0 5 if LINUX_CLI_LEVEL = 6
415 default 0
416
417comment "The following must be set to a higher priority than local_irq_disable()"
418
419config MN10300_SERIAL_IRQ_LEVEL
420 int "MN10300 on-chip serial interrupt priority"
421 depends on MN10300_TTYSM
422 range 1 1 if LINUX_CLI_LEVEL = 2
423 range 1 2 if LINUX_CLI_LEVEL = 3
424 range 1 3 if LINUX_CLI_LEVEL = 4
425 range 1 4 if LINUX_CLI_LEVEL = 5
426 range 1 5 if LINUX_CLI_LEVEL = 6
427 default 1
428
429comment "-"
430comment "____Maskable interrupt levels____"
431
432config LINUX_CLI_LEVEL
433 int "The highest interrupt priority excluded by local_irq_disable() (2-6)"
434 range 2 6
435 default 2
436 help
437 local_irq_disable() doesn't actually disable maskable interrupts -
438 what it does is restrict the levels of interrupt which are permitted
439 (a lower level indicates a higher priority) by lowering the value in
440 EPSW.IM from 7. Any interrupt is permitted for which the level is
441 lower than EPSW.IM.
442
David Howells67ddb402011-03-18 16:54:30 +0000443 Certain interrupts, such as DEBUGGER and virtual MN10300 on-chip
Akira Takeuchi37e4ec92010-10-27 17:28:54 +0100444 serial DMA interrupts are allowed to interrupt normal disabled
445 sections.
446
447comment "The following must be set to a equal to or lower priority than LINUX_CLI_LEVEL"
448
449config TIMER_IRQ_LEVEL
450 int "Kernel timer interrupt priority"
451 range LINUX_CLI_LEVEL 6
452 default 4
453
454config PCI_IRQ_LEVEL
455 int "PCI interrupt priority"
456 depends on PCI
457 range LINUX_CLI_LEVEL 6
458 default 5
459
460config ETHERNET_IRQ_LEVEL
461 int "Ethernet interrupt priority"
462 depends on SMC91X || SMC911X || SMSC911X
463 range LINUX_CLI_LEVEL 6
464 default 6
465
466config EXT_SERIAL_IRQ_LEVEL
467 int "External serial port interrupt priority"
468 depends on SERIAL_8250
469 range LINUX_CLI_LEVEL 6
470 default 6
471
472endmenu
473
David Howellsb920de12008-02-08 04:19:31 -0800474source "mm/Kconfig"
475
476menu "Power management options"
477source kernel/power/Kconfig
478endmenu
479
480endmenu
481
482
483menu "Executable formats"
484
485source "fs/Kconfig.binfmt"
486
487endmenu
488
489source "net/Kconfig"
490
491source "drivers/Kconfig"
492
493source "fs/Kconfig"
494
495source "arch/mn10300/Kconfig.debug"
496
497source "security/Kconfig"
498
499source "crypto/Kconfig"
500
501source "lib/Kconfig"