Loading...
1config M32R
2 bool
3 default y
4 select HAVE_IDE
5 select HAVE_OPROFILE
6 select INIT_ALL_POSSIBLE
7 select HAVE_KERNEL_GZIP
8 select HAVE_KERNEL_BZIP2
9 select HAVE_KERNEL_LZMA
10 select HAVE_GENERIC_HARDIRQS
11 select GENERIC_IRQ_PROBE
12 select GENERIC_IRQ_SHOW
13
14config SBUS
15 bool
16
17config GENERIC_ISA_DMA
18 bool
19 default y
20
21config ZONE_DMA
22 bool
23 default y
24
25config NO_IOPORT
26 def_bool y
27
28config NO_DMA
29 def_bool y
30
31config HZ
32 int
33 default 100
34
35config ARCH_USES_GETTIMEOFFSET
36 def_bool y
37
38source "init/Kconfig"
39
40source "kernel/Kconfig.freezer"
41
42
43menu "Processor type and features"
44
45choice
46 prompt "Platform Type"
47 default PLAT_MAPPI
48
49config PLAT_MAPPI
50 bool "Mappi-I"
51 help
52 The Mappi-I is an FPGA board for SOC (System-On-a-Chip) prototyping.
53 You can operate a Linux system on this board by using an M32R
54 softmacro core, which is a fully-synthesizable functional model
55 described in Verilog-HDL.
56
57 The Mappi-I board was the first platform, which had been used
58 to port and develop a Linux system for the M32R processor.
59 Currently, the Mappi-II, an heir to the Mappi-I, is available.
60
61config PLAT_USRV
62 bool "uServer"
63 select PLAT_HAS_INT1ICU
64
65config PLAT_M32700UT
66 bool "M32700UT"
67 select PLAT_HAS_INT0ICU
68 select PLAT_HAS_INT1ICU
69 select PLAT_HAS_INT2ICU
70 help
71 The M3T-M32700UT is an evaluation board based on uT-Engine
72 specification. This board has an M32700 (Chaos) evaluation chip.
73 You can say Y for SMP, because the M32700 is a single chip
74 multiprocessor.
75
76config PLAT_OPSPUT
77 bool "OPSPUT"
78 select PLAT_HAS_INT0ICU
79 select PLAT_HAS_INT1ICU
80 select PLAT_HAS_INT2ICU
81 help
82 The OPSPUT is an evaluation board based on uT-Engine
83 specification. This board has a OPSP-REP chip.
84
85config PLAT_OAKS32R
86 bool "OAKS32R"
87 help
88 The OAKS32R is a tiny, inexpensive evaluation board.
89 Please note that if you say Y here and choose chip "M32102",
90 say N for MMU and select a no-MMU version kernel, otherwise
91 a kernel with MMU support will not work, because the M32102
92 is a microcontroller for embedded systems and it has no MMU.
93
94config PLAT_MAPPI2
95 bool "Mappi-II(M3A-ZA36/M3A-ZA52)"
96
97config PLAT_MAPPI3
98 bool "Mappi-III(M3A-2170)"
99
100config PLAT_M32104UT
101 bool "M32104UT"
102 select PLAT_HAS_INT1ICU
103 help
104 The M3T-M32104UT is an reference board based on uT-Engine
105 specification. This board has a M32104 chip.
106
107endchoice
108
109choice
110 prompt "Processor family"
111 default CHIP_M32700
112
113config CHIP_M32700
114 bool "M32700 (Chaos)"
115
116config CHIP_M32102
117 bool "M32102"
118
119config CHIP_M32104
120 bool "M32104"
121 depends on PLAT_M32104UT
122
123config CHIP_VDEC2
124 bool "VDEC2"
125
126config CHIP_OPSP
127 bool "OPSP"
128
129endchoice
130
131config MMU
132 bool "Support for memory management hardware"
133 depends on CHIP_M32700 || CHIP_VDEC2 || CHIP_OPSP
134 default y
135
136config TLB_ENTRIES
137 int "TLB Entries"
138 depends on CHIP_M32700 || CHIP_VDEC2 || CHIP_OPSP
139 default 32 if CHIP_M32700 || CHIP_OPSP
140 default 16 if CHIP_VDEC2
141
142
143config ISA_M32R
144 bool
145 depends on CHIP_M32102 || CHIP_M32104
146 default y
147
148config ISA_M32R2
149 bool
150 depends on CHIP_M32700 || CHIP_VDEC2 || CHIP_OPSP
151 default y
152
153config ISA_DSP_LEVEL2
154 bool
155 depends on CHIP_M32700 || CHIP_OPSP
156 default y
157
158config ISA_DUAL_ISSUE
159 bool
160 depends on CHIP_M32700 || CHIP_OPSP
161 default y
162
163config PLAT_HAS_INT0ICU
164 bool
165 default n
166
167config PLAT_HAS_INT1ICU
168 bool
169 default n
170
171config PLAT_HAS_INT2ICU
172 bool
173 default n
174
175config BUS_CLOCK
176 int "Bus Clock [Hz] (integer)"
177 default "70000000" if PLAT_MAPPI
178 default "25000000" if PLAT_USRV
179 default "50000000" if PLAT_MAPPI3
180 default "50000000" if PLAT_M32700UT
181 default "50000000" if PLAT_OPSPUT
182 default "54000000" if PLAT_M32104UT
183 default "33333333" if PLAT_OAKS32R
184 default "20000000" if PLAT_MAPPI2
185
186config TIMER_DIVIDE
187 int "Timer divider (integer)"
188 default "128"
189
190config CPU_LITTLE_ENDIAN
191 bool "Generate little endian code"
192 default n
193
194config MEMORY_START
195 hex "Physical memory start address (hex)"
196 default "08000000" if PLAT_MAPPI || PLAT_MAPPI2 || PLAT_MAPPI3
197 default "08000000" if PLAT_USRV
198 default "08000000" if PLAT_M32700UT
199 default "08000000" if PLAT_OPSPUT
200 default "04000000" if PLAT_M32104UT
201 default "01000000" if PLAT_OAKS32R
202
203config MEMORY_SIZE
204 hex "Physical memory size (hex)"
205 default "08000000" if PLAT_MAPPI3
206 default "04000000" if PLAT_MAPPI || PLAT_MAPPI2
207 default "02000000" if PLAT_USRV
208 default "01000000" if PLAT_M32700UT
209 default "01000000" if PLAT_OPSPUT
210 default "01000000" if PLAT_M32104UT
211 default "00800000" if PLAT_OAKS32R
212
213config ARCH_DISCONTIGMEM_ENABLE
214 bool "Internal RAM Support"
215 depends on CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104
216 default y
217
218source "mm/Kconfig"
219
220config IRAM_START
221 hex "Internal memory start address (hex)"
222 default "00f00000" if !CHIP_M32104
223 default "00700000" if CHIP_M32104
224 depends on (CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104) && DISCONTIGMEM
225
226config IRAM_SIZE
227 hex "Internal memory size (hex)"
228 depends on (CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104) && DISCONTIGMEM
229 default "00080000" if CHIP_M32700
230 default "00010000" if CHIP_M32102 || CHIP_OPSP || CHIP_M32104
231 default "00008000" if CHIP_VDEC2
232
233#
234# Define implied options from the CPU selection here
235#
236
237config GENERIC_LOCKBREAK
238 bool
239 default y
240 depends on SMP && PREEMPT
241
242config RWSEM_GENERIC_SPINLOCK
243 bool
244 depends on M32R
245 default y
246
247config RWSEM_XCHGADD_ALGORITHM
248 bool
249 default n
250
251config ARCH_HAS_ILOG2_U32
252 bool
253 default n
254
255config ARCH_HAS_ILOG2_U64
256 bool
257 default n
258
259config GENERIC_HWEIGHT
260 bool
261 default y
262
263config GENERIC_CALIBRATE_DELAY
264 bool
265 default y
266
267config SCHED_OMIT_FRAME_POINTER
268 bool
269 default y
270
271source "kernel/Kconfig.preempt"
272
273config SMP
274 bool "Symmetric multi-processing support"
275 select USE_GENERIC_SMP_HELPERS
276 ---help---
277 This enables support for systems with more than one CPU. If you have
278 a system with only one CPU, like most personal computers, say N. If
279 you have a system with more than one CPU, say Y.
280
281 If you say N here, the kernel will run on single and multiprocessor
282 machines, but will use only one CPU of a multiprocessor machine. If
283 you say Y here, the kernel will run on many, but not all,
284 singleprocessor machines. On a singleprocessor machine, the kernel
285 will run faster if you say N here.
286
287 People using multiprocessor machines who say Y here should also say
288 Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
289 Management" code will be disabled if you say Y here.
290
291 See also the SMP-HOWTO available at
292 <http://tldp.org/HOWTO/SMP-HOWTO.html>.
293
294 If you don't know what to do here, say N.
295
296config CHIP_M32700_TS1
297 bool "Workaround code for the M32700 TS1 chip's bug"
298 depends on (CHIP_M32700 && SMP)
299 default n
300
301config NR_CPUS
302 int "Maximum number of CPUs (2-32)"
303 range 2 32
304 depends on SMP
305 default "2"
306 help
307 This allows you to specify the maximum number of CPUs which this
308 kernel will support. The maximum supported value is 32 and the
309 minimum value which makes sense is 2.
310
311 This is purely to save memory - each supported CPU adds
312 approximately eight kilobytes to the kernel image.
313
314# Common NUMA Features
315config NUMA
316 bool "Numa Memory Allocation Support"
317 depends on SMP && BROKEN
318 default n
319
320config NODES_SHIFT
321 int
322 default "1"
323 depends on NEED_MULTIPLE_NODES
324
325# turning this on wastes a bunch of space.
326# Summit needs it only when NUMA is on
327config BOOT_IOREMAP
328 bool
329 depends on NUMA
330 default n
331
332endmenu
333
334
335menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)"
336
337config PCI
338 bool "PCI support"
339 depends on BROKEN
340 default n
341 help
342 Find out whether you have a PCI motherboard. PCI is the name of a
343 bus system, i.e. the way the CPU talks to the other stuff inside
344 your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
345 VESA. If you have PCI, say Y, otherwise N.
346
347choice
348 prompt "PCI access mode"
349 depends on PCI
350 default PCI_GOANY
351
352config PCI_GOBIOS
353 bool "BIOS"
354 ---help---
355 On PCI systems, the BIOS can be used to detect the PCI devices and
356 determine their configuration. However, some old PCI motherboards
357 have BIOS bugs and may crash if this is done. Also, some embedded
358 PCI-based systems don't have any BIOS at all. Linux can also try to
359 detect the PCI hardware directly without using the BIOS.
360
361 With this option, you can specify how Linux should detect the PCI
362 devices. If you choose "BIOS", the BIOS will be used, if you choose
363 "Direct", the BIOS won't be used, and if you choose "Any", the
364 kernel will try the direct access method and falls back to the BIOS
365 if that doesn't work. If unsure, go with the default, which is
366 "Any".
367
368config PCI_GODIRECT
369 bool "Direct"
370
371config PCI_GOANY
372 bool "Any"
373
374endchoice
375
376config PCI_BIOS
377 bool
378 depends on PCI && (PCI_GOBIOS || PCI_GOANY)
379 default y
380
381config PCI_DIRECT
382 bool
383 depends on PCI && (PCI_GODIRECT || PCI_GOANY)
384 default y
385
386source "drivers/pci/Kconfig"
387
388config ISA
389 bool
390
391source "drivers/pcmcia/Kconfig"
392
393source "drivers/pci/hotplug/Kconfig"
394
395endmenu
396
397
398menu "Executable file formats"
399
400source "fs/Kconfig.binfmt"
401
402endmenu
403
404source "net/Kconfig"
405
406source "drivers/Kconfig"
407
408source "fs/Kconfig"
409
410source "arch/m32r/Kconfig.debug"
411
412source "security/Kconfig"
413
414source "crypto/Kconfig"
415
416source "lib/Kconfig"
1config M32R
2 bool
3 default y
4 select HAVE_IDE
5 select HAVE_OPROFILE
6 select INIT_ALL_POSSIBLE
7 select HAVE_KERNEL_GZIP
8 select HAVE_KERNEL_BZIP2
9 select HAVE_KERNEL_LZMA
10 select ARCH_WANT_IPC_PARSE_VERSION
11 select HAVE_DEBUG_BUGVERBOSE
12 select VIRT_TO_BUS
13 select GENERIC_IRQ_PROBE
14 select GENERIC_IRQ_SHOW
15 select GENERIC_ATOMIC64
16 select ARCH_HAS_DEVMEM_IS_ALLOWED
17 select ARCH_USES_GETTIMEOFFSET
18 select MODULES_USE_ELF_RELA
19 select HAVE_DEBUG_STACKOVERFLOW
20 select CPU_NO_EFFICIENT_FFS
21
22config SBUS
23 bool
24
25config GENERIC_ISA_DMA
26 bool
27 default y
28
29config ZONE_DMA
30 bool
31 default y
32
33config NO_IOPORT_MAP
34 def_bool y
35
36config NO_DMA
37 def_bool n
38
39config HZ
40 int
41 default 100
42
43source "init/Kconfig"
44
45source "kernel/Kconfig.freezer"
46
47
48menu "Processor type and features"
49
50choice
51 prompt "Platform Type"
52 default PLAT_MAPPI
53
54config PLAT_MAPPI
55 bool "Mappi-I"
56 help
57 The Mappi-I is an FPGA board for SOC (System-On-a-Chip) prototyping.
58 You can operate a Linux system on this board by using an M32R
59 softmacro core, which is a fully-synthesizable functional model
60 described in Verilog-HDL.
61
62 The Mappi-I board was the first platform, which had been used
63 to port and develop a Linux system for the M32R processor.
64 Currently, the Mappi-II, an heir to the Mappi-I, is available.
65
66config PLAT_USRV
67 bool "uServer"
68 select PLAT_HAS_INT1ICU
69
70config PLAT_M32700UT
71 bool "M32700UT"
72 select PLAT_HAS_INT0ICU
73 select PLAT_HAS_INT1ICU
74 select PLAT_HAS_INT2ICU
75 help
76 The M3T-M32700UT is an evaluation board based on uT-Engine
77 specification. This board has an M32700 (Chaos) evaluation chip.
78 You can say Y for SMP, because the M32700 is a single chip
79 multiprocessor.
80
81config PLAT_OPSPUT
82 bool "OPSPUT"
83 select PLAT_HAS_INT0ICU
84 select PLAT_HAS_INT1ICU
85 select PLAT_HAS_INT2ICU
86 help
87 The OPSPUT is an evaluation board based on uT-Engine
88 specification. This board has a OPSP-REP chip.
89
90config PLAT_OAKS32R
91 bool "OAKS32R"
92 help
93 The OAKS32R is a tiny, inexpensive evaluation board.
94 Please note that if you say Y here and choose chip "M32102",
95 say N for MMU and select a no-MMU version kernel, otherwise
96 a kernel with MMU support will not work, because the M32102
97 is a microcontroller for embedded systems and it has no MMU.
98
99config PLAT_MAPPI2
100 bool "Mappi-II(M3A-ZA36/M3A-ZA52)"
101
102config PLAT_MAPPI3
103 bool "Mappi-III(M3A-2170)"
104
105config PLAT_M32104UT
106 bool "M32104UT"
107 select PLAT_HAS_INT1ICU
108 help
109 The M3T-M32104UT is an reference board based on uT-Engine
110 specification. This board has a M32104 chip.
111
112endchoice
113
114choice
115 prompt "Processor family"
116 default CHIP_M32700
117
118config CHIP_M32700
119 bool "M32700 (Chaos)"
120
121config CHIP_M32102
122 bool "M32102"
123
124config CHIP_M32104
125 bool "M32104"
126 depends on PLAT_M32104UT
127
128config CHIP_VDEC2
129 bool "VDEC2"
130
131config CHIP_OPSP
132 bool "OPSP"
133
134endchoice
135
136config MMU
137 bool "Support for memory management hardware"
138 depends on CHIP_M32700 || CHIP_VDEC2 || CHIP_OPSP
139 default y
140
141config TLB_ENTRIES
142 int "TLB Entries"
143 depends on CHIP_M32700 || CHIP_VDEC2 || CHIP_OPSP
144 default 32 if CHIP_M32700 || CHIP_OPSP
145 default 16 if CHIP_VDEC2
146
147
148config ISA_M32R
149 bool
150 depends on CHIP_M32102 || CHIP_M32104
151 default y
152
153config ISA_M32R2
154 bool
155 depends on CHIP_M32700 || CHIP_VDEC2 || CHIP_OPSP
156 default y
157
158config ISA_DSP_LEVEL2
159 bool
160 depends on CHIP_M32700 || CHIP_OPSP
161 default y
162
163config ISA_DUAL_ISSUE
164 bool
165 depends on CHIP_M32700 || CHIP_OPSP
166 default y
167
168config PLAT_HAS_INT0ICU
169 bool
170 default n
171
172config PLAT_HAS_INT1ICU
173 bool
174 default n
175
176config PLAT_HAS_INT2ICU
177 bool
178 default n
179
180config BUS_CLOCK
181 int "Bus Clock [Hz] (integer)"
182 default "70000000" if PLAT_MAPPI
183 default "25000000" if PLAT_USRV
184 default "50000000" if PLAT_MAPPI3
185 default "50000000" if PLAT_M32700UT
186 default "50000000" if PLAT_OPSPUT
187 default "54000000" if PLAT_M32104UT
188 default "33333333" if PLAT_OAKS32R
189 default "20000000" if PLAT_MAPPI2
190
191config TIMER_DIVIDE
192 int "Timer divider (integer)"
193 default "128"
194
195config CPU_LITTLE_ENDIAN
196 bool "Generate little endian code"
197 default n
198
199config MEMORY_START
200 hex "Physical memory start address (hex)"
201 default "08000000" if PLAT_MAPPI || PLAT_MAPPI2 || PLAT_MAPPI3
202 default "08000000" if PLAT_USRV
203 default "08000000" if PLAT_M32700UT
204 default "08000000" if PLAT_OPSPUT
205 default "04000000" if PLAT_M32104UT
206 default "01000000" if PLAT_OAKS32R
207
208config MEMORY_SIZE
209 hex "Physical memory size (hex)"
210 default "08000000" if PLAT_MAPPI3
211 default "04000000" if PLAT_MAPPI || PLAT_MAPPI2
212 default "02000000" if PLAT_USRV
213 default "01000000" if PLAT_M32700UT
214 default "01000000" if PLAT_OPSPUT
215 default "01000000" if PLAT_M32104UT
216 default "00800000" if PLAT_OAKS32R
217
218config ARCH_DISCONTIGMEM_ENABLE
219 bool "Internal RAM Support"
220 depends on CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104
221 default y
222
223source "mm/Kconfig"
224
225config IRAM_START
226 hex "Internal memory start address (hex)"
227 default "00f00000" if !CHIP_M32104
228 default "00700000" if CHIP_M32104
229 depends on (CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104) && DISCONTIGMEM
230
231config IRAM_SIZE
232 hex "Internal memory size (hex)"
233 depends on (CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104) && DISCONTIGMEM
234 default "00080000" if CHIP_M32700
235 default "00010000" if CHIP_M32102 || CHIP_OPSP || CHIP_M32104
236 default "00008000" if CHIP_VDEC2
237
238#
239# Define implied options from the CPU selection here
240#
241
242config GENERIC_LOCKBREAK
243 bool
244 default y
245 depends on SMP && PREEMPT
246
247config RWSEM_GENERIC_SPINLOCK
248 bool
249 depends on M32R
250 default y
251
252config RWSEM_XCHGADD_ALGORITHM
253 bool
254 default n
255
256config ARCH_HAS_ILOG2_U32
257 bool
258 default n
259
260config ARCH_HAS_ILOG2_U64
261 bool
262 default n
263
264config GENERIC_HWEIGHT
265 bool
266 default y
267
268config GENERIC_CALIBRATE_DELAY
269 bool
270 default y
271
272config SCHED_OMIT_FRAME_POINTER
273 bool
274 default y
275
276source "kernel/Kconfig.preempt"
277
278config SMP
279 bool "Symmetric multi-processing support"
280 depends on MMU
281 ---help---
282 This enables support for systems with more than one CPU. If you have
283 a system with only one CPU, say N. If you have a system with more
284 than one CPU, say Y.
285
286 If you say N here, the kernel will run on uni- and multiprocessor
287 machines, but will use only one CPU of a multiprocessor machine. If
288 you say Y here, the kernel will run on many, but not all,
289 uniprocessor machines. On a uniprocessor machine, the kernel
290 will run faster if you say N here.
291
292 People using multiprocessor machines who say Y here should also say
293 Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
294 Management" code will be disabled if you say Y here.
295
296 See also the SMP-HOWTO available at
297 <http://tldp.org/HOWTO/SMP-HOWTO.html>.
298
299 If you don't know what to do here, say N.
300
301config CHIP_M32700_TS1
302 bool "Workaround code for the M32700 TS1 chip's bug"
303 depends on (CHIP_M32700 && SMP)
304 default n
305
306config NR_CPUS
307 int "Maximum number of CPUs (2-32)"
308 range 2 32
309 depends on SMP
310 default "2"
311 help
312 This allows you to specify the maximum number of CPUs which this
313 kernel will support. The maximum supported value is 32 and the
314 minimum value which makes sense is 2.
315
316 This is purely to save memory - each supported CPU adds
317 approximately eight kilobytes to the kernel image.
318
319# Common NUMA Features
320config NUMA
321 bool "Numa Memory Allocation Support"
322 depends on SMP && BROKEN
323 default n
324
325config NODES_SHIFT
326 int
327 default "1"
328 depends on NEED_MULTIPLE_NODES
329
330endmenu
331
332
333menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)"
334
335config PCI
336 bool "PCI support"
337 depends on BROKEN
338 default n
339 help
340 Find out whether you have a PCI motherboard. PCI is the name of a
341 bus system, i.e. the way the CPU talks to the other stuff inside
342 your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
343 VESA. If you have PCI, say Y, otherwise N.
344
345choice
346 prompt "PCI access mode"
347 depends on PCI
348 default PCI_GOANY
349
350config PCI_GOBIOS
351 bool "BIOS"
352 ---help---
353 On PCI systems, the BIOS can be used to detect the PCI devices and
354 determine their configuration. However, some old PCI motherboards
355 have BIOS bugs and may crash if this is done. Also, some embedded
356 PCI-based systems don't have any BIOS at all. Linux can also try to
357 detect the PCI hardware directly without using the BIOS.
358
359 With this option, you can specify how Linux should detect the PCI
360 devices. If you choose "BIOS", the BIOS will be used, if you choose
361 "Direct", the BIOS won't be used, and if you choose "Any", the
362 kernel will try the direct access method and falls back to the BIOS
363 if that doesn't work. If unsure, go with the default, which is
364 "Any".
365
366config PCI_GODIRECT
367 bool "Direct"
368
369config PCI_GOANY
370 bool "Any"
371
372endchoice
373
374config PCI_BIOS
375 bool
376 depends on PCI && (PCI_GOBIOS || PCI_GOANY)
377 default y
378
379config PCI_DIRECT
380 bool
381 depends on PCI && (PCI_GODIRECT || PCI_GOANY)
382 default y
383
384source "drivers/pci/Kconfig"
385
386config ISA
387 bool
388
389source "drivers/pcmcia/Kconfig"
390
391endmenu
392
393
394menu "Executable file formats"
395
396source "fs/Kconfig.binfmt"
397
398endmenu
399
400source "net/Kconfig"
401
402source "drivers/Kconfig"
403
404source "fs/Kconfig"
405
406source "arch/m32r/Kconfig.debug"
407
408source "security/Kconfig"
409
410source "crypto/Kconfig"
411
412source "lib/Kconfig"