4 select HAVE_GENERIC_HARDIRQS
5 select GENERIC_HARDIRQS_NO_DEPRECATED
6 select GENERIC_IRQ_SHOW
7 select HAVE_ARCH_TRACEHOOK
18 select MN10300_HAS_ATOMIC_OPS_UNIT
19 select MN10300_HAS_CACHE_SNOOP
21 config ERRATUM_NEED_TO_RELOAD_MMUCTR
22 def_bool y if AM33_3 || AM34_2
36 config RWSEM_GENERIC_SPINLOCK
39 config RWSEM_XCHGADD_ALGORITHM
42 config GENERIC_CALIBRATE_DELAY
45 config GENERIC_CMOS_UPDATE
48 config GENERIC_FIND_NEXT_BIT
51 config GENERIC_HWEIGHT
57 config GENERIC_CLOCKEVENTS
66 config ARCH_HAS_ILOG2_U32
74 source "kernel/Kconfig.freezer"
77 menu "Panasonic MN10300 system setup"
81 default MN10300_UNIT_ASB2303
83 This option specifies board for which the kernel will be
84 compiled. It affects the external peripherals catered for.
86 config MN10300_UNIT_ASB2303
89 config MN10300_UNIT_ASB2305
92 config MN10300_UNIT_ASB2364
94 select SMSC911X_ARCH_HOOKS if SMSC911X
99 prompt "Processor support"
100 default MN10300_PROC_MN103E010
102 This option specifies the processor for which the kernel will be
103 compiled. It affects the on-chip peripherals catered for.
105 config MN10300_PROC_MN103E010
107 depends on MN10300_UNIT_ASB2303 || MN10300_UNIT_ASB2305
109 select MN10300_PROC_HAS_TTYSM0
110 select MN10300_PROC_HAS_TTYSM1
111 select MN10300_PROC_HAS_TTYSM2
113 config MN10300_PROC_MN2WS0050
115 depends on MN10300_UNIT_ASB2364
117 select MN10300_PROC_HAS_TTYSM0
118 select MN10300_PROC_HAS_TTYSM1
119 select MN10300_PROC_HAS_TTYSM2
123 config MN10300_HAS_ATOMIC_OPS_UNIT
126 This should be enabled if the processor has an atomic ops unit
127 capable of doing LL/SC equivalent operations.
132 depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
135 bool "Save FPU state lazily"
137 depends on FPU && !SMP
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
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.
149 source "arch/mn10300/mm/Kconfig.cache"
151 config MN10300_TLB_USE_PIDR
154 menu "Memory layout options"
156 config KERNEL_RAM_BASE_ADDRESS
157 hex "Base address of kernel RAM"
160 config INTERRUPT_VECTOR_BASE
161 hex "Base address of vector table"
164 The base address of the vector table will be programmed into
165 the TBR register. It must be on 16MiB address boundary.
167 config KERNEL_TEXT_ADDRESS
168 hex "Base address of kernel"
171 config KERNEL_ZIMAGE_BASE_ADDRESS
172 hex "Base address of compressed vmlinux image"
175 config BOOT_STACK_OFFSET
177 default "0xF00" if SMP
178 default "0xFF0" if !SMP
180 config BOOT_STACK_SIZE
187 bool "Symmetric multi-processing support"
189 select USE_GENERIC_SMP_HELPERS
190 depends on MN10300_PROC_MN2WS0038 || MN10300_PROC_MN2WS0050
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.
196 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.
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>.
206 If you don't know what to do here, say N.
213 source "kernel/Kconfig.preempt"
215 config MN10300_CURRENT_IN_E2
216 bool "Hold current task address in E2 register"
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.
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.
229 This has no effect on userspace.
231 config MN10300_USING_JTAG
232 bool "Using JTAG to debug kernel"
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.
239 source "kernel/Kconfig.hz"
240 source "kernel/time/Kconfig"
243 bool "Using MN10300 RTC"
244 depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
245 select GENERIC_CMOS_UPDATE
248 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
252 config MN10300_WD_TIMER
253 bool "Using MN10300 watchdog timer"
256 This options indicates that the watchdog timer will be used.
260 depends on MN10300_UNIT_ASB2305
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.
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
271 source "drivers/pci/Kconfig"
273 source "drivers/pcmcia/Kconfig"
275 menu "MN10300 internal serial options"
277 config MN10300_PROC_HAS_TTYSM0
281 config MN10300_PROC_HAS_TTYSM1
285 config MN10300_PROC_HAS_TTYSM2
290 bool "Support for ttySM serial ports"
295 This option enables support for the on-chip serial ports that the
296 MN10300 has available.
298 config MN10300_TTYSM_CONSOLE
299 bool "Support for console on ttySM serial ports"
300 depends on MN10300_TTYSM
301 select SERIAL_CORE_CONSOLE
303 This option enables support for a console on the on-chip serial ports
304 that the MN10300 has available.
309 config MN10300_TTYSM0
310 bool "Enable SIF0 (/dev/ttySM0)"
311 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM0
313 Enable access to SIF0 through /dev/ttySM0 or gdb-stub
316 prompt "Select the timer to supply the clock for SIF0"
317 default MN10300_TTYSM0_TIMER8
318 depends on MN10300_TTYSM0
320 config MN10300_TTYSM0_TIMER8
321 bool "Use timer 8 (16-bit)"
323 config MN10300_TTYSM0_TIMER2
324 bool "Use timer 2 (8-bit)"
331 config MN10300_TTYSM1
332 bool "Enable SIF1 (/dev/ttySM1)"
333 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM1
335 Enable access to SIF1 through /dev/ttySM1 or gdb-stub
338 prompt "Select the timer to supply the clock for SIF1"
339 default MN10300_TTYSM1_TIMER12 \
340 if !(AM33_2 || AM33_3)
341 default MN10300_TTYSM1_TIMER9 \
343 depends on MN10300_TTYSM1
345 config MN10300_TTYSM1_TIMER12
346 bool "Use timer 12 (16-bit)"
347 depends on !(AM33_2 || AM33_3)
349 config MN10300_TTYSM1_TIMER9
350 bool "Use timer 9 (16-bit)"
351 depends on AM33_2 || AM33_3
353 config MN10300_TTYSM1_TIMER3
354 bool "Use timer 3 (8-bit)"
355 depends on AM33_2 || AM33_3
362 config MN10300_TTYSM2
363 bool "Enable SIF2 (/dev/ttySM2)"
364 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM2
366 Enable access to SIF2 through /dev/ttySM2 or gdb-stub
369 prompt "Select the timer to supply the clock for SIF2"
370 default MN10300_TTYSM2_TIMER3 \
371 if !(AM33_2 || AM33_3)
372 default MN10300_TTYSM2_TIMER10 \
374 depends on MN10300_TTYSM2
376 config MN10300_TTYSM2_TIMER9
377 bool "Use timer 9 (16-bit)"
378 depends on !(AM33_2 || AM33_3)
380 config MN10300_TTYSM2_TIMER1
381 bool "Use timer 1 (8-bit)"
382 depends on !(AM33_2 || AM33_3)
384 config MN10300_TTYSM2_TIMER3
385 bool "Use timer 3 (8-bit)"
386 depends on !(AM33_2 || AM33_3)
388 config MN10300_TTYSM2_TIMER10
389 bool "Use timer 10 (16-bit)"
390 depends on AM33_2 || AM33_3
394 config MN10300_TTYSM2_CTS
395 bool "Enable the use of the CTS line /dev/ttySM2"
396 depends on MN10300_TTYSM2 && AM33_2
400 menu "Interrupt request priority options"
402 comment "[!] NOTE: A lower number/level indicates a higher priority (0 is highest, 6 is lowest)"
404 comment "____Non-maskable interrupt levels____"
405 comment "The following must be set to a higher priority than local_irq_disable() and on-chip serial"
407 config DEBUGGER_IRQ_LEVEL
408 int "DEBUGGER interrupt priority"
409 depends on KERNEL_DEBUGGER
410 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
417 comment "The following must be set to a higher priority than local_irq_disable()"
419 config 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
430 comment "____Maskable interrupt levels____"
432 config LINUX_CLI_LEVEL
433 int "The highest interrupt priority excluded by local_irq_disable() (2-6)"
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
443 Certain interrupts, such as DEBUGGER and virtual MN10300 on-chip
444 serial DMA interrupts are allowed to interrupt normal disabled
447 comment "The following must be set to a equal to or lower priority than LINUX_CLI_LEVEL"
449 config TIMER_IRQ_LEVEL
450 int "Kernel timer interrupt priority"
451 range LINUX_CLI_LEVEL 6
455 int "PCI interrupt priority"
457 range LINUX_CLI_LEVEL 6
460 config ETHERNET_IRQ_LEVEL
461 int "Ethernet interrupt priority"
462 depends on SMC91X || SMC911X || SMSC911X
463 range LINUX_CLI_LEVEL 6
466 config EXT_SERIAL_IRQ_LEVEL
467 int "External serial port interrupt priority"
468 depends on SERIAL_8250
469 range LINUX_CLI_LEVEL 6
476 menu "Power management options"
477 source kernel/power/Kconfig
483 menu "Executable formats"
485 source "fs/Kconfig.binfmt"
491 source "drivers/Kconfig"
495 source "arch/mn10300/Kconfig.debug"
497 source "security/Kconfig"
499 source "crypto/Kconfig"