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