blob: eab0c2aa95cdb3cd5f8f9b2bbd37835589d3c6f7 [file] [log] [blame]
David Howellsb920de12008-02-08 04:19:31 -08001#
2# For a description of the syntax of this configuration file,
3# see Documentation/kbuild/kconfig-language.txt.
4#
5
6mainmenu "Linux Kernel Configuration"
7
8config MN10300
9 def_bool y
David Howells58bafe72009-02-20 15:38:38 -080010 select HAVE_OPROFILE
David Howellsb920de12008-02-08 04:19:31 -080011
Akira Takeuchi22d42252010-10-27 17:28:38 +010012config AM33_2
13 def_bool n
14
15config AM33_3
16 def_bool n
17
18config AM34_2
19 def_bool n
Akira Takeuchi8fbbf7c2010-10-27 17:28:40 +010020 select MN10300_HAS_ATOMIC_OPS_UNIT
David Howellsb920de12008-02-08 04:19:31 -080021
22config MMU
23 def_bool y
24
25config HIGHMEM
26 def_bool n
27
28config NUMA
29 def_bool n
30
31config UID16
32 def_bool y
33
34config RWSEM_GENERIC_SPINLOCK
35 def_bool y
36
37config RWSEM_XCHGADD_ALGORITHM
38 bool
39
40config GENERIC_HARDIRQS_NO__DO_IRQ
41 def_bool y
42
43config GENERIC_CALIBRATE_DELAY
44 def_bool y
45
John Stultzf7a56572010-03-03 19:57:17 -080046config GENERIC_CMOS_UPDATE
47 def_bool y
48
David Howellsb920de12008-02-08 04:19:31 -080049config GENERIC_FIND_NEXT_BIT
50 def_bool y
51
52config GENERIC_HWEIGHT
53 def_bool y
54
David Howellsb920de12008-02-08 04:19:31 -080055config GENERIC_BUG
56 def_bool y
57
58config QUICKLIST
59 def_bool y
60
61config ARCH_HAS_ILOG2_U32
62 def_bool y
63
David Howellsb920de12008-02-08 04:19:31 -080064# Use the generic interrupt handling code in kernel/irq/
65config GENERIC_HARDIRQS
66 def_bool y
67
68config HOTPLUG_CPU
69 def_bool n
70
David Howells860f7be2008-02-23 15:23:28 -080071config HZ
72 int
73 default 1000
74
David Howellsb920de12008-02-08 04:19:31 -080075mainmenu "Matsushita MN10300/AM33 Kernel Configuration"
76
77source "init/Kconfig"
78
Matt Helsleydc52ddc2008-10-18 20:27:21 -070079source "kernel/Kconfig.freezer"
80
David Howellsb920de12008-02-08 04:19:31 -080081
82menu "Matsushita MN10300 system setup"
83
84choice
85 prompt "Unit type"
86 default MN10300_UNIT_ASB2303
87 help
88 This option specifies board for which the kernel will be
89 compiled. It affects the external peripherals catered for.
90
91config MN10300_UNIT_ASB2303
92 bool "ASB2303"
93
94config MN10300_UNIT_ASB2305
95 bool "ASB2305"
96
97endchoice
98
99choice
100 prompt "Processor support"
101 default MN10300_PROC_MN103E010
102 help
103 This option specifies the processor for which the kernel will be
104 compiled. It affects the on-chip peripherals catered for.
105
106config MN10300_PROC_MN103E010
107 bool "MN103E010"
108 depends on MN10300_UNIT_ASB2303 || MN10300_UNIT_ASB2305
Akira Takeuchi22d42252010-10-27 17:28:38 +0100109 select AM33_2
David Howellsb920de12008-02-08 04:19:31 -0800110 select MN10300_PROC_HAS_TTYSM0
111 select MN10300_PROC_HAS_TTYSM1
112 select MN10300_PROC_HAS_TTYSM2
113
114endchoice
115
116choice
117 prompt "Processor core support"
118 default MN10300_CPU_AM33V2
119 help
120 This option specifies the processor core for which the kernel will be
121 compiled. It affects the instruction set used.
122
123config MN10300_CPU_AM33V2
124 bool "AM33v2"
125
126endchoice
127
Akira Takeuchi8fbbf7c2010-10-27 17:28:40 +0100128config MN10300_HAS_ATOMIC_OPS_UNIT
129 def_bool n
130 help
131 This should be enabled if the processor has an atomic ops unit
132 capable of doing LL/SC equivalent operations.
133
David Howellsb920de12008-02-08 04:19:31 -0800134config FPU
135 bool "FPU present"
136 default y
137 depends on MN10300_PROC_MN103E010
138
139choice
140 prompt "CPU Caching mode"
141 default MN10300_CACHE_WBACK
142 help
143 This option determines the caching mode for the kernel.
144
145 Write-Back caching mode involves the all reads and writes causing
146 the affected cacheline to be read into the cache first before being
147 operated upon. Memory is not then updated by a write until the cache
148 is filled and a cacheline needs to be displaced from the cache to
149 make room. Only at that point is it written back.
150
151 Write-Through caching only fetches cachelines from memory on a
152 read. Writes always get written directly to memory. If the affected
153 cacheline is also in cache, it will be updated too.
154
155 The final option is to turn of caching entirely.
156
157config MN10300_CACHE_WBACK
158 bool "Write-Back"
159
160config MN10300_CACHE_WTHRU
161 bool "Write-Through"
162
163config MN10300_CACHE_DISABLED
164 bool "Disabled"
165
166endchoice
167
168menu "Memory layout options"
169
170config KERNEL_RAM_BASE_ADDRESS
171 hex "Base address of kernel RAM"
172 default "0x90000000"
173
174config INTERRUPT_VECTOR_BASE
175 hex "Base address of vector table"
176 default "0x90000000"
177 help
178 The base address of the vector table will be programmed into
179 the TBR register. It must be on 16MiB address boundary.
180
181config KERNEL_TEXT_ADDRESS
182 hex "Base address of kernel"
183 default "0x90001000"
184
185config KERNEL_ZIMAGE_BASE_ADDRESS
186 hex "Base address of compressed vmlinux image"
187 default "0x90700000"
188
189endmenu
190
191config PREEMPT
192 bool "Preemptible Kernel"
193 help
194 This option reduces the latency of the kernel when reacting to
195 real-time or interactive events by allowing a low priority process to
196 be preempted even if it is in kernel mode executing a system call.
197 This allows applications to run more reliably even when the system is
198 under load.
199
200 Say Y here if you are building a kernel for a desktop, embedded
201 or real-time system. Say N if you are unsure.
202
David Howellsb920de12008-02-08 04:19:31 -0800203config MN10300_CURRENT_IN_E2
204 bool "Hold current task address in E2 register"
205 default y
206 help
207 This option removes the E2/R2 register from the set available to gcc
208 for normal use and instead uses it to store the address of the
209 current process's task_struct whilst in the kernel.
210
211 This means the kernel doesn't need to calculate the address each time
212 "current" is used (take SP, AND with mask and dereference pointer
213 just to get the address), and instead can just use E2+offset
214 addressing each time.
215
216 This has no effect on userspace.
217
218config MN10300_USING_JTAG
219 bool "Using JTAG to debug kernel"
220 default y
221 help
222 This options indicates that JTAG will be used to debug the kernel. It
223 suppresses the use of certain hardware debugging features, such as
224 single-stepping, which are taken over completely by the JTAG unit.
225
226config MN10300_RTC
227 bool "Using MN10300 RTC"
228 depends on MN10300_PROC_MN103E010
229 default n
230 help
231
232 This option enables support for the RTC, thus enabling time to be
233 tracked, even when system is powered down. This is available on-chip
234 on the MN103E010.
235
236config MN10300_WD_TIMER
237 bool "Using MN10300 watchdog timer"
238 default y
239 help
240 This options indicates that the watchdog timer will be used.
241
242config PCI
243 bool "Use PCI"
244 depends on MN10300_UNIT_ASB2305
245 default y
246 help
247 Some systems (such as the ASB2305) have PCI onboard. If you have one
248 of these boards and you wish to use the PCI facilities, say Y here.
249
250 The PCI-HOWTO, available from
251 <http://www.tldp.org/docs.html#howto>, contains valuable
252 information about which PCI hardware does work under Linux and which
253 doesn't.
254
255source "drivers/pci/Kconfig"
256
257source "drivers/pcmcia/Kconfig"
258
259menu "MN10300 internal serial options"
260
261config MN10300_PROC_HAS_TTYSM0
262 bool
263 default n
264
265config MN10300_PROC_HAS_TTYSM1
266 bool
267 default n
268
269config MN10300_PROC_HAS_TTYSM2
270 bool
271 default n
272
273config MN10300_TTYSM
274 bool "Support for ttySM serial ports"
275 depends on MN10300
276 default y
277 select SERIAL_CORE
278 help
279 This option enables support for the on-chip serial ports that the
280 MN10300 has available.
281
282config MN10300_TTYSM_CONSOLE
283 bool "Support for console on ttySM serial ports"
284 depends on MN10300_TTYSM
285 select SERIAL_CORE_CONSOLE
286 help
287 This option enables support for a console on the on-chip serial ports
288 that the MN10300 has available.
289
290#
291# /dev/ttySM0
292#
293config MN10300_TTYSM0
294 bool "Enable SIF0 (/dev/ttySM0)"
295 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM0
296 help
297 Enable access to SIF0 through /dev/ttySM0 or gdb-stub
298
299choice
300 prompt "Select the timer to supply the clock for SIF0"
301 default MN10300_TTYSM0_TIMER8
302 depends on MN10300_TTYSM0
303
304config MN10300_TTYSM0_TIMER8
305 bool "Use timer 8 (16-bit)"
306
307config MN10300_TTYSM0_TIMER2
308 bool "Use timer 2 (8-bit)"
309
310endchoice
311
312#
313# /dev/ttySM1
314#
315config MN10300_TTYSM1
316 bool "Enable SIF1 (/dev/ttySM1)"
317 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM1
318 help
319 Enable access to SIF1 through /dev/ttySM1 or gdb-stub
320
321choice
322 prompt "Select the timer to supply the clock for SIF1"
323 default MN10300_TTYSM0_TIMER9
324 depends on MN10300_TTYSM1
325
326config MN10300_TTYSM1_TIMER9
327 bool "Use timer 9 (16-bit)"
328
329config MN10300_TTYSM1_TIMER3
330 bool "Use timer 3 (8-bit)"
331
332endchoice
333
334#
335# /dev/ttySM2
336#
337config MN10300_TTYSM2
338 bool "Enable SIF2 (/dev/ttySM2)"
339 depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM2
340 help
341 Enable access to SIF2 through /dev/ttySM2 or gdb-stub
342
343choice
344 prompt "Select the timer to supply the clock for SIF2"
345 default MN10300_TTYSM0_TIMER10
346 depends on MN10300_TTYSM2
347
348config MN10300_TTYSM2_TIMER10
349 bool "Use timer 10 (16-bit)"
350
351endchoice
352
353config MN10300_TTYSM2_CTS
354 bool "Enable the use of the CTS line /dev/ttySM2"
355 depends on MN10300_TTYSM2
356
357endmenu
358
359source "mm/Kconfig"
360
361menu "Power management options"
362source kernel/power/Kconfig
363endmenu
364
365endmenu
366
367
368menu "Executable formats"
369
370source "fs/Kconfig.binfmt"
371
372endmenu
373
374source "net/Kconfig"
375
376source "drivers/Kconfig"
377
378source "fs/Kconfig"
379
380source "arch/mn10300/Kconfig.debug"
381
382source "security/Kconfig"
383
384source "crypto/Kconfig"
385
386source "lib/Kconfig"