Make most arch asm/module.h files use asm-generic/module.h
[deliverable/linux.git] / arch / sh / Kconfig
CommitLineData
1da177e4 1config SUPERH
ea0e1a9a 2 def_bool y
6a108a14 3 select EXPERT
6d803ba7 4 select CLKDEV_LOOKUP
86e4dd5a 5 select HAVE_IDE if HAS_IOPORT
95f72d1e 6 select HAVE_MEMBLOCK
534cfbee 7 select HAVE_MEMBLOCK_NODE_MAP
adaf7fd2 8 select ARCH_DISCARD_MEMBLOCK
42d4b839 9 select HAVE_OPROFILE
9de90ac2 10 select HAVE_GENERIC_DMA_COHERENT
d7b01f78 11 select HAVE_ARCH_TRACEHOOK
f802d969 12 select HAVE_DMA_API_DEBUG
73c926be 13 select HAVE_DMA_ATTRS
e360adbe 14 select HAVE_IRQ_WORK
cdd6c482 15 select HAVE_PERF_EVENTS
7563bbf8 16 select ARCH_HAVE_CUSTOM_GPIO_H
df013ffb 17 select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
72f0c137 18 select PERF_USE_VMALLOC
df8ce259 19 select HAVE_KERNEL_GZIP
07e88e1b
PM
20 select HAVE_KERNEL_BZIP2
21 select HAVE_KERNEL_LZMA
50cfa79d 22 select HAVE_KERNEL_XZ
c7b16efb 23 select HAVE_KERNEL_LZO
c1d7e01d 24 select ARCH_WANT_IPC_PARSE_VERSION
a74f7e04 25 select HAVE_SYSCALL_TRACEPOINTS
eaaaeef3 26 select HAVE_REGS_AND_STACK_ACCESS_API
57b81330 27 select HAVE_GENERIC_HARDIRQS
2ed86b16 28 select MAY_HAVE_SPARSE_IRQ
ed170924 29 select IRQ_FORCED_THREADING
6eac1af0 30 select RTC_LIB
f01789c6 31 select GENERIC_ATOMIC64
3d44ae40 32 select GENERIC_IRQ_SHOW
ea0588cb 33 select GENERIC_SMP_IDLE_THREAD
8cf200d8
AMG
34 select GENERIC_CLOCKEVENTS
35 select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
0e100e11 36 select GENERIC_STRNCPY_FROM_USER
cba8df4b 37 select GENERIC_STRNLEN_USER
786d35d4
DH
38 select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
39 select MODULES_USE_ELF_RELA
1da177e4
LT
40 help
41 The SuperH is a RISC processor targeted for use in embedded systems
42 and consumer electronics; it was also used in the Sega Dreamcast
43 gaming console. The SuperH port has a home page at
44 <http://www.linux-sh.org/>.
45
39d28a2d 46config SUPERH32
3cc000b5 47 def_bool ARCH = "sh"
d39f5450
CS
48 select HAVE_KPROBES
49 select HAVE_KRETPROBES
6d63e73d 50 select HAVE_IOREMAP_PROT if MMU && !X2TLB
694f94f2 51 select HAVE_FUNCTION_TRACER
fad57feb
MF
52 select HAVE_FTRACE_MCOUNT_RECORD
53 select HAVE_DYNAMIC_FTRACE
c1340c05 54 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
e4b053d9 55 select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
c1d7e01d 56 select ARCH_WANT_IPC_PARSE_VERSION
327933f5 57 select HAVE_FUNCTION_GRAPH_TRACER
ab6e570b 58 select HAVE_ARCH_KGDB
6fbfe8d7 59 select HAVE_HW_BREAKPOINT
0102752e 60 select HAVE_MIXED_BREAKPOINTS_REGS
e583d6b3 61 select PERF_EVENTS
8dafc346 62 select ARCH_HIBERNATION_POSSIBLE if MMU
57b81330 63 select SPARSE_IRQ
ea0e1a9a
PM
64
65config SUPERH64
3cc000b5 66 def_bool ARCH = "sh64"
3a898c0f 67 select KALLSYMS
39d28a2d 68
f42b7e3d
PM
69config ARCH_DEFCONFIG
70 string
71 default "arch/sh/configs/shx3_defconfig" if SUPERH32
72 default "arch/sh/configs/cayman_defconfig" if SUPERH64
73
1da177e4 74config RWSEM_GENERIC_SPINLOCK
d7ef4fb3 75 def_bool y
1da177e4
LT
76
77config RWSEM_XCHGADD_ALGORITHM
78 bool
79
fa691511
PM
80config GENERIC_BUG
81 def_bool y
a82d53ec 82 depends on BUG && SUPERH32
fa691511 83
3767f3f1
PM
84config GENERIC_CSUM
85 def_bool y
86 depends on SUPERH64
87
e2268c71 88config GENERIC_HWEIGHT
d7ef4fb3 89 def_bool y
e2268c71 90
2eb2a436
PM
91config IRQ_PER_CPU
92 def_bool y
93
2967dab1
MD
94config GENERIC_GPIO
95 def_bool n
96
1da177e4 97config GENERIC_CALIBRATE_DELAY
cf204fa7 98 bool
1da177e4 99
bdcab87b
PM
100config GENERIC_LOCKBREAK
101 def_bool y
102 depends on SMP && PREEMPT
103
af998a9a
MD
104config ARCH_SUSPEND_POSSIBLE
105 def_bool n
106
107config ARCH_HIBERNATION_POSSIBLE
108 def_bool n
357d5946 109
0a9b0db1
PM
110config SYS_SUPPORTS_APM_EMULATION
111 bool
af998a9a 112 select ARCH_SUSPEND_POSSIBLE
357d5946 113
ffb4a73d
PM
114config SYS_SUPPORTS_HUGETLBFS
115 bool
116
357d5946
PM
117config SYS_SUPPORTS_SMP
118 bool
119
120config SYS_SUPPORTS_NUMA
121 bool
122
123config SYS_SUPPORTS_PCI
124 bool
0a9b0db1 125
f5ad881b
PM
126config SYS_SUPPORTS_CMT
127 bool
128
d5ed4c2e
MD
129config SYS_SUPPORTS_MTU2
130 bool
131
9570ef20
MD
132config SYS_SUPPORTS_TMU
133 bool
134
afbfb52e 135config STACKTRACE_SUPPORT
d7ef4fb3 136 def_bool y
afbfb52e
PM
137
138config LOCKDEP_SUPPORT
d7ef4fb3 139 def_bool y
afbfb52e 140
5a89f1ad
PM
141config HAVE_LATENCYTOP_SUPPORT
142 def_bool y
5a89f1ad 143
f0d1b0b3 144config ARCH_HAS_ILOG2_U32
d7ef4fb3 145 def_bool n
f0d1b0b3
DH
146
147config ARCH_HAS_ILOG2_U64
d7ef4fb3 148 def_bool n
f0d1b0b3 149
e257ad06
PM
150config ARCH_NO_VIRT_TO_BUS
151 def_bool y
152
e869a90e
PM
153config ARCH_HAS_DEFAULT_IDLE
154 def_bool y
155
86e4dd5a 156config NO_IOPORT
37b7a978 157 def_bool !PCI
c30b9c43
PM
158 depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \
159 !SH_HP6XX && !SH_SOLUTION_ENGINE
86e4dd5a 160
e7cc9a73
MD
161config IO_TRAPPED
162 bool
163
b7e68d68
PM
164config SWAP_IO_SPACE
165 bool
166
01be5d63
PM
167config DMA_COHERENT
168 bool
169
170config DMA_NONCOHERENT
171 def_bool !DMA_COHERENT
172
5cabbb62
FT
173config NEED_DMA_MAP_STATE
174 def_bool DMA_NONCOHERENT
175
18e98307
FT
176config NEED_SG_DMA_LENGTH
177 def_bool y
178
1da177e4
LT
179source "init/Kconfig"
180
dc52ddc0
MH
181source "kernel/Kconfig.freezer"
182
1da177e4
LT
183menu "System type"
184
b5f42db0
PM
185#
186# Processor families
187#
188config CPU_SH2
189 bool
190
191config CPU_SH2A
192 bool
193 select CPU_SH2
e2fcf74f 194 select UNCACHED_MAPPING
b5f42db0
PM
195
196config CPU_SH3
197 bool
198 select CPU_HAS_INTEVT
199 select CPU_HAS_SR_RB
4fa48e17 200 select SYS_SUPPORTS_TMU
b5f42db0
PM
201
202config CPU_SH4
203 bool
204 select CPU_HAS_INTEVT
205 select CPU_HAS_SR_RB
b5f42db0 206 select CPU_HAS_FPU if !CPU_SH4AL_DSP
4fa48e17 207 select SYS_SUPPORTS_TMU
ffb4a73d 208 select SYS_SUPPORTS_HUGETLBFS if MMU
b5f42db0
PM
209
210config CPU_SH4A
211 bool
212 select CPU_SH4
213
214config CPU_SH4AL_DSP
215 bool
216 select CPU_SH4A
217 select CPU_HAS_DSP
218
ea0e1a9a
PM
219config CPU_SH5
220 bool
221 select CPU_HAS_FPU
add47067 222 select SYS_SUPPORTS_TMU
ffb4a73d 223 select SYS_SUPPORTS_HUGETLBFS if MMU
ea0e1a9a 224
b5f42db0
PM
225config CPU_SHX2
226 bool
227
228config CPU_SHX3
229 bool
01be5d63 230 select DMA_COHERENT
4b478ee2
PM
231 select SYS_SUPPORTS_SMP
232 select SYS_SUPPORTS_NUMA
b5f42db0 233
dc65a977
PM
234config ARCH_SHMOBILE
235 bool
77594912 236 select ARCH_SUSPEND_POSSIBLE
ac2c596b
MD
237 select PM
238 select PM_RUNTIME
dc65a977 239
86c8c047
MF
240config CPU_HAS_PMU
241 depends on CPU_SH4 || CPU_SH4A
242 default y
243 bool
244
3cc000b5
PM
245if SUPERH32
246
b5f42db0
PM
247choice
248 prompt "Processor sub-type selection"
249
250#
251# Processor subtypes
252#
253
254# SH-2 Processor Support
255
256config CPU_SUBTYPE_SH7619
257 bool "Support SH7619 processor"
258 select CPU_SH2
f5ad881b 259 select SYS_SUPPORTS_CMT
b5f42db0
PM
260
261# SH-2A Processor Support
262
2825999e
PG
263config CPU_SUBTYPE_SH7201
264 bool "Support SH7201 processor"
265 select CPU_SH2A
266 select CPU_HAS_FPU
da107c6e 267 select SYS_SUPPORTS_MTU2
2825999e 268
6d01f510
PM
269config CPU_SUBTYPE_SH7203
270 bool "Support SH7203 processor"
271 select CPU_SH2A
74d99a5e 272 select CPU_HAS_FPU
f5ad881b 273 select SYS_SUPPORTS_CMT
da107c6e 274 select SYS_SUPPORTS_MTU2
f020c92d 275 select ARCH_WANT_OPTIONAL_GPIOLIB
6d01f510 276
b5f42db0
PM
277config CPU_SUBTYPE_SH7206
278 bool "Support SH7206 processor"
279 select CPU_SH2A
f5ad881b 280 select SYS_SUPPORTS_CMT
da107c6e 281 select SYS_SUPPORTS_MTU2
b5f42db0 282
a8f67f4b
PM
283config CPU_SUBTYPE_SH7263
284 bool "Support SH7263 processor"
285 select CPU_SH2A
74d99a5e 286 select CPU_HAS_FPU
f5ad881b 287 select SYS_SUPPORTS_CMT
da107c6e 288 select SYS_SUPPORTS_MTU2
a8f67f4b 289
51ce3068
PE
290config CPU_SUBTYPE_SH7264
291 bool "Support SH7264 processor"
292 select CPU_SH2A
293 select CPU_HAS_FPU
294 select SYS_SUPPORTS_CMT
295 select SYS_SUPPORTS_MTU2
296
0b25b7c8
PE
297config CPU_SUBTYPE_SH7269
298 bool "Support SH7269 processor"
299 select CPU_SH2A
300 select CPU_HAS_FPU
301 select SYS_SUPPORTS_CMT
302 select SYS_SUPPORTS_MTU2
303
2ad69908
PM
304config CPU_SUBTYPE_MXG
305 bool "Support MX-G processor"
306 select CPU_SH2A
da107c6e 307 select SYS_SUPPORTS_MTU2
2ad69908
PM
308 help
309 Select MX-G if running on an R8A03022BG part.
310
b5f42db0
PM
311# SH-3 Processor Support
312
313config CPU_SUBTYPE_SH7705
314 bool "Support SH7705 processor"
315 select CPU_SH3
316
317config CPU_SUBTYPE_SH7706
318 bool "Support SH7706 processor"
319 select CPU_SH3
320 help
321 Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
322
323config CPU_SUBTYPE_SH7707
324 bool "Support SH7707 processor"
325 select CPU_SH3
326 help
327 Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
328
329config CPU_SUBTYPE_SH7708
330 bool "Support SH7708 processor"
331 select CPU_SH3
332 help
333 Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
334 if you have a 100 Mhz SH-3 HD6417708R CPU.
335
336config CPU_SUBTYPE_SH7709
337 bool "Support SH7709 processor"
338 select CPU_SH3
339 help
340 Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
341
342config CPU_SUBTYPE_SH7710
343 bool "Support SH7710 processor"
344 select CPU_SH3
345 select CPU_HAS_DSP
346 help
347 Select SH7710 if you have a SH3-DSP SH7710 CPU.
348
349config CPU_SUBTYPE_SH7712
350 bool "Support SH7712 processor"
351 select CPU_SH3
352 select CPU_HAS_DSP
353 help
354 Select SH7712 if you have a SH3-DSP SH7712 CPU.
355
356config CPU_SUBTYPE_SH7720
357 bool "Support SH7720 processor"
358 select CPU_SH3
359 select CPU_HAS_DSP
2b23a882 360 select SYS_SUPPORTS_CMT
f020c92d 361 select ARCH_WANT_OPTIONAL_GPIOLIB
e3e9887e 362 select USB_ARCH_HAS_OHCI
7b61ca5d 363 select USB_OHCI_SH if USB_OHCI_HCD
b5f42db0
PM
364 help
365 Select SH7720 if you have a SH3-DSP SH7720 CPU.
366
31a49c4b
YS
367config CPU_SUBTYPE_SH7721
368 bool "Support SH7721 processor"
369 select CPU_SH3
370 select CPU_HAS_DSP
2b23a882 371 select SYS_SUPPORTS_CMT
e3e9887e 372 select USB_ARCH_HAS_OHCI
7b61ca5d 373 select USB_OHCI_SH if USB_OHCI_HCD
31a49c4b
YS
374 help
375 Select SH7721 if you have a SH3-DSP SH7721 CPU.
376
b5f42db0
PM
377# SH-4 Processor Support
378
379config CPU_SUBTYPE_SH7750
380 bool "Support SH7750 processor"
381 select CPU_SH4
382 help
383 Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
384
385config CPU_SUBTYPE_SH7091
386 bool "Support SH7091 processor"
387 select CPU_SH4
388 help
389 Select SH7091 if you have an SH-4 based Sega device (such as
390 the Dreamcast, Naomi, and Naomi 2).
391
392config CPU_SUBTYPE_SH7750R
393 bool "Support SH7750R processor"
394 select CPU_SH4
395
396config CPU_SUBTYPE_SH7750S
397 bool "Support SH7750S processor"
398 select CPU_SH4
399
400config CPU_SUBTYPE_SH7751
401 bool "Support SH7751 processor"
402 select CPU_SH4
403 help
404 Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
405 or if you have a HD6417751R CPU.
406
407config CPU_SUBTYPE_SH7751R
408 bool "Support SH7751R processor"
409 select CPU_SH4
410
411config CPU_SUBTYPE_SH7760
412 bool "Support SH7760 processor"
413 select CPU_SH4
414
415config CPU_SUBTYPE_SH4_202
416 bool "Support SH4-202 processor"
417 select CPU_SH4
418
419# SH-4A Processor Support
420
178dd0cd
PM
421config CPU_SUBTYPE_SH7723
422 bool "Support SH7723 processor"
423 select CPU_SH4A
424 select CPU_SHX2
dc65a977 425 select ARCH_SHMOBILE
178dd0cd 426 select ARCH_SPARSEMEM_ENABLE
f5ad881b 427 select SYS_SUPPORTS_CMT
f020c92d 428 select ARCH_WANT_OPTIONAL_GPIOLIB
178dd0cd
PM
429 help
430 Select SH7723 if you have an SH-MobileR2 CPU.
431
0207a2ef
KM
432config CPU_SUBTYPE_SH7724
433 bool "Support SH7724 processor"
434 select CPU_SH4A
435 select CPU_SHX2
59fe700d 436 select ARCH_SHMOBILE
0207a2ef
KM
437 select ARCH_SPARSEMEM_ENABLE
438 select SYS_SUPPORTS_CMT
f020c92d 439 select ARCH_WANT_OPTIONAL_GPIOLIB
0207a2ef
KM
440 help
441 Select SH7724 if you have an SH-MobileR2R CPU.
442
fea88a0c
NI
443config CPU_SUBTYPE_SH7734
444 bool "Support SH7734 processor"
445 select CPU_SH4A
446 select CPU_SHX2
447 select ARCH_WANT_OPTIONAL_GPIOLIB
448 select USB_ARCH_HAS_OHCI
449 select USB_ARCH_HAS_EHCI
450 help
451 Select SH7734 if you have a SH4A SH7734 CPU.
452
c01f0f1a
YS
453config CPU_SUBTYPE_SH7757
454 bool "Support SH7757 processor"
455 select CPU_SH4A
456 select CPU_SHX2
f020c92d 457 select ARCH_WANT_OPTIONAL_GPIOLIB
0fe48601
YS
458 select USB_ARCH_HAS_OHCI
459 select USB_ARCH_HAS_EHCI
c01f0f1a
YS
460 help
461 Select SH7757 if you have a SH4A SH7757 CPU.
462
7d740a06
YS
463config CPU_SUBTYPE_SH7763
464 bool "Support SH7763 processor"
465 select CPU_SH4A
e3e9887e 466 select USB_ARCH_HAS_OHCI
7b61ca5d 467 select USB_OHCI_SH if USB_OHCI_HCD
7d740a06
YS
468 help
469 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
470
b5f42db0
PM
471config CPU_SUBTYPE_SH7770
472 bool "Support SH7770 processor"
473 select CPU_SH4A
474
475config CPU_SUBTYPE_SH7780
476 bool "Support SH7780 processor"
477 select CPU_SH4A
478
479config CPU_SUBTYPE_SH7785
480 bool "Support SH7785 processor"
481 select CPU_SH4A
482 select CPU_SHX2
55ba99eb
KM
483 select ARCH_SPARSEMEM_ENABLE
484 select SYS_SUPPORTS_NUMA
f020c92d 485 select ARCH_WANT_OPTIONAL_GPIOLIB
55ba99eb
KM
486
487config CPU_SUBTYPE_SH7786
488 bool "Support SH7786 processor"
489 select CPU_SH4A
37042fbd 490 select CPU_SHX3
8263a67e 491 select CPU_HAS_PTEAEX
2eb2a436 492 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
f020c92d 493 select ARCH_WANT_OPTIONAL_GPIOLIB
e3e9887e 494 select USB_ARCH_HAS_OHCI
7b61ca5d 495 select USB_OHCI_SH if USB_OHCI_HCD
e3e9887e 496 select USB_ARCH_HAS_EHCI
7b61ca5d 497 select USB_EHCI_SH if USB_EHCI_HCD
b5f42db0
PM
498
499config CPU_SUBTYPE_SHX3
500 bool "Support SH-X3 processor"
501 select CPU_SH4A
502 select CPU_SHX3
5840263e 503 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
742759ea 504 select ARCH_REQUIRE_GPIOLIB
b5f42db0
PM
505
506# SH4AL-DSP Processor Support
507
508config CPU_SUBTYPE_SH7343
509 bool "Support SH7343 processor"
510 select CPU_SH4AL_DSP
dc65a977 511 select ARCH_SHMOBILE
f5ad881b 512 select SYS_SUPPORTS_CMT
b5f42db0
PM
513
514config CPU_SUBTYPE_SH7722
515 bool "Support SH7722 processor"
516 select CPU_SH4AL_DSP
517 select CPU_SHX2
dc65a977 518 select ARCH_SHMOBILE
b5f42db0
PM
519 select ARCH_SPARSEMEM_ENABLE
520 select SYS_SUPPORTS_NUMA
f5ad881b 521 select SYS_SUPPORTS_CMT
f020c92d 522 select ARCH_WANT_OPTIONAL_GPIOLIB
9109a30e
MD
523
524config CPU_SUBTYPE_SH7366
525 bool "Support SH7366 processor"
526 select CPU_SH4AL_DSP
527 select CPU_SHX2
dc65a977 528 select ARCH_SHMOBILE
9109a30e
MD
529 select ARCH_SPARSEMEM_ENABLE
530 select SYS_SUPPORTS_NUMA
f5ad881b 531 select SYS_SUPPORTS_CMT
b5f42db0 532
3cc000b5
PM
533endchoice
534
535endif
536
537if SUPERH64
538
539choice
540 prompt "Processor sub-type selection"
541
ea0e1a9a
PM
542# SH-5 Processor Support
543
544config CPU_SUBTYPE_SH5_101
545 bool "Support SH5-101 processor"
546 select CPU_SH5
547
548config CPU_SUBTYPE_SH5_103
549 bool "Support SH5-103 processor"
8ef97dd7 550 select CPU_SH5
ea0e1a9a 551
b5f42db0
PM
552endchoice
553
3cc000b5
PM
554endif
555
f3d22298 556source "arch/sh/mm/Kconfig"
939a24a6 557
4690bdc7 558source "arch/sh/Kconfig.cpu"
f3d22298 559
939a24a6 560source "arch/sh/boards/Kconfig"
32351a28 561
32351a28
PM
562menu "Timer and clock configuration"
563
9570ef20
MD
564config SH_TIMER_TMU
565 bool "TMU timer driver"
f19900b2 566 depends on SYS_SUPPORTS_TMU
9570ef20 567 default y
9570ef20
MD
568 help
569 This enables the build of the TMU timer driver.
570
f5ad881b 571config SH_TIMER_CMT
f425752f
MD
572 bool "CMT timer driver"
573 depends on SYS_SUPPORTS_CMT
574 default y
f425752f
MD
575 help
576 This enables build of the CMT timer driver.
f5ad881b 577
d5ed4c2e
MD
578config SH_TIMER_MTU2
579 bool "MTU2 timer driver"
3280c886 580 depends on SYS_SUPPORTS_MTU2
d5ed4c2e 581 default y
d5ed4c2e
MD
582 help
583 This enables build of the MTU2 timer driver.
584
cad82448
PM
585config SH_PCLK_FREQ
586 int "Peripheral clock frequency (in Hz)"
8152a74b 587 depends on SH_CLK_CPG_LEGACY
9d4436a6 588 default "31250000" if CPU_SUBTYPE_SH7619
8152a74b
PM
589 default "33333333" if CPU_SUBTYPE_SH7770 || \
590 CPU_SUBTYPE_SH7760 || \
591 CPU_SUBTYPE_SH7705 || \
592 CPU_SUBTYPE_SH7203 || \
593 CPU_SUBTYPE_SH7206 || \
594 CPU_SUBTYPE_SH7263 || \
43a1839c 595 CPU_SUBTYPE_MXG
05627486 596 default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
cad82448 597 default "66000000" if CPU_SUBTYPE_SH4_202
05627486 598 default "50000000"
1da177e4 599 help
cad82448
PM
600 This option is used to specify the peripheral clock frequency.
601 This is necessary for determining the reference clock value on
602 platforms lacking an RTC.
1da177e4 603
36aa1e32
PM
604config SH_CLK_CPG
605 def_bool y
606
253b0887 607config SH_CLK_CPG_LEGACY
36aa1e32 608 depends on SH_CLK_CPG
43a1839c 609 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
51ce3068 610 !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
bcb86e0a
PM
611 !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
612 !CPU_SUBTYPE_SH7269
253b0887 613
32351a28
PM
614endmenu
615
cad82448
PM
616menu "CPU Frequency scaling"
617
618source "drivers/cpufreq/Kconfig"
1da177e4 619
cad82448
PM
620config SH_CPU_FREQ
621 tristate "SuperH CPU Frequency driver"
cb5ec75b 622 depends on CPU_FREQ
cad82448 623 select CPU_FREQ_TABLE
1da177e4 624 help
8a655053
PM
625 This adds the cpufreq driver for SuperH. Any CPU that supports
626 clock rate rounding through the clock framework can use this
627 driver. While it will make the kernel slightly larger, this is
628 harmless for CPUs that don't support rate rounding. The driver
629 will also generate a notice in the boot log before disabling
630 itself if the CPU in question is not capable of rate rounding.
1da177e4 631
cad82448 632 For details, take a look at <file:Documentation/cpu-freq>.
1da177e4
LT
633
634 If unsure, say N.
635
cad82448
PM
636endmenu
637
9f5e8eee
PM
638source "arch/sh/drivers/Kconfig"
639
cad82448 640endmenu
1da177e4 641
cad82448
PM
642menu "Kernel features"
643
91b91d01
PM
644source kernel/Kconfig.hz
645
cad82448
PM
646config KEXEC
647 bool "kexec system call (EXPERIMENTAL)"
f36b59d1 648 depends on SUPERH32 && EXPERIMENTAL && MMU
1da177e4 649 help
cad82448
PM
650 kexec is a system call that implements the ability to shutdown your
651 current kernel, and to start another kernel. It is like a reboot
1f1332f7 652 but it is independent of the system firmware. And like a reboot
cad82448
PM
653 you can start any kernel with it, not just Linux.
654
1f1332f7 655 The name comes from the similarity to the exec system call.
cad82448
PM
656
657 It is an ongoing process to be certain the hardware in a machine
658 is properly shutdown, so do not be surprised if this code does not
659 initially work for you. It may help to enable device hotplugging
660 support. As of this writing the exact hardware interface is
661 strongly in flux, so no good recommendation can be made.
662
4d5ade5b
PM
663config CRASH_DUMP
664 bool "kernel crash dumps (EXPERIMENTAL)"
d523e1ae 665 depends on SUPERH32 && EXPERIMENTAL && BROKEN_ON_SMP
4d5ade5b
PM
666 help
667 Generate crash dump after being started by kexec.
668 This should be normally only set in special crash dump kernels
669 which are loaded in the main kernel with kexec-tools into
670 a specially reserved region and then later executed after
671 a crash by kdump/kexec. The crash dump kernel must be compiled
672 to a memory address not used by the main kernel using
e66ac3f2 673 PHYSICAL_START.
4d5ade5b
PM
674
675 For more details see Documentation/kdump/kdump.txt
676
b7cf6ddc
MD
677config KEXEC_JUMP
678 bool "kexec jump (EXPERIMENTAL)"
679 depends on SUPERH32 && KEXEC && HIBERNATION && EXPERIMENTAL
680 help
681 Jump between original kernel and kexeced kernel and invoke
682 code via KEXEC
683
e66ac3f2
SH
684config PHYSICAL_START
685 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
686 default MEMORY_START
687 ---help---
688 This gives the physical address where the kernel is loaded
689 and is ordinarily the same as MEMORY_START.
690
691 Different values are primarily used in the case of kexec on panic
692 where the fail safe kernel needs to run at a different address
693 than the panic-ed kernel.
694
c4637d47
PM
695config SECCOMP
696 bool "Enable seccomp to safely compute untrusted bytecode"
697 depends on PROC_FS
c4637d47
PM
698 help
699 This kernel feature is useful for number crunching applications
700 that may need to compute untrusted bytecode during their
701 execution. By using pipes or other transports made available to
702 the process as file descriptors supporting the read/write
703 syscalls, it's possible to isolate those applications in
704 their own address space using seccomp. Once seccomp is
705 enabled via prctl, it cannot be disabled and the task is only
706 allowed to execute a few safe syscalls defined by each seccomp
707 mode.
708
709 If unsure, say N.
710
5d920bb9
FA
711config CC_STACKPROTECTOR
712 bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)"
713 depends on SUPERH32 && EXPERIMENTAL
714 help
715 This option turns on the -fstack-protector GCC feature. This
716 feature puts, at the beginning of functions, a canary value on
717 the stack just before the return address, and validates
718 the value just before actually returning. Stack based buffer
719 overflows (that need to overwrite this return address) now also
720 overwrite the canary, which gets detected and the attack is then
721 neutralized via a kernel panic.
722
723 This feature requires gcc version 4.2 or above.
724
1da177e4
LT
725config SMP
726 bool "Symmetric multi-processing support"
357d5946 727 depends on SYS_SUPPORTS_SMP
490f5de5 728 select USE_GENERIC_SMP_HELPERS
1da177e4
LT
729 ---help---
730 This enables support for systems with more than one CPU. If you have
731 a system with only one CPU, like most personal computers, say N. If
732 you have a system with more than one CPU, say Y.
733
734 If you say N here, the kernel will run on single and multiprocessor
735 machines, but will use only one CPU of a multiprocessor machine. If
736 you say Y here, the kernel will run on many, but not all,
737 singleprocessor machines. On a singleprocessor machine, the kernel
738 will run faster if you say N here.
739
740 People using multiprocessor machines who say Y here should also say
741 Y to "Enhanced Real Time Clock Support", below.
742
03502faa
AB
743 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
744 available at <http://www.tldp.org/docs.html#howto>.
1da177e4
LT
745
746 If you don't know what to do here, say N.
747
748config NR_CPUS
749 int "Maximum number of CPUs (2-32)"
750 range 2 32
751 depends on SMP
2eb2a436 752 default "4" if CPU_SUBTYPE_SHX3
1da177e4
LT
753 default "2"
754 help
755 This allows you to specify the maximum number of CPUs which this
756 kernel will support. The maximum supported value is 32 and the
757 minimum value which makes sense is 2.
758
759 This is purely to save memory - each supported CPU adds
760 approximately eight kilobytes to the kernel image.
761
763142d1
PM
762config HOTPLUG_CPU
763 bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
764 depends on SMP && HOTPLUG && EXPERIMENTAL
765 help
766 Say Y here to experiment with turning CPUs off and on. CPUs
767 can be controlled through /sys/devices/system/cpu.
768
91b91d01
PM
769source "kernel/Kconfig.preempt"
770
83662461
PM
771config GUSA
772 def_bool y
1efe4ce3 773 depends on !SMP && SUPERH32
83662461
PM
774 help
775 This enables support for gUSA (general UserSpace Atomicity).
776 This is the default implementation for both UP and non-ll/sc
777 CPUs, and is used by the libc, amongst others.
778
779 For additional information, design information can be found
780 in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
781
782 This should only be disabled for special cases where alternate
783 atomicity implementations exist.
784
1efe4ce3
SM
785config GUSA_RB
786 bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
787 depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
788 help
789 Enabling this option will allow the kernel to implement some
692105b8 790 atomic operations using a software implementation of load-locked/
1efe4ce3
SM
791 store-conditional (LLSC). On machines which do not have hardware
792 LLSC, this should be more efficient than the other alternative of
692105b8 793 disabling interrupts around the atomic sequence.
1efe4ce3 794
86c8c047
MF
795config HW_PERF_EVENTS
796 bool "Enable hardware performance counter support for perf events"
797 depends on PERF_EVENTS && CPU_HAS_PMU
798 default y
799 help
800 Enable hardware performance counter support for perf events. If
801 disabled, perf events will use software events only.
802
43b8774d
PM
803source "drivers/sh/Kconfig"
804
cad82448 805endmenu
1da177e4 806
cad82448 807menu "Boot options"
1da177e4 808
cad82448 809config ZERO_PAGE_OFFSET
b412a49a
PM
810 hex
811 default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
812 SH_7751_SOLUTION_ENGINE
813 default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
7a847f81 814 default "0x00002000" if PAGE_SIZE_8KB
cad82448 815 default "0x00001000"
1da177e4 816 help
cad82448 817 This sets the default offset of zero page.
1da177e4 818
cad82448 819config BOOT_LINK_OFFSET
b412a49a
PM
820 hex
821 default "0x00210000" if SH_SHMIN
a2e76c80 822 default "0x00400000" if SH_CAYMAN
b412a49a
PM
823 default "0x00810000" if SH_7780_SOLUTION_ENGINE
824 default "0x009e0000" if SH_TITAN
825 default "0x01800000" if SH_SDK7780
826 default "0x02000000" if SH_EDOSK7760
cad82448
PM
827 default "0x00800000"
828 help
829 This option allows you to set the link address offset of the zImage.
830 This can be useful if you are on a board which has a small amount of
831 memory.
1da177e4 832
b412a49a
PM
833config ENTRY_OFFSET
834 hex
835 default "0x00001000" if PAGE_SIZE_4KB
836 default "0x00002000" if PAGE_SIZE_8KB
837 default "0x00004000" if PAGE_SIZE_16KB
838 default "0x00010000" if PAGE_SIZE_64KB
839 default "0x00000000"
840
4705b2e8
MD
841config ROMIMAGE_MMCIF
842 bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
843 depends on CPU_SUBTYPE_SH7724 && EXPERIMENTAL
844 help
845 Say Y here to include experimental MMCIF loading code in
846 romImage. With this enabled it is possible to write the romImage
847 kernel image to an MMC card and boot the kernel straight from
848 the reset vector. At reset the processor Mask ROM will load the
849 first part of the romImage which in turn loads the rest the kernel
850 image to RAM using the MMCIF hardware block.
851
d724a9c9
PM
852choice
853 prompt "Kernel command line"
854 optional
855 default CMDLINE_OVERWRITE
856 help
857 Setting this option allows the kernel command line arguments
858 to be set.
859
860config CMDLINE_OVERWRITE
861 bool "Overwrite bootloader kernel arguments"
862 help
863 Given string will overwrite any arguments passed in by
864 a bootloader.
865
866config CMDLINE_EXTEND
867 bool "Extend bootloader kernel arguments"
868 help
869 Given string will be concatenated with arguments passed in
870 by a bootloader.
871
872endchoice
1da177e4 873
cad82448 874config CMDLINE
d724a9c9
PM
875 string "Kernel command line arguments string"
876 depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
cad82448 877 default "console=ttySC1,115200"
1da177e4
LT
878
879endmenu
880
cad82448 881menu "Bus options"
1da177e4 882
cad82448
PM
883config SUPERHYWAY
884 tristate "SuperHyway Bus support"
885 depends on CPU_SUBTYPE_SH4_202
1da177e4 886
17be2d2b 887config MAPLE
e16038ab
PM
888 bool "Maple Bus support"
889 depends on SH_DREAMCAST
890 help
891 The Maple Bus is SEGA's serial communication bus for peripherals
892 on the Dreamcast. Without this bus support you won't be able to
893 get your Dreamcast keyboard etc to work, so most users
894 probably want to say 'Y' here, unless you are only using the
895 Dreamcast with a serial line terminal or a remote network
896 connection.
17be2d2b 897
7693465d
PM
898config PCI
899 bool "PCI support"
900 depends on SYS_SUPPORTS_PCI
320e68da 901 select PCI_DOMAINS
43db595e 902 select GENERIC_PCI_IOMAP
1e05b62a 903 select NO_GENERIC_PCI_IOPORT_MAP
7693465d
PM
904 help
905 Find out whether you have a PCI motherboard. PCI is the name of a
906 bus system, i.e. the way the CPU talks to the other stuff inside
907 your box. If you have PCI, say Y, otherwise N.
1da177e4 908
320e68da
PM
909config PCI_DOMAINS
910 bool
911
e16038ab
PM
912source "drivers/pci/pcie/Kconfig"
913
1da177e4
LT
914source "drivers/pci/Kconfig"
915
916source "drivers/pcmcia/Kconfig"
917
918source "drivers/pci/hotplug/Kconfig"
919
920endmenu
921
922menu "Executable file formats"
923
924source "fs/Kconfig.binfmt"
925
926endmenu
927
3aa770e7 928menu "Power management options (EXPERIMENTAL)"
af998a9a 929depends on EXPERIMENTAL
f4cb5700 930
c6f17cb2
MD
931source "kernel/power/Kconfig"
932
933source "drivers/cpuidle/Kconfig"
3aa770e7 934
3aa770e7
AS
935endmenu
936
d5950b43
SR
937source "net/Kconfig"
938
1da177e4
LT
939source "drivers/Kconfig"
940
941source "fs/Kconfig"
942
1da177e4
LT
943source "arch/sh/Kconfig.debug"
944
945source "security/Kconfig"
946
947source "crypto/Kconfig"
948
949source "lib/Kconfig"
This page took 0.617969 seconds and 5 git commands to generate.