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