xref: /openbmc/linux/arch/sh/Kconfig (revision f6723b56)
1config SUPERH
2	def_bool y
3	select ARCH_MIGHT_HAVE_PC_PARPORT
4	select EXPERT
5	select CLKDEV_LOOKUP
6	select HAVE_IDE if HAS_IOPORT
7	select HAVE_MEMBLOCK
8	select HAVE_MEMBLOCK_NODE_MAP
9	select ARCH_DISCARD_MEMBLOCK
10	select HAVE_OPROFILE
11	select HAVE_GENERIC_DMA_COHERENT
12	select HAVE_ARCH_TRACEHOOK
13	select HAVE_DMA_API_DEBUG
14	select HAVE_DMA_ATTRS
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 PERF_USE_VMALLOC
20	select HAVE_DEBUG_KMEMLEAK
21	select HAVE_KERNEL_GZIP
22	select HAVE_KERNEL_BZIP2
23	select HAVE_KERNEL_LZMA
24	select HAVE_KERNEL_XZ
25	select HAVE_KERNEL_LZO
26	select HAVE_UID16
27	select ARCH_WANT_IPC_PARSE_VERSION
28	select HAVE_SYSCALL_TRACEPOINTS
29	select HAVE_REGS_AND_STACK_ACCESS_API
30	select MAY_HAVE_SPARSE_IRQ
31	select IRQ_FORCED_THREADING
32	select RTC_LIB
33	select GENERIC_ATOMIC64
34	select GENERIC_IRQ_SHOW
35	select GENERIC_SMP_IDLE_THREAD
36	select GENERIC_IDLE_POLL_SETUP
37	select GENERIC_CLOCKEVENTS
38	select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
39	select GENERIC_STRNCPY_FROM_USER
40	select GENERIC_STRNLEN_USER
41	select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
42	select MODULES_USE_ELF_RELA
43	select OLD_SIGSUSPEND
44	select OLD_SIGACTION
45	help
46	  The SuperH is a RISC processor targeted for use in embedded systems
47	  and consumer electronics; it was also used in the Sega Dreamcast
48	  gaming console.  The SuperH port has a home page at
49	  <http://www.linux-sh.org/>.
50
51config SUPERH32
52	def_bool ARCH = "sh"
53	select HAVE_KPROBES
54	select HAVE_KRETPROBES
55	select HAVE_IOREMAP_PROT if MMU && !X2TLB
56	select HAVE_FUNCTION_TRACER
57	select HAVE_FTRACE_MCOUNT_RECORD
58	select HAVE_DYNAMIC_FTRACE
59	select HAVE_FUNCTION_TRACE_MCOUNT_TEST
60	select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
61	select ARCH_WANT_IPC_PARSE_VERSION
62	select HAVE_FUNCTION_GRAPH_TRACER
63	select HAVE_ARCH_KGDB
64	select HAVE_HW_BREAKPOINT
65	select HAVE_MIXED_BREAKPOINTS_REGS
66	select PERF_EVENTS
67	select ARCH_HIBERNATION_POSSIBLE if MMU
68	select SPARSE_IRQ
69	select HAVE_CC_STACKPROTECTOR
70
71config SUPERH64
72	def_bool ARCH = "sh64"
73	select KALLSYMS
74
75config ARCH_DEFCONFIG
76	string
77	default "arch/sh/configs/shx3_defconfig" if SUPERH32
78	default "arch/sh/configs/cayman_defconfig" if SUPERH64
79
80config RWSEM_GENERIC_SPINLOCK
81	def_bool y
82
83config RWSEM_XCHGADD_ALGORITHM
84	bool
85
86config GENERIC_BUG
87	def_bool y
88	depends on BUG && SUPERH32
89
90config GENERIC_CSUM
91	def_bool y
92	depends on SUPERH64
93
94config GENERIC_HWEIGHT
95	def_bool y
96
97config GENERIC_CALIBRATE_DELAY
98	bool
99
100config GENERIC_LOCKBREAK
101	def_bool y
102	depends on SMP && PREEMPT
103
104config ARCH_SUSPEND_POSSIBLE
105	def_bool n
106
107config ARCH_HIBERNATION_POSSIBLE
108	def_bool n
109
110config SYS_SUPPORTS_APM_EMULATION
111	bool
112	select ARCH_SUSPEND_POSSIBLE
113
114config SYS_SUPPORTS_HUGETLBFS
115	bool
116
117config SYS_SUPPORTS_SMP
118	bool
119
120config SYS_SUPPORTS_NUMA
121	bool
122
123config SYS_SUPPORTS_PCI
124	bool
125
126config SYS_SUPPORTS_CMT
127	bool
128
129config SYS_SUPPORTS_MTU2
130	bool
131
132config SYS_SUPPORTS_TMU
133	bool
134
135config STACKTRACE_SUPPORT
136	def_bool y
137
138config LOCKDEP_SUPPORT
139	def_bool y
140
141config HAVE_LATENCYTOP_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
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 NEED_DMA_MAP_STATE
168	def_bool DMA_NONCOHERENT
169
170config NEED_SG_DMA_LENGTH
171	def_bool y
172
173source "init/Kconfig"
174
175source "kernel/Kconfig.freezer"
176
177menu "System type"
178
179#
180# Processor families
181#
182config CPU_SH2
183	bool
184
185config CPU_SH2A
186	bool
187	select CPU_SH2
188	select UNCACHED_MAPPING
189
190config CPU_SH3
191	bool
192	select CPU_HAS_INTEVT
193	select CPU_HAS_SR_RB
194	select SYS_SUPPORTS_TMU
195
196config CPU_SH4
197	bool
198	select CPU_HAS_INTEVT
199	select CPU_HAS_SR_RB
200	select CPU_HAS_FPU if !CPU_SH4AL_DSP
201	select SYS_SUPPORTS_TMU
202	select SYS_SUPPORTS_HUGETLBFS if MMU
203
204config CPU_SH4A
205	bool
206	select CPU_SH4
207
208config CPU_SH4AL_DSP
209	bool
210	select CPU_SH4A
211	select CPU_HAS_DSP
212
213config CPU_SH5
214	bool
215	select CPU_HAS_FPU
216	select SYS_SUPPORTS_TMU
217	select SYS_SUPPORTS_HUGETLBFS if MMU
218
219config CPU_SHX2
220	bool
221
222config CPU_SHX3
223	bool
224	select DMA_COHERENT
225	select SYS_SUPPORTS_SMP
226	select SYS_SUPPORTS_NUMA
227
228config ARCH_SHMOBILE
229	bool
230	select ARCH_SUSPEND_POSSIBLE
231	select PM
232	select PM_RUNTIME
233
234config CPU_HAS_PMU
235       depends on CPU_SH4 || CPU_SH4A
236       default y
237       bool
238
239if SUPERH32
240
241choice
242	prompt "Processor sub-type selection"
243
244#
245# Processor subtypes
246#
247
248# SH-2 Processor Support
249
250config CPU_SUBTYPE_SH7619
251	bool "Support SH7619 processor"
252	select CPU_SH2
253	select SYS_SUPPORTS_CMT
254
255# SH-2A Processor Support
256
257config CPU_SUBTYPE_SH7201
258	bool "Support SH7201 processor"
259	select CPU_SH2A
260	select CPU_HAS_FPU
261	select SYS_SUPPORTS_MTU2
262
263config CPU_SUBTYPE_SH7203
264	bool "Support SH7203 processor"
265	select CPU_SH2A
266	select CPU_HAS_FPU
267	select SYS_SUPPORTS_CMT
268	select SYS_SUPPORTS_MTU2
269	select ARCH_WANT_OPTIONAL_GPIOLIB
270	select PINCTRL
271
272config CPU_SUBTYPE_SH7206
273	bool "Support SH7206 processor"
274	select CPU_SH2A
275	select SYS_SUPPORTS_CMT
276	select SYS_SUPPORTS_MTU2
277
278config CPU_SUBTYPE_SH7263
279	bool "Support SH7263 processor"
280	select CPU_SH2A
281	select CPU_HAS_FPU
282	select SYS_SUPPORTS_CMT
283	select SYS_SUPPORTS_MTU2
284
285config CPU_SUBTYPE_SH7264
286	bool "Support SH7264 processor"
287	select CPU_SH2A
288	select CPU_HAS_FPU
289	select SYS_SUPPORTS_CMT
290	select SYS_SUPPORTS_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_CMT
298	select SYS_SUPPORTS_MTU2
299	select PINCTRL
300
301config CPU_SUBTYPE_MXG
302	bool "Support MX-G processor"
303	select CPU_SH2A
304	select SYS_SUPPORTS_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_CMT
358	select ARCH_WANT_OPTIONAL_GPIOLIB
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
364config CPU_SUBTYPE_SH7721
365	bool "Support SH7721 processor"
366	select CPU_SH3
367	select CPU_HAS_DSP
368	select SYS_SUPPORTS_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
375config 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
381config 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
388config CPU_SUBTYPE_SH7750R
389	bool "Support SH7750R processor"
390	select CPU_SH4
391
392config CPU_SUBTYPE_SH7750S
393	bool "Support SH7750S processor"
394	select CPU_SH4
395
396config 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
403config CPU_SUBTYPE_SH7751R
404	bool "Support SH7751R processor"
405	select CPU_SH4
406
407config CPU_SUBTYPE_SH7760
408	bool "Support SH7760 processor"
409	select CPU_SH4
410
411config CPU_SUBTYPE_SH4_202
412	bool "Support SH4-202 processor"
413	select CPU_SH4
414
415# SH-4A Processor Support
416
417config 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_CMT
424	select ARCH_WANT_OPTIONAL_GPIOLIB
425	select PINCTRL
426	help
427	  Select SH7723 if you have an SH-MobileR2 CPU.
428
429config CPU_SUBTYPE_SH7724
430	bool "Support SH7724 processor"
431	select CPU_SH4A
432	select CPU_SHX2
433	select ARCH_SHMOBILE
434	select ARCH_SPARSEMEM_ENABLE
435	select SYS_SUPPORTS_CMT
436	select ARCH_WANT_OPTIONAL_GPIOLIB
437	select PINCTRL
438	help
439	  Select SH7724 if you have an SH-MobileR2R CPU.
440
441config CPU_SUBTYPE_SH7734
442	bool "Support SH7734 processor"
443	select CPU_SH4A
444	select CPU_SHX2
445	select ARCH_WANT_OPTIONAL_GPIOLIB
446	select PINCTRL
447	help
448	  Select SH7734 if you have a SH4A SH7734 CPU.
449
450config CPU_SUBTYPE_SH7757
451	bool "Support SH7757 processor"
452	select CPU_SH4A
453	select CPU_SHX2
454	select ARCH_WANT_OPTIONAL_GPIOLIB
455	select PINCTRL
456	help
457	  Select SH7757 if you have a SH4A SH7757 CPU.
458
459config CPU_SUBTYPE_SH7763
460	bool "Support SH7763 processor"
461	select CPU_SH4A
462	select USB_OHCI_SH if USB_OHCI_HCD
463	help
464	  Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
465
466config CPU_SUBTYPE_SH7770
467	bool "Support SH7770 processor"
468	select CPU_SH4A
469
470config CPU_SUBTYPE_SH7780
471	bool "Support SH7780 processor"
472	select CPU_SH4A
473
474config CPU_SUBTYPE_SH7785
475	bool "Support SH7785 processor"
476	select CPU_SH4A
477	select CPU_SHX2
478	select ARCH_SPARSEMEM_ENABLE
479	select SYS_SUPPORTS_NUMA
480	select ARCH_WANT_OPTIONAL_GPIOLIB
481	select PINCTRL
482
483config CPU_SUBTYPE_SH7786
484	bool "Support SH7786 processor"
485	select CPU_SH4A
486	select CPU_SHX3
487	select CPU_HAS_PTEAEX
488	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
489	select ARCH_WANT_OPTIONAL_GPIOLIB
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 ARCH_REQUIRE_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_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_CMT
518	select ARCH_WANT_OPTIONAL_GPIOLIB
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_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_TIMER_TMU
562	bool "TMU timer driver"
563	depends on SYS_SUPPORTS_TMU
564	default y
565	help
566	  This enables the build of the TMU timer driver.
567
568config SH_TIMER_CMT
569	bool "CMT timer driver"
570	depends on SYS_SUPPORTS_CMT
571	default y
572	help
573	  This enables build of the CMT timer driver.
574
575config SH_TIMER_MTU2
576	bool "MTU2 timer driver"
577	depends on SYS_SUPPORTS_MTU2
578	default y
579	help
580	  This enables build of the MTU2 timer driver.
581
582config SH_PCLK_FREQ
583	int "Peripheral clock frequency (in Hz)"
584	depends on SH_CLK_CPG_LEGACY
585	default "31250000" if CPU_SUBTYPE_SH7619
586	default "33333333" if CPU_SUBTYPE_SH7770 || \
587			      CPU_SUBTYPE_SH7760 || \
588			      CPU_SUBTYPE_SH7705 || \
589			      CPU_SUBTYPE_SH7203 || \
590			      CPU_SUBTYPE_SH7206 || \
591			      CPU_SUBTYPE_SH7263 || \
592			      CPU_SUBTYPE_MXG
593	default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
594	default "66000000" if CPU_SUBTYPE_SH4_202
595	default "50000000"
596	help
597	  This option is used to specify the peripheral clock frequency.
598	  This is necessary for determining the reference clock value on
599	  platforms lacking an RTC.
600
601config SH_CLK_CPG
602	def_bool y
603
604config SH_CLK_CPG_LEGACY
605	depends on SH_CLK_CPG
606	def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
607		      !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
608		      !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
609		      !CPU_SUBTYPE_SH7269
610
611endmenu
612
613menu "CPU Frequency scaling"
614source "drivers/cpufreq/Kconfig"
615endmenu
616
617source "arch/sh/drivers/Kconfig"
618
619endmenu
620
621menu "Kernel features"
622
623source kernel/Kconfig.hz
624
625config KEXEC
626	bool "kexec system call (EXPERIMENTAL)"
627	depends on SUPERH32 && MMU
628	help
629	  kexec is a system call that implements the ability to shutdown your
630	  current kernel, and to start another kernel.  It is like a reboot
631	  but it is independent of the system firmware.  And like a reboot
632	  you can start any kernel with it, not just Linux.
633
634	  The name comes from the similarity to the exec system call.
635
636	  It is an ongoing process to be certain the hardware in a machine
637	  is properly shutdown, so do not be surprised if this code does not
638	  initially work for you.  As of this writing the exact hardware
639	  interface is strongly in flux, so no good recommendation can be
640	  made.
641
642config CRASH_DUMP
643	bool "kernel crash dumps (EXPERIMENTAL)"
644	depends on SUPERH32 && BROKEN_ON_SMP
645	help
646	  Generate crash dump after being started by kexec.
647	  This should be normally only set in special crash dump kernels
648	  which are loaded in the main kernel with kexec-tools into
649	  a specially reserved region and then later executed after
650	  a crash by kdump/kexec. The crash dump kernel must be compiled
651	  to a memory address not used by the main kernel using
652	  PHYSICAL_START.
653
654	  For more details see Documentation/kdump/kdump.txt
655
656config KEXEC_JUMP
657	bool "kexec jump (EXPERIMENTAL)"
658	depends on SUPERH32 && KEXEC && HIBERNATION
659	help
660	  Jump between original kernel and kexeced kernel and invoke
661	  code via KEXEC
662
663config PHYSICAL_START
664	hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
665	default MEMORY_START
666	---help---
667	  This gives the physical address where the kernel is loaded
668	  and is ordinarily the same as MEMORY_START.
669
670	  Different values are primarily used in the case of kexec on panic
671	  where the fail safe kernel needs to run at a different address
672	  than the panic-ed kernel.
673
674config SECCOMP
675	bool "Enable seccomp to safely compute untrusted bytecode"
676	depends on PROC_FS
677	help
678	  This kernel feature is useful for number crunching applications
679	  that may need to compute untrusted bytecode during their
680	  execution. By using pipes or other transports made available to
681	  the process as file descriptors supporting the read/write
682	  syscalls, it's possible to isolate those applications in
683	  their own address space using seccomp. Once seccomp is
684	  enabled via prctl, it cannot be disabled and the task is only
685	  allowed to execute a few safe syscalls defined by each seccomp
686	  mode.
687
688	  If unsure, say N.
689
690config SMP
691	bool "Symmetric multi-processing support"
692	depends on SYS_SUPPORTS_SMP
693	---help---
694	  This enables support for systems with more than one CPU. If you have
695	  a system with only one CPU, say N. If you have a system with more
696	  than one CPU, say Y.
697
698	  If you say N here, the kernel will run on uni- and multiprocessor
699	  machines, but will use only one CPU of a multiprocessor machine. If
700	  you say Y here, the kernel will run on many, but not all,
701	  uniprocessor machines. On a uniprocessor machine, the kernel
702	  will run faster if you say N here.
703
704	  People using multiprocessor machines who say Y here should also say
705	  Y to "Enhanced Real Time Clock Support", below.
706
707	  See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
708	  available at <http://www.tldp.org/docs.html#howto>.
709
710	  If you don't know what to do here, say N.
711
712config NR_CPUS
713	int "Maximum number of CPUs (2-32)"
714	range 2 32
715	depends on SMP
716	default "4" if CPU_SUBTYPE_SHX3
717	default "2"
718	help
719	  This allows you to specify the maximum number of CPUs which this
720	  kernel will support.  The maximum supported value is 32 and the
721	  minimum value which makes sense is 2.
722
723	  This is purely to save memory - each supported CPU adds
724	  approximately eight kilobytes to the kernel image.
725
726config HOTPLUG_CPU
727	bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
728	depends on SMP
729	help
730	  Say Y here to experiment with turning CPUs off and on.  CPUs
731	  can be controlled through /sys/devices/system/cpu.
732
733source "kernel/Kconfig.preempt"
734
735config GUSA
736	def_bool y
737	depends on !SMP && SUPERH32
738	help
739	  This enables support for gUSA (general UserSpace Atomicity).
740	  This is the default implementation for both UP and non-ll/sc
741	  CPUs, and is used by the libc, amongst others.
742
743	  For additional information, design information can be found
744	  in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
745
746	  This should only be disabled for special cases where alternate
747	  atomicity implementations exist.
748
749config GUSA_RB
750	bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
751	depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
752	help
753	  Enabling this option will allow the kernel to implement some
754	  atomic operations using a software implementation of load-locked/
755	  store-conditional (LLSC). On machines which do not have hardware
756	  LLSC, this should be more efficient than the other alternative of
757	  disabling interrupts around the atomic sequence.
758
759config HW_PERF_EVENTS
760	bool "Enable hardware performance counter support for perf events"
761	depends on PERF_EVENTS && CPU_HAS_PMU
762	default y
763	help
764	  Enable hardware performance counter support for perf events. If
765	  disabled, perf events will use software events only.
766
767source "drivers/sh/Kconfig"
768
769endmenu
770
771menu "Boot options"
772
773config ZERO_PAGE_OFFSET
774	hex
775	default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
776				SH_7751_SOLUTION_ENGINE
777	default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
778	default "0x00002000" if PAGE_SIZE_8KB
779	default "0x00001000"
780	help
781	  This sets the default offset of zero page.
782
783config BOOT_LINK_OFFSET
784	hex
785	default "0x00210000" if SH_SHMIN
786	default "0x00400000" if SH_CAYMAN
787	default "0x00810000" if SH_7780_SOLUTION_ENGINE
788	default "0x009e0000" if SH_TITAN
789	default "0x01800000" if SH_SDK7780
790	default "0x02000000" if SH_EDOSK7760
791	default "0x00800000"
792	help
793	  This option allows you to set the link address offset of the zImage.
794	  This can be useful if you are on a board which has a small amount of
795	  memory.
796
797config ENTRY_OFFSET
798	hex
799	default "0x00001000" if PAGE_SIZE_4KB
800	default "0x00002000" if PAGE_SIZE_8KB
801	default "0x00004000" if PAGE_SIZE_16KB
802	default "0x00010000" if PAGE_SIZE_64KB
803	default "0x00000000"
804
805config ROMIMAGE_MMCIF
806	bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
807	depends on CPU_SUBTYPE_SH7724
808	help
809	  Say Y here to include experimental MMCIF loading code in
810	  romImage. With this enabled it is possible to write the romImage
811	  kernel image to an MMC card and boot the kernel straight from
812	  the reset vector. At reset the processor Mask ROM will load the
813	  first part of the romImage which in turn loads the rest the kernel
814	  image to RAM using the MMCIF hardware block.
815
816choice
817	prompt "Kernel command line"
818	optional
819	default CMDLINE_OVERWRITE
820	help
821	  Setting this option allows the kernel command line arguments
822	  to be set.
823
824config CMDLINE_OVERWRITE
825	bool "Overwrite bootloader kernel arguments"
826	help
827	  Given string will overwrite any arguments passed in by
828	  a bootloader.
829
830config CMDLINE_EXTEND
831	bool "Extend bootloader kernel arguments"
832	help
833	  Given string will be concatenated with arguments passed in
834	  by a bootloader.
835
836endchoice
837
838config CMDLINE
839	string "Kernel command line arguments string"
840	depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
841	default "console=ttySC1,115200"
842
843endmenu
844
845menu "Bus options"
846
847config SUPERHYWAY
848	tristate "SuperHyway Bus support"
849	depends on CPU_SUBTYPE_SH4_202
850
851config MAPLE
852	bool "Maple Bus support"
853	depends on SH_DREAMCAST
854	help
855	 The Maple Bus is SEGA's serial communication bus for peripherals
856	 on the Dreamcast. Without this bus support you won't be able to
857	 get your Dreamcast keyboard etc to work, so most users
858	 probably want to say 'Y' here, unless you are only using the
859	 Dreamcast with a serial line terminal or a remote network
860	 connection.
861
862config PCI
863	bool "PCI support"
864	depends on SYS_SUPPORTS_PCI
865	select PCI_DOMAINS
866	select GENERIC_PCI_IOMAP
867	select NO_GENERIC_PCI_IOPORT_MAP
868	help
869	  Find out whether you have a PCI motherboard. PCI is the name of a
870	  bus system, i.e. the way the CPU talks to the other stuff inside
871	  your box. If you have PCI, say Y, otherwise N.
872
873config PCI_DOMAINS
874	bool
875
876source "drivers/pci/pcie/Kconfig"
877
878source "drivers/pci/Kconfig"
879
880source "drivers/pcmcia/Kconfig"
881
882source "drivers/pci/hotplug/Kconfig"
883
884endmenu
885
886menu "Executable file formats"
887
888source "fs/Kconfig.binfmt"
889
890endmenu
891
892menu "Power management options (EXPERIMENTAL)"
893
894source "kernel/power/Kconfig"
895
896source "drivers/cpuidle/Kconfig"
897
898endmenu
899
900source "net/Kconfig"
901
902source "drivers/Kconfig"
903
904source "fs/Kconfig"
905
906source "arch/sh/Kconfig.debug"
907
908source "security/Kconfig"
909
910source "crypto/Kconfig"
911
912source "lib/Kconfig"
913