4 select HAVE_GENERIC_HARDIRQS
5 select GENERIC_IRQ_SHOW
6 select HAVE_ARCH_TRACEHOOK
17 select MN10300_HAS_ATOMIC_OPS_UNIT
18 select MN10300_HAS_CACHE_SNOOP
20 config ERRATUM_NEED_TO_RELOAD_MMUCTR
21 def_bool y if AM33_3 || AM34_2
35 config RWSEM_GENERIC_SPINLOCK
38 config RWSEM_XCHGADD_ALGORITHM
41 config GENERIC_CALIBRATE_DELAY
44 config GENERIC_CMOS_UPDATE
47 config GENERIC_FIND_NEXT_BIT
50 config GENERIC_HWEIGHT
56 config GENERIC_CLOCKEVENTS
65 config ARCH_HAS_ILOG2_U32
73 source "kernel/Kconfig.freezer"
76 menu "Panasonic MN10300 system setup"
80 default MN10300_UNIT_ASB2303
82 This option specifies board for which the kernel will be
83 compiled. It affects the external peripherals catered for.
85 config MN10300_UNIT_ASB2303
88 config MN10300_UNIT_ASB2305
91 config MN10300_UNIT_ASB2364
93 select SMSC911X_ARCH_HOOKS if SMSC911X
98 prompt "Processor support"
99 default MN10300_PROC_MN103E010
101 This option specifies the processor for which the kernel will be
102 compiled. It affects the on-chip peripherals catered for.
104 config MN10300_PROC_MN103E010
106 depends on MN10300_UNIT_ASB2303 || MN10300_UNIT_ASB2305
108 select MN10300_PROC_HAS_TTYSM0
109 select MN10300_PROC_HAS_TTYSM1
110 select MN10300_PROC_HAS_TTYSM2
112 config MN10300_PROC_MN2WS0050
114 depends on MN10300_UNIT_ASB2364
116 select MN10300_PROC_HAS_TTYSM0
117 select MN10300_PROC_HAS_TTYSM1
118 select MN10300_PROC_HAS_TTYSM2
122 config MN10300_HAS_ATOMIC_OPS_UNIT
125 This should be enabled if the processor has an atomic ops unit
126 capable of doing LL/SC equivalent operations.
131 depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
134 bool "Save FPU state lazily"
136 depends on FPU && !SMP
138 Enable this to be lazy in the saving of the FPU state to the owning
139 task's thread struct. This is useful if most tasks on the system
140 don't use the FPU as only those tasks that use it will pass it
141 between them, and the state needn't be saved for a task that isn't
144 This can't be so easily used on SMP as the process that owns the FPU
145 state on a CPU may be currently running on another CPU, so for the
146 moment, it is disabled.
148 source "arch/mn10300/mm/Kconfig.cache"
150 config MN10300_TLB_USE_PIDR
153 menu "Memory layout options"
155 config KERNEL_RAM_BASE_ADDRESS
156 hex "Base address of kernel RAM"
159 config INTERRUPT_VECTOR_BASE
160 hex "Base address of vector table"
163 The base address of the vector table will be programmed into
164 the TBR register. It must be on 16MiB address boundary.
166 config KERNEL_TEXT_ADDRESS
167 hex "Base address of kernel"
170 config KERNEL_ZIMAGE_BASE_ADDRESS
171 hex "Base address of compressed vmlinux image"
174 config BOOT_STACK_OFFSET
176 default "0xF00" if SMP
177 default "0xFF0" if !SMP
179 config BOOT_STACK_SIZE
186 bool "Symmetric multi-processing support"
188 select USE_GENERIC_SMP_HELPERS
189 depends on MN10300_PROC_MN2WS0038 || MN10300_PROC_MN2WS0050
191 This enables support for systems with more than one CPU. If you have
192 a system with only one CPU, like most personal computers, say N. If
193 you have a system with more than one CPU, say Y.
195 If you say N here, the kernel will run on single and multiprocessor
196 machines, but will use only one CPU of a multiprocessor machine. If
197 you say Y here, the kernel will run on many, but not all,
198 singleprocessor machines. On a singleprocessor machine, the kernel
199 will run faster if you say N here.
201 See also <file:Documentation/i386/IO-APIC.txt>,
202 <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
203 <http://www.tldp.org/docs.html#howto>.
205 If you don't know what to do here, say N.
212 source "kernel/Kconfig.preempt"
214 config MN10300_CURRENT_IN_E2
215 bool "Hold current task address in E2 register"
219 This option removes the E2/R2 register from the set available to gcc
220 for normal use and instead uses it to store the address of the
221 current process's task_struct whilst in the kernel.
223 This means the kernel doesn't need to calculate the address each time
224 "current" is used (take SP, AND with mask and dereference pointer
225 just to get the address), and instead can just use E2+offset
226 addressing each time.
228 This has no effect on userspace.
230 config MN10300_USING_JTAG
231 bool "Using JTAG to debug kernel"
234 This options indicates that JTAG will be used to debug the kernel. It
235 suppresses the use of certain hardware debugging features, such as
236 single-stepping, which are taken over completely by the JTAG unit.
238 source "kernel/Kconfig.hz"
239 source "kernel/time/Kconfig"
242 bool "Using MN10300 RTC"
243 depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
244 select GENERIC_CMOS_UPDATE
247 This option enables support for the RTC, thus enabling time to be
248 tracked, even when system is powered down. This is available on-chip
251 config MN10300_WD_TIMER
252 bool "Using MN10300 watchdog timer"
255 This options indicates that the watchdog timer will be used.
259 depends on MN10300_UNIT_ASB2305
262 Some systems (such as the ASB2305) have PCI onboard. If you have one
263 of these boards and you wish to use the PCI facilities, say Y here.
265 The PCI-HOWTO, available from
266 <http://www.tldp.org/docs.html#howto>, contains valuable
267 information about which PCI hardware does work under Linux and which
270 source "drivers/pci/Kconfig"
272 source "drivers/pcmcia/Kconfig"
274 menu "MN10300 internal serial options"
276 config MN10300_PROC_HAS_TTYSM0
280 config MN10300_PROC_HAS_TTYSM1
284 config MN10300_PROC_HAS_TTYSM2
289 bool "Support for ttySM serial ports"
294 This option enables support for the on-chip serial ports that the
295 MN10300 has available.
297 config MN10300_TTYSM_CONSOLE
298 bool "Support for console on ttySM serial ports"
299 depends on MN10300_TTYSM
300 select SERIAL_CORE_CONSOLE
302 This option enables support for a console on the on-chip serial ports
303 that the MN10300 has available.
308 config MN10300_TTYSM0
309 bool "Enable SIF0 (/dev/ttySM0)"
310 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM0
312 Enable access to SIF0 through /dev/ttySM0 or gdb-stub
315 prompt "Select the timer to supply the clock for SIF0"
316 default MN10300_TTYSM0_TIMER8
317 depends on MN10300_TTYSM0
319 config MN10300_TTYSM0_TIMER8
320 bool "Use timer 8 (16-bit)"
322 config MN10300_TTYSM0_TIMER2
323 bool "Use timer 2 (8-bit)"
330 config MN10300_TTYSM1
331 bool "Enable SIF1 (/dev/ttySM1)"
332 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM1
334 Enable access to SIF1 through /dev/ttySM1 or gdb-stub
337 prompt "Select the timer to supply the clock for SIF1"
338 default MN10300_TTYSM1_TIMER12 \
339 if !(AM33_2 || AM33_3)
340 default MN10300_TTYSM1_TIMER9 \
342 depends on MN10300_TTYSM1
344 config MN10300_TTYSM1_TIMER12
345 bool "Use timer 12 (16-bit)"
346 depends on !(AM33_2 || AM33_3)
348 config MN10300_TTYSM1_TIMER9
349 bool "Use timer 9 (16-bit)"
350 depends on AM33_2 || AM33_3
352 config MN10300_TTYSM1_TIMER3
353 bool "Use timer 3 (8-bit)"
354 depends on AM33_2 || AM33_3
361 config MN10300_TTYSM2
362 bool "Enable SIF2 (/dev/ttySM2)"
363 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM2
365 Enable access to SIF2 through /dev/ttySM2 or gdb-stub
368 prompt "Select the timer to supply the clock for SIF2"
369 default MN10300_TTYSM2_TIMER3 \
370 if !(AM33_2 || AM33_3)
371 default MN10300_TTYSM2_TIMER10 \
373 depends on MN10300_TTYSM2
375 config MN10300_TTYSM2_TIMER9
376 bool "Use timer 9 (16-bit)"
377 depends on !(AM33_2 || AM33_3)
379 config MN10300_TTYSM2_TIMER1
380 bool "Use timer 1 (8-bit)"
381 depends on !(AM33_2 || AM33_3)
383 config MN10300_TTYSM2_TIMER3
384 bool "Use timer 3 (8-bit)"
385 depends on !(AM33_2 || AM33_3)
387 config MN10300_TTYSM2_TIMER10
388 bool "Use timer 10 (16-bit)"
389 depends on AM33_2 || AM33_3
393 config MN10300_TTYSM2_CTS
394 bool "Enable the use of the CTS line /dev/ttySM2"
395 depends on MN10300_TTYSM2 && AM33_2
399 menu "Interrupt request priority options"
401 comment "[!] NOTE: A lower number/level indicates a higher priority (0 is highest, 6 is lowest)"
403 comment "____Non-maskable interrupt levels____"
404 comment "The following must be set to a higher priority than local_irq_disable() and on-chip serial"
406 config DEBUGGER_IRQ_LEVEL
407 int "DEBUGGER interrupt priority"
408 depends on KERNEL_DEBUGGER
409 range 0 1 if LINUX_CLI_LEVEL = 2
410 range 0 2 if LINUX_CLI_LEVEL = 3
411 range 0 3 if LINUX_CLI_LEVEL = 4
412 range 0 4 if LINUX_CLI_LEVEL = 5
413 range 0 5 if LINUX_CLI_LEVEL = 6
416 comment "The following must be set to a higher priority than local_irq_disable()"
418 config MN10300_SERIAL_IRQ_LEVEL
419 int "MN10300 on-chip serial interrupt priority"
420 depends on MN10300_TTYSM
421 range 1 1 if LINUX_CLI_LEVEL = 2
422 range 1 2 if LINUX_CLI_LEVEL = 3
423 range 1 3 if LINUX_CLI_LEVEL = 4
424 range 1 4 if LINUX_CLI_LEVEL = 5
425 range 1 5 if LINUX_CLI_LEVEL = 6
429 comment "____Maskable interrupt levels____"
431 config LINUX_CLI_LEVEL
432 int "The highest interrupt priority excluded by local_irq_disable() (2-6)"
436 local_irq_disable() doesn't actually disable maskable interrupts -
437 what it does is restrict the levels of interrupt which are permitted
438 (a lower level indicates a higher priority) by lowering the value in
439 EPSW.IM from 7. Any interrupt is permitted for which the level is
442 Certain interrupts, such as DEBUGGER and virtual MN10300 on-chip
443 serial DMA interrupts are allowed to interrupt normal disabled
446 comment "The following must be set to a equal to or lower priority than LINUX_CLI_LEVEL"
448 config TIMER_IRQ_LEVEL
449 int "Kernel timer interrupt priority"
450 range LINUX_CLI_LEVEL 6
454 int "PCI interrupt priority"
456 range LINUX_CLI_LEVEL 6
459 config ETHERNET_IRQ_LEVEL
460 int "Ethernet interrupt priority"
461 depends on SMC91X || SMC911X || SMSC911X
462 range LINUX_CLI_LEVEL 6
465 config EXT_SERIAL_IRQ_LEVEL
466 int "External serial port interrupt priority"
467 depends on SERIAL_8250
468 range LINUX_CLI_LEVEL 6
475 menu "Power management options"
476 source kernel/power/Kconfig
482 menu "Executable formats"
484 source "fs/Kconfig.binfmt"
490 source "drivers/Kconfig"
494 source "arch/mn10300/Kconfig.debug"
496 source "security/Kconfig"
498 source "crypto/Kconfig"