aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/Kconfig
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /arch/sh/Kconfig
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'arch/sh/Kconfig')
-rw-r--r--arch/sh/Kconfig83
1 files changed, 49 insertions, 34 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 33990fa95af0..bbdeb48bbf8e 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -1,14 +1,7 @@
1#
2# For a description of the syntax of this configuration file,
3# see Documentation/kbuild/kconfig-language.txt.
4#
5
6mainmenu "Linux/SuperH Kernel Configuration"
7
8config SUPERH 1config SUPERH
9 def_bool y 2 def_bool y
10 select EMBEDDED 3 select EXPERT
11 select HAVE_CLK 4 select CLKDEV_LOOKUP
12 select HAVE_IDE if HAS_IOPORT 5 select HAVE_IDE if HAS_IOPORT
13 select HAVE_MEMBLOCK 6 select HAVE_MEMBLOCK
14 select HAVE_OPROFILE 7 select HAVE_OPROFILE
@@ -16,15 +9,22 @@ config SUPERH
16 select HAVE_ARCH_TRACEHOOK 9 select HAVE_ARCH_TRACEHOOK
17 select HAVE_DMA_API_DEBUG 10 select HAVE_DMA_API_DEBUG
18 select HAVE_DMA_ATTRS 11 select HAVE_DMA_ATTRS
12 select HAVE_IRQ_WORK
19 select HAVE_PERF_EVENTS 13 select HAVE_PERF_EVENTS
20 select PERF_USE_VMALLOC 14 select PERF_USE_VMALLOC
21 select HAVE_KERNEL_GZIP 15 select HAVE_KERNEL_GZIP
22 select HAVE_KERNEL_BZIP2 16 select HAVE_KERNEL_BZIP2
23 select HAVE_KERNEL_LZMA 17 select HAVE_KERNEL_LZMA
18 select HAVE_KERNEL_XZ
24 select HAVE_KERNEL_LZO 19 select HAVE_KERNEL_LZO
25 select HAVE_SYSCALL_TRACEPOINTS 20 select HAVE_SYSCALL_TRACEPOINTS
21 select HAVE_REGS_AND_STACK_ACCESS_API
22 select HAVE_GENERIC_HARDIRQS
23 select HAVE_SPARSE_IRQ
24 select IRQ_FORCED_THREADING
26 select RTC_LIB 25 select RTC_LIB
27 select GENERIC_ATOMIC64 26 select GENERIC_ATOMIC64
27 select GENERIC_IRQ_SHOW
28 help 28 help
29 The SuperH is a RISC processor targeted for use in embedded systems 29 The SuperH is a RISC processor targeted for use in embedded systems
30 and consumer electronics; it was also used in the Sega Dreamcast 30 and consumer electronics; it was also used in the Sega Dreamcast
@@ -45,8 +45,9 @@ config SUPERH32
45 select HAVE_ARCH_KGDB 45 select HAVE_ARCH_KGDB
46 select HAVE_HW_BREAKPOINT 46 select HAVE_HW_BREAKPOINT
47 select HAVE_MIXED_BREAKPOINTS_REGS 47 select HAVE_MIXED_BREAKPOINTS_REGS
48 select PERF_EVENTS if HAVE_HW_BREAKPOINT 48 select PERF_EVENTS
49 select ARCH_HIBERNATION_POSSIBLE if MMU 49 select ARCH_HIBERNATION_POSSIBLE if MMU
50 select SPARSE_IRQ
50 51
51config SUPERH64 52config SUPERH64
52 def_bool ARCH = "sh64" 53 def_bool ARCH = "sh64"
@@ -70,25 +71,12 @@ config GENERIC_CSUM
70 def_bool y 71 def_bool y
71 depends on SUPERH64 72 depends on SUPERH64
72 73
73config GENERIC_FIND_NEXT_BIT
74 def_bool y
75
76config GENERIC_HWEIGHT 74config GENERIC_HWEIGHT
77 def_bool y 75 def_bool y
78 76
79config GENERIC_HARDIRQS
80 def_bool y
81
82config GENERIC_HARDIRQS_NO__DO_IRQ
83 def_bool y
84
85config IRQ_PER_CPU 77config IRQ_PER_CPU
86 def_bool y 78 def_bool y
87 79
88config SPARSE_IRQ
89 def_bool y
90 depends on SUPERH32
91
92config GENERIC_GPIO 80config GENERIC_GPIO
93 def_bool n 81 def_bool n
94 82
@@ -172,7 +160,8 @@ config ARCH_HAS_CPU_IDLE_WAIT
172 def_bool y 160 def_bool y
173 161
174config NO_IOPORT 162config NO_IOPORT
175 bool 163 def_bool !PCI
164 depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN
176 165
177config IO_TRAPPED 166config IO_TRAPPED
178 bool 167 bool
@@ -204,6 +193,7 @@ config CPU_SH2
204config CPU_SH2A 193config CPU_SH2A
205 bool 194 bool
206 select CPU_SH2 195 select CPU_SH2
196 select UNCACHED_MAPPING
207 197
208config CPU_SH3 198config CPU_SH3
209 bool 199 bool
@@ -249,6 +239,11 @@ config ARCH_SHMOBILE
249 select PM 239 select PM
250 select PM_RUNTIME 240 select PM_RUNTIME
251 241
242config CPU_HAS_PMU
243 depends on CPU_SH4 || CPU_SH4A
244 default y
245 bool
246
252if SUPERH32 247if SUPERH32
253 248
254choice 249choice
@@ -279,6 +274,7 @@ config CPU_SUBTYPE_SH7203
279 select CPU_HAS_FPU 274 select CPU_HAS_FPU
280 select SYS_SUPPORTS_CMT 275 select SYS_SUPPORTS_CMT
281 select SYS_SUPPORTS_MTU2 276 select SYS_SUPPORTS_MTU2
277 select ARCH_WANT_OPTIONAL_GPIOLIB
282 278
283config CPU_SUBTYPE_SH7206 279config CPU_SUBTYPE_SH7206
284 bool "Support SH7206 processor" 280 bool "Support SH7206 processor"
@@ -350,6 +346,9 @@ config CPU_SUBTYPE_SH7720
350 select CPU_SH3 346 select CPU_SH3
351 select CPU_HAS_DSP 347 select CPU_HAS_DSP
352 select SYS_SUPPORTS_CMT 348 select SYS_SUPPORTS_CMT
349 select ARCH_WANT_OPTIONAL_GPIOLIB
350 select USB_ARCH_HAS_OHCI
351 select USB_OHCI_SH if USB_OHCI_HCD
353 help 352 help
354 Select SH7720 if you have a SH3-DSP SH7720 CPU. 353 Select SH7720 if you have a SH3-DSP SH7720 CPU.
355 354
@@ -358,6 +357,8 @@ config CPU_SUBTYPE_SH7721
358 select CPU_SH3 357 select CPU_SH3
359 select CPU_HAS_DSP 358 select CPU_HAS_DSP
360 select SYS_SUPPORTS_CMT 359 select SYS_SUPPORTS_CMT
360 select USB_ARCH_HAS_OHCI
361 select USB_OHCI_SH if USB_OHCI_HCD
361 help 362 help
362 Select SH7721 if you have a SH3-DSP SH7721 CPU. 363 Select SH7721 if you have a SH3-DSP SH7721 CPU.
363 364
@@ -412,6 +413,7 @@ config CPU_SUBTYPE_SH7723
412 select ARCH_SHMOBILE 413 select ARCH_SHMOBILE
413 select ARCH_SPARSEMEM_ENABLE 414 select ARCH_SPARSEMEM_ENABLE
414 select SYS_SUPPORTS_CMT 415 select SYS_SUPPORTS_CMT
416 select ARCH_WANT_OPTIONAL_GPIOLIB
415 help 417 help
416 Select SH7723 if you have an SH-MobileR2 CPU. 418 Select SH7723 if you have an SH-MobileR2 CPU.
417 419
@@ -422,6 +424,7 @@ config CPU_SUBTYPE_SH7724
422 select ARCH_SHMOBILE 424 select ARCH_SHMOBILE
423 select ARCH_SPARSEMEM_ENABLE 425 select ARCH_SPARSEMEM_ENABLE
424 select SYS_SUPPORTS_CMT 426 select SYS_SUPPORTS_CMT
427 select ARCH_WANT_OPTIONAL_GPIOLIB
425 help 428 help
426 Select SH7724 if you have an SH-MobileR2R CPU. 429 Select SH7724 if you have an SH-MobileR2R CPU.
427 430
@@ -429,12 +432,17 @@ config CPU_SUBTYPE_SH7757
429 bool "Support SH7757 processor" 432 bool "Support SH7757 processor"
430 select CPU_SH4A 433 select CPU_SH4A
431 select CPU_SHX2 434 select CPU_SHX2
435 select ARCH_WANT_OPTIONAL_GPIOLIB
436 select USB_ARCH_HAS_OHCI
437 select USB_ARCH_HAS_EHCI
432 help 438 help
433 Select SH7757 if you have a SH4A SH7757 CPU. 439 Select SH7757 if you have a SH4A SH7757 CPU.
434 440
435config CPU_SUBTYPE_SH7763 441config CPU_SUBTYPE_SH7763
436 bool "Support SH7763 processor" 442 bool "Support SH7763 processor"
437 select CPU_SH4A 443 select CPU_SH4A
444 select USB_ARCH_HAS_OHCI
445 select USB_OHCI_SH if USB_OHCI_HCD
438 help 446 help
439 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU. 447 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
440 448
@@ -452,6 +460,7 @@ config CPU_SUBTYPE_SH7785
452 select CPU_SHX2 460 select CPU_SHX2
453 select ARCH_SPARSEMEM_ENABLE 461 select ARCH_SPARSEMEM_ENABLE
454 select SYS_SUPPORTS_NUMA 462 select SYS_SUPPORTS_NUMA
463 select ARCH_WANT_OPTIONAL_GPIOLIB
455 464
456config CPU_SUBTYPE_SH7786 465config CPU_SUBTYPE_SH7786
457 bool "Support SH7786 processor" 466 bool "Support SH7786 processor"
@@ -459,12 +468,18 @@ config CPU_SUBTYPE_SH7786
459 select CPU_SHX3 468 select CPU_SHX3
460 select CPU_HAS_PTEAEX 469 select CPU_HAS_PTEAEX
461 select GENERIC_CLOCKEVENTS_BROADCAST if SMP 470 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
471 select ARCH_WANT_OPTIONAL_GPIOLIB
472 select USB_ARCH_HAS_OHCI
473 select USB_OHCI_SH if USB_OHCI_HCD
474 select USB_ARCH_HAS_EHCI
475 select USB_EHCI_SH if USB_EHCI_HCD
462 476
463config CPU_SUBTYPE_SHX3 477config CPU_SUBTYPE_SHX3
464 bool "Support SH-X3 processor" 478 bool "Support SH-X3 processor"
465 select CPU_SH4A 479 select CPU_SH4A
466 select CPU_SHX3 480 select CPU_SHX3
467 select GENERIC_CLOCKEVENTS_BROADCAST if SMP 481 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
482 select ARCH_REQUIRE_GPIOLIB
468 483
469# SH4AL-DSP Processor Support 484# SH4AL-DSP Processor Support
470 485
@@ -482,6 +497,7 @@ config CPU_SUBTYPE_SH7722
482 select ARCH_SPARSEMEM_ENABLE 497 select ARCH_SPARSEMEM_ENABLE
483 select SYS_SUPPORTS_NUMA 498 select SYS_SUPPORTS_NUMA
484 select SYS_SUPPORTS_CMT 499 select SYS_SUPPORTS_CMT
500 select ARCH_WANT_OPTIONAL_GPIOLIB
485 501
486config CPU_SUBTYPE_SH7366 502config CPU_SUBTYPE_SH7366
487 bool "Support SH7366 processor" 503 bool "Support SH7366 processor"
@@ -569,16 +585,7 @@ config SH_CLK_CPG
569config SH_CLK_CPG_LEGACY 585config SH_CLK_CPG_LEGACY
570 depends on SH_CLK_CPG 586 depends on SH_CLK_CPG
571 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \ 587 def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
572 !CPU_SUBTYPE_SH7786 588 !CPU_SHX3 && !CPU_SUBTYPE_SH7757
573
574config SH_CLK_MD
575 int "CPU Mode Pin Setting"
576 depends on CPU_SH2
577 default 6 if CPU_SUBTYPE_SH7206
578 default 5 if CPU_SUBTYPE_SH7619
579 default 0
580 help
581 MD2 - MD0 pin setting.
582 589
583source "kernel/time/Kconfig" 590source "kernel/time/Kconfig"
584 591
@@ -738,6 +745,14 @@ config GUSA_RB
738 LLSC, this should be more efficient than the other alternative of 745 LLSC, this should be more efficient than the other alternative of
739 disabling interrupts around the atomic sequence. 746 disabling interrupts around the atomic sequence.
740 747
748config HW_PERF_EVENTS
749 bool "Enable hardware performance counter support for perf events"
750 depends on PERF_EVENTS && CPU_HAS_PMU
751 default y
752 help
753 Enable hardware performance counter support for perf events. If
754 disabled, perf events will use software events only.
755
741source "drivers/sh/Kconfig" 756source "drivers/sh/Kconfig"
742 757
743endmenu 758endmenu