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