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