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