]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/sh/Kconfig
0917fc3f39c012e2c28109b69b76a359b417c811
[mirror_ubuntu-artful-kernel.git] / arch / sh / Kconfig
1 config SUPERH
2 def_bool y
3 select EXPERT
4 select CLKDEV_LOOKUP
5 select HAVE_IDE if HAS_IOPORT
6 select HAVE_MEMBLOCK
7 select HAVE_MEMBLOCK_NODE_MAP
8 select ARCH_DISCARD_MEMBLOCK
9 select HAVE_OPROFILE
10 select HAVE_GENERIC_DMA_COHERENT
11 select HAVE_ARCH_TRACEHOOK
12 select HAVE_DMA_API_DEBUG
13 select HAVE_DMA_ATTRS
14 select HAVE_PERF_EVENTS
15 select HAVE_DEBUG_BUGVERBOSE
16 select ARCH_HAVE_CUSTOM_GPIO_H
17 select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
18 select PERF_USE_VMALLOC
19 select HAVE_DEBUG_KMEMLEAK
20 select HAVE_KERNEL_GZIP
21 select HAVE_KERNEL_BZIP2
22 select HAVE_KERNEL_LZMA
23 select HAVE_KERNEL_XZ
24 select HAVE_KERNEL_LZO
25 select HAVE_UID16
26 select ARCH_WANT_IPC_PARSE_VERSION
27 select HAVE_SYSCALL_TRACEPOINTS
28 select HAVE_REGS_AND_STACK_ACCESS_API
29 select HAVE_GENERIC_HARDIRQS
30 select MAY_HAVE_SPARSE_IRQ
31 select IRQ_FORCED_THREADING
32 select RTC_LIB
33 select GENERIC_ATOMIC64
34 select GENERIC_IRQ_SHOW
35 select GENERIC_SMP_IDLE_THREAD
36 select GENERIC_IDLE_LOOP
37 select GENERIC_IDLE_POLL_SETUP
38 select GENERIC_CLOCKEVENTS
39 select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
40 select GENERIC_STRNCPY_FROM_USER
41 select GENERIC_STRNLEN_USER
42 select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
43 select MODULES_USE_ELF_RELA
44 select OLD_SIGSUSPEND
45 select OLD_SIGACTION
46 help
47 The SuperH is a RISC processor targeted for use in embedded systems
48 and consumer electronics; it was also used in the Sega Dreamcast
49 gaming console. The SuperH port has a home page at
50 <http://www.linux-sh.org/>.
51
52 config SUPERH32
53 def_bool ARCH = "sh"
54 select HAVE_KPROBES
55 select HAVE_KRETPROBES
56 select HAVE_IOREMAP_PROT if MMU && !X2TLB
57 select HAVE_FUNCTION_TRACER
58 select HAVE_FTRACE_MCOUNT_RECORD
59 select HAVE_DYNAMIC_FTRACE
60 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
61 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
62 select ARCH_WANT_IPC_PARSE_VERSION
63 select HAVE_FUNCTION_GRAPH_TRACER
64 select HAVE_ARCH_KGDB
65 select HAVE_HW_BREAKPOINT
66 select HAVE_MIXED_BREAKPOINTS_REGS
67 select PERF_EVENTS
68 select ARCH_HIBERNATION_POSSIBLE if MMU
69 select SPARSE_IRQ
70
71 config SUPERH64
72 def_bool ARCH = "sh64"
73 select KALLSYMS
74
75 config ARCH_DEFCONFIG
76 string
77 default "arch/sh/configs/shx3_defconfig" if SUPERH32
78 default "arch/sh/configs/cayman_defconfig" if SUPERH64
79
80 config RWSEM_GENERIC_SPINLOCK
81 def_bool y
82
83 config RWSEM_XCHGADD_ALGORITHM
84 bool
85
86 config GENERIC_BUG
87 def_bool y
88 depends on BUG && SUPERH32
89
90 config GENERIC_CSUM
91 def_bool y
92 depends on SUPERH64
93
94 config GENERIC_HWEIGHT
95 def_bool y
96
97 config GENERIC_GPIO
98 def_bool n
99
100 config GENERIC_CALIBRATE_DELAY
101 bool
102
103 config GENERIC_LOCKBREAK
104 def_bool y
105 depends on SMP && PREEMPT
106
107 config ARCH_SUSPEND_POSSIBLE
108 def_bool n
109
110 config ARCH_HIBERNATION_POSSIBLE
111 def_bool n
112
113 config SYS_SUPPORTS_APM_EMULATION
114 bool
115 select ARCH_SUSPEND_POSSIBLE
116
117 config SYS_SUPPORTS_HUGETLBFS
118 bool
119
120 config SYS_SUPPORTS_SMP
121 bool
122
123 config SYS_SUPPORTS_NUMA
124 bool
125
126 config SYS_SUPPORTS_PCI
127 bool
128
129 config SYS_SUPPORTS_CMT
130 bool
131
132 config SYS_SUPPORTS_MTU2
133 bool
134
135 config SYS_SUPPORTS_TMU
136 bool
137
138 config STACKTRACE_SUPPORT
139 def_bool y
140
141 config LOCKDEP_SUPPORT
142 def_bool y
143
144 config HAVE_LATENCYTOP_SUPPORT
145 def_bool y
146
147 config ARCH_HAS_ILOG2_U32
148 def_bool n
149
150 config ARCH_HAS_ILOG2_U64
151 def_bool n
152
153 config NO_IOPORT
154 def_bool !PCI
155 depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \
156 !SH_HP6XX && !SH_SOLUTION_ENGINE
157
158 config IO_TRAPPED
159 bool
160
161 config SWAP_IO_SPACE
162 bool
163
164 config DMA_COHERENT
165 bool
166
167 config DMA_NONCOHERENT
168 def_bool !DMA_COHERENT
169
170 config NEED_DMA_MAP_STATE
171 def_bool DMA_NONCOHERENT
172
173 config NEED_SG_DMA_LENGTH
174 def_bool y
175
176 source "init/Kconfig"
177
178 source "kernel/Kconfig.freezer"
179
180 menu "System type"
181
182 #
183 # Processor families
184 #
185 config CPU_SH2
186 bool
187
188 config CPU_SH2A
189 bool
190 select CPU_SH2
191 select UNCACHED_MAPPING
192
193 config CPU_SH3
194 bool
195 select CPU_HAS_INTEVT
196 select CPU_HAS_SR_RB
197 select SYS_SUPPORTS_TMU
198
199 config CPU_SH4
200 bool
201 select CPU_HAS_INTEVT
202 select CPU_HAS_SR_RB
203 select CPU_HAS_FPU if !CPU_SH4AL_DSP
204 select SYS_SUPPORTS_TMU
205 select SYS_SUPPORTS_HUGETLBFS if MMU
206
207 config CPU_SH4A
208 bool
209 select CPU_SH4
210
211 config CPU_SH4AL_DSP
212 bool
213 select CPU_SH4A
214 select CPU_HAS_DSP
215
216 config CPU_SH5
217 bool
218 select CPU_HAS_FPU
219 select SYS_SUPPORTS_TMU
220 select SYS_SUPPORTS_HUGETLBFS if MMU
221
222 config CPU_SHX2
223 bool
224
225 config CPU_SHX3
226 bool
227 select DMA_COHERENT
228 select SYS_SUPPORTS_SMP
229 select SYS_SUPPORTS_NUMA
230
231 config ARCH_SHMOBILE
232 bool
233 select ARCH_SUSPEND_POSSIBLE
234 select PM
235 select PM_RUNTIME
236
237 config CPU_HAS_PMU
238 depends on CPU_SH4 || CPU_SH4A
239 default y
240 bool
241
242 if SUPERH32
243
244 choice
245 prompt "Processor sub-type selection"
246
247 #
248 # Processor subtypes
249 #
250
251 # SH-2 Processor Support
252
253 config CPU_SUBTYPE_SH7619
254 bool "Support SH7619 processor"
255 select CPU_SH2
256 select SYS_SUPPORTS_CMT
257
258 # SH-2A Processor Support
259
260 config CPU_SUBTYPE_SH7201
261 bool "Support SH7201 processor"
262 select CPU_SH2A
263 select CPU_HAS_FPU
264 select SYS_SUPPORTS_MTU2
265
266 config CPU_SUBTYPE_SH7203
267 bool "Support SH7203 processor"
268 select CPU_SH2A
269 select CPU_HAS_FPU
270 select SYS_SUPPORTS_CMT
271 select SYS_SUPPORTS_MTU2
272 select ARCH_WANT_OPTIONAL_GPIOLIB
273 select PINCTRL
274
275 config CPU_SUBTYPE_SH7206
276 bool "Support SH7206 processor"
277 select CPU_SH2A
278 select SYS_SUPPORTS_CMT
279 select SYS_SUPPORTS_MTU2
280
281 config CPU_SUBTYPE_SH7263
282 bool "Support SH7263 processor"
283 select CPU_SH2A
284 select CPU_HAS_FPU
285 select SYS_SUPPORTS_CMT
286 select SYS_SUPPORTS_MTU2
287
288 config CPU_SUBTYPE_SH7264
289 bool "Support SH7264 processor"
290 select CPU_SH2A
291 select CPU_HAS_FPU
292 select SYS_SUPPORTS_CMT
293 select SYS_SUPPORTS_MTU2
294 select PINCTRL
295
296 config CPU_SUBTYPE_SH7269
297 bool "Support SH7269 processor"
298 select CPU_SH2A
299 select CPU_HAS_FPU
300 select SYS_SUPPORTS_CMT
301 select SYS_SUPPORTS_MTU2
302 select PINCTRL
303
304 config CPU_SUBTYPE_MXG
305 bool "Support MX-G processor"
306 select CPU_SH2A
307 select SYS_SUPPORTS_MTU2
308 help
309 Select MX-G if running on an R8A03022BG part.
310
311 # SH-3 Processor Support
312
313 config CPU_SUBTYPE_SH7705
314 bool "Support SH7705 processor"
315 select CPU_SH3
316
317 config CPU_SUBTYPE_SH7706
318 bool "Support SH7706 processor"
319 select CPU_SH3
320 help
321 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
322
323 config CPU_SUBTYPE_SH7707
324 bool "Support SH7707 processor"
325 select CPU_SH3
326 help
327 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
328
329 config CPU_SUBTYPE_SH7708
330 bool "Support SH7708 processor"
331 select CPU_SH3
332 help
333 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
334 if you have a 100 Mhz SH-3 HD6417708R CPU.
335
336 config CPU_SUBTYPE_SH7709
337 bool "Support SH7709 processor"
338 select CPU_SH3
339 help
340 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
341
342 config CPU_SUBTYPE_SH7710
343 bool "Support SH7710 processor"
344 select CPU_SH3
345 select CPU_HAS_DSP
346 help
347 Select SH7710 if you have a SH3-DSP SH7710 CPU.
348
349 config CPU_SUBTYPE_SH7712
350 bool "Support SH7712 processor"
351 select CPU_SH3
352 select CPU_HAS_DSP
353 help
354 Select SH7712 if you have a SH3-DSP SH7712 CPU.
355
356 config CPU_SUBTYPE_SH7720
357 bool "Support SH7720 processor"
358 select CPU_SH3
359 select CPU_HAS_DSP
360 select SYS_SUPPORTS_CMT
361 select ARCH_WANT_OPTIONAL_GPIOLIB
362 select USB_ARCH_HAS_OHCI
363 select USB_OHCI_SH if USB_OHCI_HCD
364 select PINCTRL
365 help
366 Select SH7720 if you have a SH3-DSP SH7720 CPU.
367
368 config CPU_SUBTYPE_SH7721
369 bool "Support SH7721 processor"
370 select CPU_SH3
371 select CPU_HAS_DSP
372 select SYS_SUPPORTS_CMT
373 select USB_ARCH_HAS_OHCI
374 select USB_OHCI_SH if USB_OHCI_HCD
375 help
376 Select SH7721 if you have a SH3-DSP SH7721 CPU.
377
378 # SH-4 Processor Support
379
380 config CPU_SUBTYPE_SH7750
381 bool "Support SH7750 processor"
382 select CPU_SH4
383 help
384 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
385
386 config CPU_SUBTYPE_SH7091
387 bool "Support SH7091 processor"
388 select CPU_SH4
389 help
390 Select SH7091 if you have an SH-4 based Sega device (such as
391 the Dreamcast, Naomi, and Naomi 2).
392
393 config CPU_SUBTYPE_SH7750R
394 bool "Support SH7750R processor"
395 select CPU_SH4
396
397 config CPU_SUBTYPE_SH7750S
398 bool "Support SH7750S processor"
399 select CPU_SH4
400
401 config CPU_SUBTYPE_SH7751
402 bool "Support SH7751 processor"
403 select CPU_SH4
404 help
405 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
406 or if you have a HD6417751R CPU.
407
408 config CPU_SUBTYPE_SH7751R
409 bool "Support SH7751R processor"
410 select CPU_SH4
411
412 config CPU_SUBTYPE_SH7760
413 bool "Support SH7760 processor"
414 select CPU_SH4
415
416 config CPU_SUBTYPE_SH4_202
417 bool "Support SH4-202 processor"
418 select CPU_SH4
419
420 # SH-4A Processor Support
421
422 config CPU_SUBTYPE_SH7723
423 bool "Support SH7723 processor"
424 select CPU_SH4A
425 select CPU_SHX2
426 select ARCH_SHMOBILE
427 select ARCH_SPARSEMEM_ENABLE
428 select SYS_SUPPORTS_CMT
429 select ARCH_WANT_OPTIONAL_GPIOLIB
430 select PINCTRL
431 help
432 Select SH7723 if you have an SH-MobileR2 CPU.
433
434 config CPU_SUBTYPE_SH7724
435 bool "Support SH7724 processor"
436 select CPU_SH4A
437 select CPU_SHX2
438 select ARCH_SHMOBILE
439 select ARCH_SPARSEMEM_ENABLE
440 select SYS_SUPPORTS_CMT
441 select ARCH_WANT_OPTIONAL_GPIOLIB
442 select PINCTRL
443 help
444 Select SH7724 if you have an SH-MobileR2R CPU.
445
446 config CPU_SUBTYPE_SH7734
447 bool "Support SH7734 processor"
448 select CPU_SH4A
449 select CPU_SHX2
450 select ARCH_WANT_OPTIONAL_GPIOLIB
451 select USB_ARCH_HAS_OHCI
452 select USB_ARCH_HAS_EHCI
453 select PINCTRL
454 help
455 Select SH7734 if you have a SH4A SH7734 CPU.
456
457 config CPU_SUBTYPE_SH7757
458 bool "Support SH7757 processor"
459 select CPU_SH4A
460 select CPU_SHX2
461 select ARCH_WANT_OPTIONAL_GPIOLIB
462 select USB_ARCH_HAS_OHCI
463 select USB_ARCH_HAS_EHCI
464 select PINCTRL
465 help
466 Select SH7757 if you have a SH4A SH7757 CPU.
467
468 config CPU_SUBTYPE_SH7763
469 bool "Support SH7763 processor"
470 select CPU_SH4A
471 select USB_ARCH_HAS_OHCI
472 select USB_OHCI_SH if USB_OHCI_HCD
473 help
474 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
475
476 config CPU_SUBTYPE_SH7770
477 bool "Support SH7770 processor"
478 select CPU_SH4A
479
480 config CPU_SUBTYPE_SH7780
481 bool "Support SH7780 processor"
482 select CPU_SH4A
483
484 config CPU_SUBTYPE_SH7785
485 bool "Support SH7785 processor"
486 select CPU_SH4A
487 select CPU_SHX2
488 select ARCH_SPARSEMEM_ENABLE
489 select SYS_SUPPORTS_NUMA
490 select ARCH_WANT_OPTIONAL_GPIOLIB
491 select PINCTRL
492
493 config CPU_SUBTYPE_SH7786
494 bool "Support SH7786 processor"
495 select CPU_SH4A
496 select CPU_SHX3
497 select CPU_HAS_PTEAEX
498 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
499 select ARCH_WANT_OPTIONAL_GPIOLIB
500 select USB_ARCH_HAS_OHCI
501 select USB_OHCI_SH if USB_OHCI_HCD
502 select USB_ARCH_HAS_EHCI
503 select USB_EHCI_SH if USB_EHCI_HCD
504 select PINCTRL
505
506 config CPU_SUBTYPE_SHX3
507 bool "Support SH-X3 processor"
508 select CPU_SH4A
509 select CPU_SHX3
510 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
511 select ARCH_REQUIRE_GPIOLIB
512 select PINCTRL
513
514 # SH4AL-DSP Processor Support
515
516 config CPU_SUBTYPE_SH7343
517 bool "Support SH7343 processor"
518 select CPU_SH4AL_DSP
519 select ARCH_SHMOBILE
520 select SYS_SUPPORTS_CMT
521
522 config CPU_SUBTYPE_SH7722
523 bool "Support SH7722 processor"
524 select CPU_SH4AL_DSP
525 select CPU_SHX2
526 select ARCH_SHMOBILE
527 select ARCH_SPARSEMEM_ENABLE
528 select SYS_SUPPORTS_NUMA
529 select SYS_SUPPORTS_CMT
530 select ARCH_WANT_OPTIONAL_GPIOLIB
531 select PINCTRL
532
533 config CPU_SUBTYPE_SH7366
534 bool "Support SH7366 processor"
535 select CPU_SH4AL_DSP
536 select CPU_SHX2
537 select ARCH_SHMOBILE
538 select ARCH_SPARSEMEM_ENABLE
539 select SYS_SUPPORTS_NUMA
540 select SYS_SUPPORTS_CMT
541
542 endchoice
543
544 endif
545
546 if SUPERH64
547
548 choice
549 prompt "Processor sub-type selection"
550
551 # SH-5 Processor Support
552
553 config CPU_SUBTYPE_SH5_101
554 bool "Support SH5-101 processor"
555 select CPU_SH5
556
557 config CPU_SUBTYPE_SH5_103
558 bool "Support SH5-103 processor"
559 select CPU_SH5
560
561 endchoice
562
563 endif
564
565 source "arch/sh/mm/Kconfig"
566
567 source "arch/sh/Kconfig.cpu"
568
569 source "arch/sh/boards/Kconfig"
570
571 menu "Timer and clock configuration"
572
573 config SH_TIMER_TMU
574 bool "TMU timer driver"
575 depends on SYS_SUPPORTS_TMU
576 default y
577 help
578 This enables the build of the TMU timer driver.
579
580 config SH_TIMER_CMT
581 bool "CMT timer driver"
582 depends on SYS_SUPPORTS_CMT
583 default y
584 help
585 This enables build of the CMT timer driver.
586
587 config SH_TIMER_MTU2
588 bool "MTU2 timer driver"
589 depends on SYS_SUPPORTS_MTU2
590 default y
591 help
592 This enables build of the MTU2 timer driver.
593
594 config SH_PCLK_FREQ
595 int "Peripheral clock frequency (in Hz)"
596 depends on SH_CLK_CPG_LEGACY
597 default "31250000" if CPU_SUBTYPE_SH7619
598 default "33333333" if CPU_SUBTYPE_SH7770 || \
599 CPU_SUBTYPE_SH7760 || \
600 CPU_SUBTYPE_SH7705 || \
601 CPU_SUBTYPE_SH7203 || \
602 CPU_SUBTYPE_SH7206 || \
603 CPU_SUBTYPE_SH7263 || \
604 CPU_SUBTYPE_MXG
605 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
606 default "66000000" if CPU_SUBTYPE_SH4_202
607 default "50000000"
608 help
609 This option is used to specify the peripheral clock frequency.
610 This is necessary for determining the reference clock value on
611 platforms lacking an RTC.
612
613 config SH_CLK_CPG
614 def_bool y
615
616 config SH_CLK_CPG_LEGACY
617 depends on SH_CLK_CPG
618 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
619 !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
620 !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
621 !CPU_SUBTYPE_SH7269
622
623 endmenu
624
625 menu "CPU Frequency scaling"
626
627 source "drivers/cpufreq/Kconfig"
628
629 config SH_CPU_FREQ
630 tristate "SuperH CPU Frequency driver"
631 depends on CPU_FREQ
632 select CPU_FREQ_TABLE
633 help
634 This adds the cpufreq driver for SuperH. Any CPU that supports
635 clock rate rounding through the clock framework can use this
636 driver. While it will make the kernel slightly larger, this is
637 harmless for CPUs that don't support rate rounding. The driver
638 will also generate a notice in the boot log before disabling
639 itself if the CPU in question is not capable of rate rounding.
640
641 For details, take a look at <file:Documentation/cpu-freq>.
642
643 If unsure, say N.
644
645 endmenu
646
647 source "arch/sh/drivers/Kconfig"
648
649 endmenu
650
651 menu "Kernel features"
652
653 source kernel/Kconfig.hz
654
655 config KEXEC
656 bool "kexec system call (EXPERIMENTAL)"
657 depends on SUPERH32 && MMU
658 help
659 kexec is a system call that implements the ability to shutdown your
660 current kernel, and to start another kernel. It is like a reboot
661 but it is independent of the system firmware. And like a reboot
662 you can start any kernel with it, not just Linux.
663
664 The name comes from the similarity to the exec system call.
665
666 It is an ongoing process to be certain the hardware in a machine
667 is properly shutdown, so do not be surprised if this code does not
668 initially work for you. It may help to enable device hotplugging
669 support. As of this writing the exact hardware interface is
670 strongly in flux, so no good recommendation can be made.
671
672 config CRASH_DUMP
673 bool "kernel crash dumps (EXPERIMENTAL)"
674 depends on SUPERH32 && BROKEN_ON_SMP
675 help
676 Generate crash dump after being started by kexec.
677 This should be normally only set in special crash dump kernels
678 which are loaded in the main kernel with kexec-tools into
679 a specially reserved region and then later executed after
680 a crash by kdump/kexec. The crash dump kernel must be compiled
681 to a memory address not used by the main kernel using
682 PHYSICAL_START.
683
684 For more details see Documentation/kdump/kdump.txt
685
686 config KEXEC_JUMP
687 bool "kexec jump (EXPERIMENTAL)"
688 depends on SUPERH32 && KEXEC && HIBERNATION
689 help
690 Jump between original kernel and kexeced kernel and invoke
691 code via KEXEC
692
693 config PHYSICAL_START
694 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
695 default MEMORY_START
696 ---help---
697 This gives the physical address where the kernel is loaded
698 and is ordinarily the same as MEMORY_START.
699
700 Different values are primarily used in the case of kexec on panic
701 where the fail safe kernel needs to run at a different address
702 than the panic-ed kernel.
703
704 config SECCOMP
705 bool "Enable seccomp to safely compute untrusted bytecode"
706 depends on PROC_FS
707 help
708 This kernel feature is useful for number crunching applications
709 that may need to compute untrusted bytecode during their
710 execution. By using pipes or other transports made available to
711 the process as file descriptors supporting the read/write
712 syscalls, it's possible to isolate those applications in
713 their own address space using seccomp. Once seccomp is
714 enabled via prctl, it cannot be disabled and the task is only
715 allowed to execute a few safe syscalls defined by each seccomp
716 mode.
717
718 If unsure, say N.
719
720 config CC_STACKPROTECTOR
721 bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)"
722 depends on SUPERH32
723 help
724 This option turns on the -fstack-protector GCC feature. This
725 feature puts, at the beginning of functions, a canary value on
726 the stack just before the return address, and validates
727 the value just before actually returning. Stack based buffer
728 overflows (that need to overwrite this return address) now also
729 overwrite the canary, which gets detected and the attack is then
730 neutralized via a kernel panic.
731
732 This feature requires gcc version 4.2 or above.
733
734 config SMP
735 bool "Symmetric multi-processing support"
736 depends on SYS_SUPPORTS_SMP
737 select USE_GENERIC_SMP_HELPERS
738 ---help---
739 This enables support for systems with more than one CPU. If you have
740 a system with only one CPU, like most personal computers, say N. If
741 you have a system with more than one CPU, say Y.
742
743 If you say N here, the kernel will run on single and multiprocessor
744 machines, but will use only one CPU of a multiprocessor machine. If
745 you say Y here, the kernel will run on many, but not all,
746 singleprocessor machines. On a singleprocessor machine, the kernel
747 will run faster if you say N here.
748
749 People using multiprocessor machines who say Y here should also say
750 Y to "Enhanced Real Time Clock Support", below.
751
752 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
753 available at <http://www.tldp.org/docs.html#howto>.
754
755 If you don't know what to do here, say N.
756
757 config NR_CPUS
758 int "Maximum number of CPUs (2-32)"
759 range 2 32
760 depends on SMP
761 default "4" if CPU_SUBTYPE_SHX3
762 default "2"
763 help
764 This allows you to specify the maximum number of CPUs which this
765 kernel will support. The maximum supported value is 32 and the
766 minimum value which makes sense is 2.
767
768 This is purely to save memory - each supported CPU adds
769 approximately eight kilobytes to the kernel image.
770
771 config HOTPLUG_CPU
772 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
773 depends on SMP && HOTPLUG
774 help
775 Say Y here to experiment with turning CPUs off and on. CPUs
776 can be controlled through /sys/devices/system/cpu.
777
778 source "kernel/Kconfig.preempt"
779
780 config GUSA
781 def_bool y
782 depends on !SMP && SUPERH32
783 help
784 This enables support for gUSA (general UserSpace Atomicity).
785 This is the default implementation for both UP and non-ll/sc
786 CPUs, and is used by the libc, amongst others.
787
788 For additional information, design information can be found
789 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
790
791 This should only be disabled for special cases where alternate
792 atomicity implementations exist.
793
794 config GUSA_RB
795 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
796 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
797 help
798 Enabling this option will allow the kernel to implement some
799 atomic operations using a software implementation of load-locked/
800 store-conditional (LLSC). On machines which do not have hardware
801 LLSC, this should be more efficient than the other alternative of
802 disabling interrupts around the atomic sequence.
803
804 config HW_PERF_EVENTS
805 bool "Enable hardware performance counter support for perf events"
806 depends on PERF_EVENTS && CPU_HAS_PMU
807 default y
808 help
809 Enable hardware performance counter support for perf events. If
810 disabled, perf events will use software events only.
811
812 source "drivers/sh/Kconfig"
813
814 endmenu
815
816 menu "Boot options"
817
818 config ZERO_PAGE_OFFSET
819 hex
820 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
821 SH_7751_SOLUTION_ENGINE
822 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
823 default "0x00002000" if PAGE_SIZE_8KB
824 default "0x00001000"
825 help
826 This sets the default offset of zero page.
827
828 config BOOT_LINK_OFFSET
829 hex
830 default "0x00210000" if SH_SHMIN
831 default "0x00400000" if SH_CAYMAN
832 default "0x00810000" if SH_7780_SOLUTION_ENGINE
833 default "0x009e0000" if SH_TITAN
834 default "0x01800000" if SH_SDK7780
835 default "0x02000000" if SH_EDOSK7760
836 default "0x00800000"
837 help
838 This option allows you to set the link address offset of the zImage.
839 This can be useful if you are on a board which has a small amount of
840 memory.
841
842 config ENTRY_OFFSET
843 hex
844 default "0x00001000" if PAGE_SIZE_4KB
845 default "0x00002000" if PAGE_SIZE_8KB
846 default "0x00004000" if PAGE_SIZE_16KB
847 default "0x00010000" if PAGE_SIZE_64KB
848 default "0x00000000"
849
850 config ROMIMAGE_MMCIF
851 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
852 depends on CPU_SUBTYPE_SH7724
853 help
854 Say Y here to include experimental MMCIF loading code in
855 romImage. With this enabled it is possible to write the romImage
856 kernel image to an MMC card and boot the kernel straight from
857 the reset vector. At reset the processor Mask ROM will load the
858 first part of the romImage which in turn loads the rest the kernel
859 image to RAM using the MMCIF hardware block.
860
861 choice
862 prompt "Kernel command line"
863 optional
864 default CMDLINE_OVERWRITE
865 help
866 Setting this option allows the kernel command line arguments
867 to be set.
868
869 config CMDLINE_OVERWRITE
870 bool "Overwrite bootloader kernel arguments"
871 help
872 Given string will overwrite any arguments passed in by
873 a bootloader.
874
875 config CMDLINE_EXTEND
876 bool "Extend bootloader kernel arguments"
877 help
878 Given string will be concatenated with arguments passed in
879 by a bootloader.
880
881 endchoice
882
883 config CMDLINE
884 string "Kernel command line arguments string"
885 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
886 default "console=ttySC1,115200"
887
888 endmenu
889
890 menu "Bus options"
891
892 config SUPERHYWAY
893 tristate "SuperHyway Bus support"
894 depends on CPU_SUBTYPE_SH4_202
895
896 config MAPLE
897 bool "Maple Bus support"
898 depends on SH_DREAMCAST
899 help
900 The Maple Bus is SEGA's serial communication bus for peripherals
901 on the Dreamcast. Without this bus support you won't be able to
902 get your Dreamcast keyboard etc to work, so most users
903 probably want to say 'Y' here, unless you are only using the
904 Dreamcast with a serial line terminal or a remote network
905 connection.
906
907 config PCI
908 bool "PCI support"
909 depends on SYS_SUPPORTS_PCI
910 select PCI_DOMAINS
911 select GENERIC_PCI_IOMAP
912 select NO_GENERIC_PCI_IOPORT_MAP
913 help
914 Find out whether you have a PCI motherboard. PCI is the name of a
915 bus system, i.e. the way the CPU talks to the other stuff inside
916 your box. If you have PCI, say Y, otherwise N.
917
918 config PCI_DOMAINS
919 bool
920
921 source "drivers/pci/pcie/Kconfig"
922
923 source "drivers/pci/Kconfig"
924
925 source "drivers/pcmcia/Kconfig"
926
927 source "drivers/pci/hotplug/Kconfig"
928
929 endmenu
930
931 menu "Executable file formats"
932
933 source "fs/Kconfig.binfmt"
934
935 endmenu
936
937 menu "Power management options (EXPERIMENTAL)"
938
939 source "kernel/power/Kconfig"
940
941 source "drivers/cpuidle/Kconfig"
942
943 endmenu
944
945 source "net/Kconfig"
946
947 source "drivers/Kconfig"
948
949 source "fs/Kconfig"
950
951 source "arch/sh/Kconfig.debug"
952
953 source "security/Kconfig"
954
955 source "crypto/Kconfig"
956
957 source "lib/Kconfig"