diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-21 01:58:01 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:52 -0500 |
commit | ea0e1a9a3d73b917226eca751bf369609fa0dc2f (patch) | |
tree | ebf624d6656f8be7d8f227f7c0029ec9477d80af /arch/sh | |
parent | 711fe4369c5d3834cfe1750f8804ef2b74865e9e (diff) |
sh: Consolidate Kconfig.sh/Kconfig.sh64.
Fold in the sh64-specific bits in to the main Kconfig.sh, and move
this back as arch/sh/Kconfig.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/Kconfig (renamed from arch/sh/Kconfig.sh) | 36 | ||||
-rw-r--r-- | arch/sh/Kconfig.cpu | 13 | ||||
-rw-r--r-- | arch/sh/Kconfig.sh64 | 239 |
3 files changed, 46 insertions, 242 deletions
diff --git a/arch/sh/Kconfig.sh b/arch/sh/Kconfig index 23eea5cf4ca0..7cfd17230224 100644 --- a/arch/sh/Kconfig.sh +++ b/arch/sh/Kconfig | |||
@@ -6,8 +6,7 @@ | |||
6 | mainmenu "Linux/SuperH Kernel Configuration" | 6 | mainmenu "Linux/SuperH Kernel Configuration" |
7 | 7 | ||
8 | config SUPERH | 8 | config SUPERH |
9 | bool | 9 | def_bool y |
10 | default y | ||
11 | select EMBEDDED | 10 | select EMBEDDED |
12 | help | 11 | help |
13 | The SuperH is a RISC processor targeted for use in embedded systems | 12 | The SuperH is a RISC processor targeted for use in embedded systems |
@@ -16,12 +15,18 @@ config SUPERH | |||
16 | <http://www.linux-sh.org/>. | 15 | <http://www.linux-sh.org/>. |
17 | 16 | ||
18 | config SUPERH32 | 17 | config SUPERH32 |
19 | def_bool y | 18 | def_bool !SUPERH64 |
19 | |||
20 | config SUPERH64 | ||
21 | def_bool y if CPU_SH5 | ||
20 | 22 | ||
21 | config RWSEM_GENERIC_SPINLOCK | 23 | config RWSEM_GENERIC_SPINLOCK |
22 | bool | 24 | bool |
23 | default y | 25 | default y |
24 | 26 | ||
27 | config SUPERH64 | ||
28 | def_bool y if CPU_SH5 | ||
29 | |||
25 | config RWSEM_XCHGADD_ALGORITHM | 30 | config RWSEM_XCHGADD_ALGORITHM |
26 | bool | 31 | bool |
27 | 32 | ||
@@ -131,6 +136,10 @@ config CPU_SH4AL_DSP | |||
131 | select CPU_SH4A | 136 | select CPU_SH4A |
132 | select CPU_HAS_DSP | 137 | select CPU_HAS_DSP |
133 | 138 | ||
139 | config CPU_SH5 | ||
140 | bool | ||
141 | select CPU_HAS_FPU | ||
142 | |||
134 | config CPU_SHX2 | 143 | config CPU_SHX2 |
135 | bool | 144 | bool |
136 | 145 | ||
@@ -288,6 +297,15 @@ config CPU_SUBTYPE_SH7722 | |||
288 | select ARCH_SPARSEMEM_ENABLE | 297 | select ARCH_SPARSEMEM_ENABLE |
289 | select SYS_SUPPORTS_NUMA | 298 | select SYS_SUPPORTS_NUMA |
290 | 299 | ||
300 | # SH-5 Processor Support | ||
301 | |||
302 | config CPU_SUBTYPE_SH5_101 | ||
303 | bool "Support SH5-101 processor" | ||
304 | select CPU_SH5 | ||
305 | |||
306 | config CPU_SUBTYPE_SH5_103 | ||
307 | bool "Support SH5-103 processor" | ||
308 | |||
291 | endchoice | 309 | endchoice |
292 | 310 | ||
293 | source "arch/sh/mm/Kconfig" | 311 | source "arch/sh/mm/Kconfig" |
@@ -490,6 +508,18 @@ config SH_MAGIC_PANEL_R2 | |||
490 | help | 508 | help |
491 | Select Magic Panel R2 if configuring for Magic Panel R2. | 509 | Select Magic Panel R2 if configuring for Magic Panel R2. |
492 | 510 | ||
511 | config SH_SIMULATOR | ||
512 | bool "Simulator" | ||
513 | depends on SUPERH64 | ||
514 | |||
515 | config SH_CAYMAN | ||
516 | bool "Hitachi Cayman" | ||
517 | depends on CPU_SUBTYPE_SH5_101 || CPU_SUBTYPE_SH5_103 | ||
518 | |||
519 | config SH_HARP | ||
520 | bool "ST50 Harp" | ||
521 | depends on CPU_SH5 | ||
522 | |||
493 | endmenu | 523 | endmenu |
494 | 524 | ||
495 | source "arch/sh/boards/renesas/hs7751rvoip/Kconfig" | 525 | source "arch/sh/boards/renesas/hs7751rvoip/Kconfig" |
diff --git a/arch/sh/Kconfig.cpu b/arch/sh/Kconfig.cpu index 9f329dff88b1..ef398535caf8 100644 --- a/arch/sh/Kconfig.cpu +++ b/arch/sh/Kconfig.cpu | |||
@@ -25,6 +25,10 @@ config SH_FPU | |||
25 | 25 | ||
26 | This option must be set in order to enable the FPU. | 26 | This option must be set in order to enable the FPU. |
27 | 27 | ||
28 | config SH64_FPU_DENORM_FLUSH | ||
29 | bool "Flush floating point denorms to zero" | ||
30 | depends on SH_FPU && SUPERH64 | ||
31 | |||
28 | config SH_FPU_EMU | 32 | config SH_FPU_EMU |
29 | bool "FPU emulation support" | 33 | bool "FPU emulation support" |
30 | depends on !SH_FPU && EXPERIMENTAL | 34 | depends on !SH_FPU && EXPERIMENTAL |
@@ -71,6 +75,15 @@ config SPECULATIVE_EXECUTION | |||
71 | 75 | ||
72 | If unsure, say N. | 76 | If unsure, say N. |
73 | 77 | ||
78 | config SH64_USER_MISALIGNED_FIXUP | ||
79 | bool "Fixup misaligned loads/stores occurring in user mode" | ||
80 | depends on SUPERH64 | ||
81 | default y | ||
82 | |||
83 | config SH64_ID2815_WORKAROUND | ||
84 | bool "Include workaround for SH5-101 cut2 silicon defect ID2815" | ||
85 | depends on CPU_SUBTYPE_SH5_101 | ||
86 | |||
74 | config CPU_HAS_INTEVT | 87 | config CPU_HAS_INTEVT |
75 | bool | 88 | bool |
76 | 89 | ||
diff --git a/arch/sh/Kconfig.sh64 b/arch/sh/Kconfig.sh64 deleted file mode 100644 index 9f71f9531c08..000000000000 --- a/arch/sh/Kconfig.sh64 +++ /dev/null | |||
@@ -1,239 +0,0 @@ | |||
1 | # | ||
2 | # For a description of the syntax of this configuration file, | ||
3 | # see Documentation/kbuild/kconfig-language.txt. | ||
4 | # | ||
5 | |||
6 | mainmenu "Linux/SH64 Kernel Configuration" | ||
7 | |||
8 | config SUPERH | ||
9 | bool | ||
10 | default y | ||
11 | |||
12 | config SUPERH64 | ||
13 | bool | ||
14 | default y | ||
15 | |||
16 | config MMU | ||
17 | bool | ||
18 | default y | ||
19 | |||
20 | config QUICKLIST | ||
21 | def_bool y | ||
22 | |||
23 | config RWSEM_GENERIC_SPINLOCK | ||
24 | bool | ||
25 | default y | ||
26 | |||
27 | config GENERIC_FIND_NEXT_BIT | ||
28 | bool | ||
29 | default y | ||
30 | |||
31 | config GENERIC_HWEIGHT | ||
32 | bool | ||
33 | default y | ||
34 | |||
35 | config GENERIC_CALIBRATE_DELAY | ||
36 | bool | ||
37 | default y | ||
38 | |||
39 | config GENERIC_HARDIRQS | ||
40 | bool | ||
41 | default y | ||
42 | |||
43 | config GENERIC_IRQ_PROBE | ||
44 | bool | ||
45 | default y | ||
46 | |||
47 | config RWSEM_XCHGADD_ALGORITHM | ||
48 | bool | ||
49 | |||
50 | config ARCH_HAS_ILOG2_U32 | ||
51 | bool | ||
52 | default n | ||
53 | |||
54 | config ARCH_HAS_ILOG2_U64 | ||
55 | bool | ||
56 | default n | ||
57 | |||
58 | config ARCH_NO_VIRT_TO_BUS | ||
59 | def_bool y | ||
60 | |||
61 | source init/Kconfig | ||
62 | |||
63 | menu "System type" | ||
64 | |||
65 | choice | ||
66 | prompt "SuperH system type" | ||
67 | default SH_SIMULATOR | ||
68 | |||
69 | config SH_SIMULATOR | ||
70 | bool "Simulator" | ||
71 | |||
72 | config SH_CAYMAN | ||
73 | bool "Cayman" | ||
74 | |||
75 | config SH_HARP | ||
76 | bool "ST50-Harp" | ||
77 | |||
78 | endchoice | ||
79 | |||
80 | choice | ||
81 | prompt "Processor family" | ||
82 | default CPU_SH5 | ||
83 | |||
84 | config CPU_SH5 | ||
85 | bool "SH-5" | ||
86 | select CPU_HAS_FPU | ||
87 | |||
88 | endchoice | ||
89 | |||
90 | choice | ||
91 | prompt "Processor type" | ||
92 | |||
93 | config CPU_SUBTYPE_SH5_101 | ||
94 | bool "SH5-101" | ||
95 | depends on CPU_SH5 | ||
96 | |||
97 | config CPU_SUBTYPE_SH5_103 | ||
98 | bool "SH5-103" | ||
99 | depends on CPU_SH5 | ||
100 | |||
101 | endchoice | ||
102 | |||
103 | source "arch/sh/Kconfig.cpu" | ||
104 | |||
105 | config SH64_FPU_DENORM_FLUSH | ||
106 | depends on SH_FPU | ||
107 | bool "Flush floating point denorms to zero" | ||
108 | |||
109 | config SH64_USER_MISALIGNED_FIXUP | ||
110 | bool "Fixup misaligned loads/stores occurring in user mode" | ||
111 | |||
112 | comment "Memory options" | ||
113 | |||
114 | config MEMORY_START | ||
115 | hex "Physical memory start address" | ||
116 | default "80000000" | ||
117 | |||
118 | config MEMORY_SIZE_IN_MB | ||
119 | int "Memory size (in MB)" | ||
120 | default "8" if SH_SIMULATOR | ||
121 | default "64" | ||
122 | |||
123 | comment "Cache options" | ||
124 | |||
125 | choice | ||
126 | prompt "DCache mode" | ||
127 | default DCACHE_DISABLED if SH_SIMULATOR | ||
128 | default DCACHE_WRITE_BACK | ||
129 | |||
130 | config DCACHE_WRITE_BACK | ||
131 | bool "Write-back" | ||
132 | depends on !SH_SIMULATOR | ||
133 | |||
134 | config DCACHE_WRITE_THROUGH | ||
135 | bool "Write-through" | ||
136 | depends on !SH_SIMULATOR | ||
137 | |||
138 | config DCACHE_DISABLED | ||
139 | bool "Disabled" | ||
140 | |||
141 | endchoice | ||
142 | |||
143 | config ICACHE_DISABLED | ||
144 | bool "ICache Disabling" | ||
145 | |||
146 | comment "CPU Subtype specific options" | ||
147 | |||
148 | config SH64_ID2815_WORKAROUND | ||
149 | bool "Include workaround for SH5-101 cut2 silicon defect ID2815" | ||
150 | |||
151 | comment "Misc options" | ||
152 | |||
153 | config HEARTBEAT | ||
154 | bool "Heartbeat LED" | ||
155 | depends on SH_CAYMAN | ||
156 | |||
157 | config HDSP253_LED | ||
158 | bool "Support for HDSP-253 LED" | ||
159 | depends on SH_CAYMAN | ||
160 | |||
161 | config SH_DMA | ||
162 | tristate "DMA controller (DMAC) support" | ||
163 | |||
164 | config PREEMPT | ||
165 | bool "Preemptible Kernel (EXPERIMENTAL)" | ||
166 | depends on EXPERIMENTAL | ||
167 | |||
168 | config SH_PCLK_FREQ | ||
169 | int "Peripheral clock frequency (in Hz)" | ||
170 | default "50000000" | ||
171 | |||
172 | source "kernel/Kconfig.hz" | ||
173 | source "arch/sh/mm/Kconfig" | ||
174 | |||
175 | endmenu | ||
176 | |||
177 | menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)" | ||
178 | |||
179 | config ISA | ||
180 | bool | ||
181 | |||
182 | config SBUS | ||
183 | bool | ||
184 | |||
185 | config PCI | ||
186 | bool "PCI support" | ||
187 | depends on SH_CAYMAN | ||
188 | help | ||
189 | Find out whether you have a PCI motherboard. PCI is the name of a | ||
190 | bus system, i.e. the way the CPU talks to the other stuff inside | ||
191 | your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or | ||
192 | VESA. If you have PCI, say Y, otherwise N. | ||
193 | |||
194 | The PCI-HOWTO, available from | ||
195 | <http://www.tldp.org/docs.html#howto>, contains valuable | ||
196 | information about which PCI hardware does work under Linux and which | ||
197 | doesn't. | ||
198 | |||
199 | config SH_PCIDMA_NONCOHERENT | ||
200 | bool "Cache and PCI noncoherent" | ||
201 | depends on PCI | ||
202 | default y | ||
203 | help | ||
204 | Enable this option if your platform does not have a CPU cache which | ||
205 | remains coherent with PCI DMA. It is safest to say 'Y', although you | ||
206 | will see better performance if you can say 'N', because the PCI DMA | ||
207 | code will not have to flush the CPU's caches. If you have a PCI host | ||
208 | bridge integrated with your SH CPU, refer carefully to the chip specs | ||
209 | to see if you can say 'N' here. Otherwise, leave it as 'Y'. | ||
210 | |||
211 | source "drivers/pci/Kconfig" | ||
212 | |||
213 | source "drivers/pcmcia/Kconfig" | ||
214 | |||
215 | source "drivers/pci/hotplug/Kconfig" | ||
216 | |||
217 | endmenu | ||
218 | |||
219 | menu "Executable file formats" | ||
220 | |||
221 | source "fs/Kconfig.binfmt" | ||
222 | |||
223 | endmenu | ||
224 | |||
225 | source "net/Kconfig" | ||
226 | |||
227 | source "drivers/Kconfig" | ||
228 | |||
229 | source "fs/Kconfig" | ||
230 | |||
231 | source "kernel/Kconfig.instrumentation" | ||
232 | |||
233 | source "arch/sh/Kconfig.debug" | ||
234 | |||
235 | source "security/Kconfig" | ||
236 | |||
237 | source "crypto/Kconfig" | ||
238 | |||
239 | source "lib/Kconfig" | ||