blob: 95474460b367208a0dc327b1bf120af0eca2816c [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001config M32R
2 bool
3 default y
Sam Ravnborgec7748b2008-02-09 10:46:40 +01004 select HAVE_IDE
Mathieu Desnoyers42d4b832008-02-02 15:10:34 -05005 select HAVE_OPROFILE
Rusty Russell98a79d62008-12-13 21:19:41 +10306 select INIT_ALL_POSSIBLE
Hirokazu Takata337214e2009-10-15 09:21:56 +09007 select HAVE_KERNEL_GZIP
8 select HAVE_KERNEL_BZIP2
9 select HAVE_KERNEL_LZMA
Will Deaconc1d7e012012-07-30 14:42:46 -070010 select ARCH_WANT_IPC_PARSE_VERSION
Catalin Marinas9b2a60c2012-10-08 16:28:13 -070011 select HAVE_DEBUG_BUGVERBOSE
Stephen Rothwell4febd952013-03-07 15:48:16 +110012 select VIRT_TO_BUS
Thomas Gleixner0e155b22011-01-19 19:17:10 +010013 select GENERIC_IRQ_PROBE
Thomas Gleixner4bdab7e2011-03-24 19:24:55 +010014 select GENERIC_IRQ_SHOW
Steven Rostedtabcefec2011-10-13 10:40:16 -040015 select GENERIC_ATOMIC64
Dan Williams21266be2015-11-19 18:19:29 -080016 select ARCH_HAS_DEVMEM_IS_ALLOWED
Anna-Maria Gleixner97a1c1e2012-05-18 16:45:48 +000017 select ARCH_USES_GETTIMEOFFSET
David Howells786d35d2012-09-28 14:31:03 +093018 select MODULES_USE_ELF_RELA
Dave Hansend1a1dc02013-07-01 13:04:42 -070019 select HAVE_DEBUG_STACKOVERFLOW
Zhaoxiu Zengfff7fb02016-05-20 17:03:57 -070020 select CPU_NO_EFFICIENT_FFS
Bart Van Assche78445722017-01-20 13:04:06 -080021 select DMA_NOOP_OPS
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
23config SBUS
24 bool
25
Linus Torvalds1da177e2005-04-16 15:20:36 -070026config GENERIC_ISA_DMA
27 bool
28 default y
29
Christoph Lameter5ac6da62007-02-10 01:43:14 -080030config ZONE_DMA
31 bool
32 default y
33
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070034config NO_IOPORT_MAP
Al Viro5ea81762007-02-11 15:41:31 +000035 def_bool y
36
Dan Williams1b0fac42007-07-15 23:40:26 -070037config NO_DMA
Sudip Mukherjeeeb177262016-12-12 16:40:54 -080038 def_bool n
Dan Williams1b0fac42007-07-15 23:40:26 -070039
H. Peter Anvinbdc80782008-02-08 04:21:26 -080040config HZ
41 int
42 default 100
43
Linus Torvalds1da177e2005-04-16 15:20:36 -070044source "init/Kconfig"
45
Matt Helsleydc52ddc2008-10-18 20:27:21 -070046source "kernel/Kconfig.freezer"
47
Linus Torvalds1da177e2005-04-16 15:20:36 -070048
49menu "Processor type and features"
50
51choice
52 prompt "Platform Type"
53 default PLAT_MAPPI
54
55config PLAT_MAPPI
56 bool "Mappi-I"
57 help
58 The Mappi-I is an FPGA board for SOC (System-On-a-Chip) prototyping.
59 You can operate a Linux system on this board by using an M32R
60 softmacro core, which is a fully-synthesizable functional model
61 described in Verilog-HDL.
62
63 The Mappi-I board was the first platform, which had been used
64 to port and develop a Linux system for the M32R processor.
65 Currently, the Mappi-II, an heir to the Mappi-I, is available.
66
67config PLAT_USRV
68 bool "uServer"
Hirokazu Takatae070fb742007-08-17 17:22:15 +090069 select PLAT_HAS_INT1ICU
Linus Torvalds1da177e2005-04-16 15:20:36 -070070
71config PLAT_M32700UT
72 bool "M32700UT"
Hirokazu Takatae070fb742007-08-17 17:22:15 +090073 select PLAT_HAS_INT0ICU
74 select PLAT_HAS_INT1ICU
75 select PLAT_HAS_INT2ICU
Linus Torvalds1da177e2005-04-16 15:20:36 -070076 help
77 The M3T-M32700UT is an evaluation board based on uT-Engine
78 specification. This board has an M32700 (Chaos) evaluation chip.
79 You can say Y for SMP, because the M32700 is a single chip
80 multiprocessor.
81
82config PLAT_OPSPUT
83 bool "OPSPUT"
Hirokazu Takatae070fb742007-08-17 17:22:15 +090084 select PLAT_HAS_INT0ICU
85 select PLAT_HAS_INT1ICU
86 select PLAT_HAS_INT2ICU
Linus Torvalds1da177e2005-04-16 15:20:36 -070087 help
88 The OPSPUT is an evaluation board based on uT-Engine
89 specification. This board has a OPSP-REP chip.
90
91config PLAT_OAKS32R
92 bool "OAKS32R"
93 help
94 The OAKS32R is a tiny, inexpensive evaluation board.
95 Please note that if you say Y here and choose chip "M32102",
96 say N for MMU and select a no-MMU version kernel, otherwise
97 a kernel with MMU support will not work, because the M32102
98 is a microcontroller for embedded systems and it has no MMU.
99
100config PLAT_MAPPI2
101 bool "Mappi-II(M3A-ZA36/M3A-ZA52)"
102
Hirokazu Takata23680862005-06-21 17:16:10 -0700103config PLAT_MAPPI3
104 bool "Mappi-III(M3A-2170)"
105
Hirokazu Takata9287d952006-01-06 00:18:41 -0800106config PLAT_M32104UT
107 bool "M32104UT"
Hirokazu Takatae070fb742007-08-17 17:22:15 +0900108 select PLAT_HAS_INT1ICU
Hirokazu Takata9287d952006-01-06 00:18:41 -0800109 help
110 The M3T-M32104UT is an reference board based on uT-Engine
111 specification. This board has a M32104 chip.
112
Linus Torvalds1da177e2005-04-16 15:20:36 -0700113endchoice
114
115choice
116 prompt "Processor family"
117 default CHIP_M32700
118
119config CHIP_M32700
120 bool "M32700 (Chaos)"
121
122config CHIP_M32102
123 bool "M32102"
124
Hirokazu Takata9287d952006-01-06 00:18:41 -0800125config CHIP_M32104
126 bool "M32104"
127 depends on PLAT_M32104UT
128
Linus Torvalds1da177e2005-04-16 15:20:36 -0700129config CHIP_VDEC2
130 bool "VDEC2"
131
132config CHIP_OPSP
133 bool "OPSP"
134
135endchoice
136
137config MMU
138 bool "Support for memory management hardware"
139 depends on CHIP_M32700 || CHIP_VDEC2 || CHIP_OPSP
140 default y
141
142config TLB_ENTRIES
143 int "TLB Entries"
144 depends on CHIP_M32700 || CHIP_VDEC2 || CHIP_OPSP
145 default 32 if CHIP_M32700 || CHIP_OPSP
146 default 16 if CHIP_VDEC2
147
148
149config ISA_M32R
150 bool
Hirokazu Takata9287d952006-01-06 00:18:41 -0800151 depends on CHIP_M32102 || CHIP_M32104
Linus Torvalds1da177e2005-04-16 15:20:36 -0700152 default y
153
154config ISA_M32R2
155 bool
156 depends on CHIP_M32700 || CHIP_VDEC2 || CHIP_OPSP
157 default y
158
159config ISA_DSP_LEVEL2
160 bool
161 depends on CHIP_M32700 || CHIP_OPSP
162 default y
163
164config ISA_DUAL_ISSUE
165 bool
166 depends on CHIP_M32700 || CHIP_OPSP
167 default y
168
Hirokazu Takatae070fb742007-08-17 17:22:15 +0900169config PLAT_HAS_INT0ICU
170 bool
171 default n
172
173config PLAT_HAS_INT1ICU
174 bool
175 default n
176
177config PLAT_HAS_INT2ICU
178 bool
179 default n
180
Linus Torvalds1da177e2005-04-16 15:20:36 -0700181config BUS_CLOCK
182 int "Bus Clock [Hz] (integer)"
183 default "70000000" if PLAT_MAPPI
184 default "25000000" if PLAT_USRV
Hirokazu Takata23680862005-06-21 17:16:10 -0700185 default "50000000" if PLAT_MAPPI3
Linus Torvalds1da177e2005-04-16 15:20:36 -0700186 default "50000000" if PLAT_M32700UT
187 default "50000000" if PLAT_OPSPUT
Hirokazu Takata9287d952006-01-06 00:18:41 -0800188 default "54000000" if PLAT_M32104UT
Linus Torvalds1da177e2005-04-16 15:20:36 -0700189 default "33333333" if PLAT_OAKS32R
190 default "20000000" if PLAT_MAPPI2
191
192config TIMER_DIVIDE
193 int "Timer divider (integer)"
194 default "128"
195
196config CPU_LITTLE_ENDIAN
197 bool "Generate little endian code"
198 default n
199
200config MEMORY_START
201 hex "Physical memory start address (hex)"
Hirokazu Takata23680862005-06-21 17:16:10 -0700202 default "08000000" if PLAT_MAPPI || PLAT_MAPPI2 || PLAT_MAPPI3
Linus Torvalds1da177e2005-04-16 15:20:36 -0700203 default "08000000" if PLAT_USRV
204 default "08000000" if PLAT_M32700UT
205 default "08000000" if PLAT_OPSPUT
Hirokazu Takata9287d952006-01-06 00:18:41 -0800206 default "04000000" if PLAT_M32104UT
Linus Torvalds1da177e2005-04-16 15:20:36 -0700207 default "01000000" if PLAT_OAKS32R
208
209config MEMORY_SIZE
210 hex "Physical memory size (hex)"
Hirokazu Takata23680862005-06-21 17:16:10 -0700211 default "08000000" if PLAT_MAPPI3
Linus Torvalds1da177e2005-04-16 15:20:36 -0700212 default "04000000" if PLAT_MAPPI || PLAT_MAPPI2
213 default "02000000" if PLAT_USRV
214 default "01000000" if PLAT_M32700UT
215 default "01000000" if PLAT_OPSPUT
Hirokazu Takata9287d952006-01-06 00:18:41 -0800216 default "01000000" if PLAT_M32104UT
Linus Torvalds1da177e2005-04-16 15:20:36 -0700217 default "00800000" if PLAT_OAKS32R
218
Dave Hansen3f22ab22005-06-23 00:07:43 -0700219config ARCH_DISCONTIGMEM_ENABLE
Linus Torvalds1da177e2005-04-16 15:20:36 -0700220 bool "Internal RAM Support"
Hirokazu Takata9287d952006-01-06 00:18:41 -0800221 depends on CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104
Linus Torvalds1da177e2005-04-16 15:20:36 -0700222 default y
223
Dave Hansen3f22ab22005-06-23 00:07:43 -0700224source "mm/Kconfig"
225
Linus Torvalds1da177e2005-04-16 15:20:36 -0700226config IRAM_START
227 hex "Internal memory start address (hex)"
Hirokazu Takata9287d952006-01-06 00:18:41 -0800228 default "00f00000" if !CHIP_M32104
229 default "00700000" if CHIP_M32104
230 depends on (CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104) && DISCONTIGMEM
Linus Torvalds1da177e2005-04-16 15:20:36 -0700231
232config IRAM_SIZE
233 hex "Internal memory size (hex)"
Hirokazu Takata9287d952006-01-06 00:18:41 -0800234 depends on (CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP || CHIP_M32104) && DISCONTIGMEM
Linus Torvalds1da177e2005-04-16 15:20:36 -0700235 default "00080000" if CHIP_M32700
Hirokazu Takata9287d952006-01-06 00:18:41 -0800236 default "00010000" if CHIP_M32102 || CHIP_OPSP || CHIP_M32104
Linus Torvalds1da177e2005-04-16 15:20:36 -0700237 default "00008000" if CHIP_VDEC2
238
239#
240# Define implied options from the CPU selection here
241#
242
Nick Piggin95c354f2008-01-30 13:31:20 +0100243config GENERIC_LOCKBREAK
244 bool
245 default y
246 depends on SMP && PREEMPT
247
Linus Torvalds1da177e2005-04-16 15:20:36 -0700248config RWSEM_GENERIC_SPINLOCK
249 bool
250 depends on M32R
251 default y
252
253config RWSEM_XCHGADD_ALGORITHM
254 bool
255 default n
256
David Howellsf0d1b0b2006-12-08 02:37:49 -0800257config ARCH_HAS_ILOG2_U32
258 bool
259 default n
260
261config ARCH_HAS_ILOG2_U64
262 bool
263 default n
264
Akinobu Mita6d9f9372006-03-26 01:39:26 -0800265config GENERIC_HWEIGHT
266 bool
267 default y
268
Linus Torvalds1da177e2005-04-16 15:20:36 -0700269config GENERIC_CALIBRATE_DELAY
270 bool
271 default y
272
Ingo Molnarae1e9132008-11-11 09:05:16 +0100273config SCHED_OMIT_FRAME_POINTER
Hirokazu Takata43c09ce2007-05-10 22:22:25 -0700274 bool
275 default y
276
Frederic Weisbeckerdab16ae2011-07-05 16:29:40 +0200277source "kernel/Kconfig.preempt"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700278
Linus Torvalds1da177e2005-04-16 15:20:36 -0700279config SMP
280 bool "Symmetric multi-processing support"
Sudip Mukherjeeaf1ddcb2016-02-05 15:36:10 -0800281 depends on MMU
Linus Torvalds1da177e2005-04-16 15:20:36 -0700282 ---help---
283 This enables support for systems with more than one CPU. If you have
Robert Graffham4a474152014-01-23 15:55:29 -0800284 a system with only one CPU, say N. If you have a system with more
285 than one CPU, say Y.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700286
Robert Graffham4a474152014-01-23 15:55:29 -0800287 If you say N here, the kernel will run on uni- and multiprocessor
Linus Torvalds1da177e2005-04-16 15:20:36 -0700288 machines, but will use only one CPU of a multiprocessor machine. If
289 you say Y here, the kernel will run on many, but not all,
Robert Graffham4a474152014-01-23 15:55:29 -0800290 uniprocessor machines. On a uniprocessor machine, the kernel
Linus Torvalds1da177e2005-04-16 15:20:36 -0700291 will run faster if you say N here.
292
293 People using multiprocessor machines who say Y here should also say
294 Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
295 Management" code will be disabled if you say Y here.
296
Adrian Bunk03502fa2008-02-03 15:50:21 +0200297 See also the SMP-HOWTO available at
Justin P. Mattock50a23e62010-10-16 10:36:23 -0700298 <http://tldp.org/HOWTO/SMP-HOWTO.html>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700299
300 If you don't know what to do here, say N.
301
302config CHIP_M32700_TS1
303 bool "Workaround code for the M32700 TS1 chip's bug"
304 depends on (CHIP_M32700 && SMP)
305 default n
306
307config NR_CPUS
308 int "Maximum number of CPUs (2-32)"
309 range 2 32
310 depends on SMP
311 default "2"
312 help
313 This allows you to specify the maximum number of CPUs which this
314 kernel will support. The maximum supported value is 32 and the
315 minimum value which makes sense is 2.
316
317 This is purely to save memory - each supported CPU adds
318 approximately eight kilobytes to the kernel image.
319
320# Common NUMA Features
321config NUMA
322 bool "Numa Memory Allocation Support"
Al Viroc5596b22005-08-23 22:45:11 +0100323 depends on SMP && BROKEN
Linus Torvalds1da177e2005-04-16 15:20:36 -0700324 default n
325
Yasunori Gotoc80d79d2006-04-10 22:53:53 -0700326config NODES_SHIFT
327 int
328 default "1"
329 depends on NEED_MULTIPLE_NODES
330
Linus Torvalds1da177e2005-04-16 15:20:36 -0700331endmenu
332
333
334menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)"
335
336config PCI
337 bool "PCI support"
Al Viroc3a0f772005-08-23 22:45:31 +0100338 depends on BROKEN
Linus Torvalds1da177e2005-04-16 15:20:36 -0700339 default n
340 help
341 Find out whether you have a PCI motherboard. PCI is the name of a
342 bus system, i.e. the way the CPU talks to the other stuff inside
343 your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
344 VESA. If you have PCI, say Y, otherwise N.
345
Linus Torvalds1da177e2005-04-16 15:20:36 -0700346choice
347 prompt "PCI access mode"
348 depends on PCI
349 default PCI_GOANY
350
351config PCI_GOBIOS
352 bool "BIOS"
353 ---help---
354 On PCI systems, the BIOS can be used to detect the PCI devices and
355 determine their configuration. However, some old PCI motherboards
356 have BIOS bugs and may crash if this is done. Also, some embedded
357 PCI-based systems don't have any BIOS at all. Linux can also try to
358 detect the PCI hardware directly without using the BIOS.
359
360 With this option, you can specify how Linux should detect the PCI
361 devices. If you choose "BIOS", the BIOS will be used, if you choose
362 "Direct", the BIOS won't be used, and if you choose "Any", the
363 kernel will try the direct access method and falls back to the BIOS
364 if that doesn't work. If unsure, go with the default, which is
365 "Any".
366
367config PCI_GODIRECT
368 bool "Direct"
369
370config PCI_GOANY
371 bool "Any"
372
373endchoice
374
375config PCI_BIOS
376 bool
377 depends on PCI && (PCI_GOBIOS || PCI_GOANY)
378 default y
379
380config PCI_DIRECT
381 bool
382 depends on PCI && (PCI_GODIRECT || PCI_GOANY)
383 default y
384
385source "drivers/pci/Kconfig"
386
387config ISA
Adrian Bunk1b20b092008-09-24 14:58:54 +0900388 bool
Linus Torvalds1da177e2005-04-16 15:20:36 -0700389
390source "drivers/pcmcia/Kconfig"
391
Linus Torvalds1da177e2005-04-16 15:20:36 -0700392endmenu
393
394
395menu "Executable file formats"
396
397source "fs/Kconfig.binfmt"
398
399endmenu
400
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700401source "net/Kconfig"
402
Linus Torvalds1da177e2005-04-16 15:20:36 -0700403source "drivers/Kconfig"
404
405source "fs/Kconfig"
406
Linus Torvalds1da177e2005-04-16 15:20:36 -0700407source "arch/m32r/Kconfig.debug"
408
409source "security/Kconfig"
410
411source "crypto/Kconfig"
412
413source "lib/Kconfig"