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