Blame view

arch/mn10300/Kconfig 11.3 KB
b920de1b7   David Howells   mn10300: add the ...
1
2
  config MN10300
  	def_bool y
58bafe72a   David Howells   mn10300: fix opro...
3
  	select HAVE_OPROFILE
2a8f55b1f   Thomas Gleixner   mn10300: Use gene...
4
  	select GENERIC_IRQ_SHOW
c1d7e01d7   Will Deacon   ipc: use Kconfig ...
5
  	select ARCH_WANT_IPC_PARSE_VERSION
e460d6440   David Howells   MN10300: Use KGDB
6
7
  	select HAVE_ARCH_TRACEHOOK
  	select HAVE_ARCH_KGDB
fef6c12e8   Andrew Morton   arch/mn10300/Kcon...
8
  	select GENERIC_ATOMIC64
d314d74c6   Cong Wang   nmi watchdog: do ...
9
  	select HAVE_NMI_WATCHDOG if MN10300_WD_TIMER
4febd95a8   Stephen Rothwell   Select VIRT_TO_BU...
10
  	select VIRT_TO_BUS
ea5332098   Anna-Maria Gleixner   mn10300: Use gene...
11
  	select GENERIC_CLOCKEVENTS
786d35d45   David Howells   Make most arch as...
12
  	select MODULES_USE_ELF_RELA
7d1d990ff   Al Viro   mn10300: switch t...
13
  	select OLD_SIGSUSPEND3
33f9f78ee   Al Viro   mn10300: switch t...
14
  	select OLD_SIGACTION
d1a1dc0be   Dave Hansen   consolidate per-a...
15
  	select HAVE_DEBUG_STACKOVERFLOW
b920de1b7   David Howells   mn10300: add the ...
16

22d4225f6   Akira Takeuchi   MN10300: Differen...
17
18
19
20
21
22
23
24
  config AM33_2
  	def_bool n
  
  config AM33_3
  	def_bool n
  
  config AM34_2
  	def_bool n
8fbbf7c76   Akira Takeuchi   MN10300: Add CPU ...
25
  	select MN10300_HAS_ATOMIC_OPS_UNIT
b478491f2   David Howells   MN10300: Allow so...
26
  	select MN10300_HAS_CACHE_SNOOP
b920de1b7   David Howells   mn10300: add the ...
27

8f19e3daf   Akira Takeuchi   MN10300: AM34 err...
28
29
  config ERRATUM_NEED_TO_RELOAD_MMUCTR
  	def_bool y if AM33_3 || AM34_2
b920de1b7   David Howells   mn10300: add the ...
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
  config MMU
  	def_bool y
  
  config HIGHMEM
  	def_bool n
  
  config NUMA
  	def_bool n
  
  config UID16
  	def_bool y
  
  config RWSEM_GENERIC_SPINLOCK
  	def_bool y
  
  config RWSEM_XCHGADD_ALGORITHM
  	bool
b920de1b7   David Howells   mn10300: add the ...
47
48
  config GENERIC_CALIBRATE_DELAY
  	def_bool y
b920de1b7   David Howells   mn10300: add the ...
49
50
  config GENERIC_HWEIGHT
  	def_bool y
b920de1b7   David Howells   mn10300: add the ...
51
52
53
54
55
56
57
58
  config GENERIC_BUG
  	def_bool y
  
  config QUICKLIST
  	def_bool y
  
  config ARCH_HAS_ILOG2_U32
  	def_bool y
b920de1b7   David Howells   mn10300: add the ...
59
60
  config HOTPLUG_CPU
  	def_bool n
b920de1b7   David Howells   mn10300: add the ...
61
  source "init/Kconfig"
dc52ddc0e   Matt Helsley   container freezer...
62
  source "kernel/Kconfig.freezer"
b920de1b7   David Howells   mn10300: add the ...
63

a5e03ca2f   Akira Takeuchi   MN10300: Change "...
64
  menu "Panasonic MN10300 system setup"
b920de1b7   David Howells   mn10300: add the ...
65
66
67
68
69
70
71
72
73
74
75
76
77
  
  choice
  	prompt "Unit type"
  	default MN10300_UNIT_ASB2303
  	help
  	  This option specifies board for which the kernel will be
  	  compiled. It affects the external peripherals catered for.
  
  config MN10300_UNIT_ASB2303
  	bool "ASB2303"
  
  config MN10300_UNIT_ASB2305
  	bool "ASB2305"
368dd5acd   Akira Takeuchi   MN10300: And Pana...
78
79
  config MN10300_UNIT_ASB2364
  	bool "ASB2364"
62747cd27   Akira Takeuchi   MN10300: ASB2364:...
80
  	select SMSC911X_ARCH_HOOKS if SMSC911X
368dd5acd   Akira Takeuchi   MN10300: And Pana...
81

b920de1b7   David Howells   mn10300: add the ...
82
83
84
85
86
87
88
89
90
91
92
93
  endchoice
  
  choice
  	prompt "Processor support"
  	default MN10300_PROC_MN103E010
  	help
  	  This option specifies the processor for which the kernel will be
  	  compiled. It affects the on-chip peripherals catered for.
  
  config MN10300_PROC_MN103E010
  	bool "MN103E010"
  	depends on MN10300_UNIT_ASB2303 || MN10300_UNIT_ASB2305
22d4225f6   Akira Takeuchi   MN10300: Differen...
94
  	select AM33_2
b920de1b7   David Howells   mn10300: add the ...
95
96
97
  	select MN10300_PROC_HAS_TTYSM0
  	select MN10300_PROC_HAS_TTYSM1
  	select MN10300_PROC_HAS_TTYSM2
368dd5acd   Akira Takeuchi   MN10300: And Pana...
98
99
100
101
102
103
104
  config MN10300_PROC_MN2WS0050
  	bool "MN2WS0050"
  	depends on MN10300_UNIT_ASB2364
  	select AM34_2
  	select MN10300_PROC_HAS_TTYSM0
  	select MN10300_PROC_HAS_TTYSM1
  	select MN10300_PROC_HAS_TTYSM2
b920de1b7   David Howells   mn10300: add the ...
105
106
  
  endchoice
8fbbf7c76   Akira Takeuchi   MN10300: Add CPU ...
107
108
109
110
111
  config MN10300_HAS_ATOMIC_OPS_UNIT
  	def_bool n
  	help
  	  This should be enabled if the processor has an atomic ops unit
  	  capable of doing LL/SC equivalent operations.
b920de1b7   David Howells   mn10300: add the ...
112
113
114
  config FPU
  	bool "FPU present"
  	default y
368dd5acd   Akira Takeuchi   MN10300: And Pana...
115
  	depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
b920de1b7   David Howells   mn10300: add the ...
116

278d91c46   Akira Takeuchi   MN10300: Make the...
117
118
119
120
121
122
123
124
125
126
127
128
129
130
  config LAZY_SAVE_FPU
  	bool "Save FPU state lazily"
  	default y
  	depends on FPU && !SMP
  	help
  	  Enable this to be lazy in the saving of the FPU state to the owning
  	  task's thread struct.  This is useful if most tasks on the system
  	  don't use the FPU as only those tasks that use it will pass it
  	  between them, and the state needn't be saved for a task that isn't
  	  using it.
  
  	  This can't be so easily used on SMP as the process that owns the FPU
  	  state on a CPU may be currently running on another CPU, so for the
  	  moment, it is disabled.
0bc42d7fc   David Howells   MN10300: Cache: S...
131
  source "arch/mn10300/mm/Kconfig.cache"
b920de1b7   David Howells   mn10300: add the ...
132

a9bc60ebf   Akira Takeuchi   MN10300: Make the...
133
134
  config MN10300_TLB_USE_PIDR
  	def_bool y
b920de1b7   David Howells   mn10300: add the ...
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
  menu "Memory layout options"
  
  config KERNEL_RAM_BASE_ADDRESS
  	hex "Base address of kernel RAM"
  	default "0x90000000"
  
  config INTERRUPT_VECTOR_BASE
  	hex "Base address of vector table"
  	default "0x90000000"
  	help
  	  The base address of the vector table will be programmed into
            the TBR register. It must be on 16MiB address boundary.
  
  config KERNEL_TEXT_ADDRESS
  	hex "Base address of kernel"
  	default "0x90001000"
  
  config KERNEL_ZIMAGE_BASE_ADDRESS
  	hex "Base address of compressed vmlinux image"
368dd5acd   Akira Takeuchi   MN10300: And Pana...
154
155
156
157
158
159
  	default "0x50700000"
  
  config BOOT_STACK_OFFSET
  	hex
  	default	"0xF00"	if SMP
  	default	"0xFF0" if !SMP
b920de1b7   David Howells   mn10300: add the ...
160

368dd5acd   Akira Takeuchi   MN10300: And Pana...
161
162
163
164
  config BOOT_STACK_SIZE
  	hex
  	depends on SMP
  	default	"0x100"
b920de1b7   David Howells   mn10300: add the ...
165
  endmenu
368dd5acd   Akira Takeuchi   MN10300: And Pana...
166
167
168
  config SMP
  	bool "Symmetric multi-processing support"
  	default y
7bb38d57f   Richard Weinberger   Remove MN10300_PR...
169
  	depends on MN10300_PROC_MN2WS0050
368dd5acd   Akira Takeuchi   MN10300: And Pana...
170
171
  	---help---
  	  This enables support for systems with more than one CPU. If you have
4a4741577   Robert Graffham   Kconfig: update f...
172
173
  	  a system with only one CPU, say N. If you have a system with more
  	  than one CPU, say Y.
368dd5acd   Akira Takeuchi   MN10300: And Pana...
174

4a4741577   Robert Graffham   Kconfig: update f...
175
  	  If you say N here, the kernel will run on uni- and multiprocessor
368dd5acd   Akira Takeuchi   MN10300: And Pana...
176
177
  	  machines, but will use only one CPU of a multiprocessor machine. If
  	  you say Y here, the kernel will run on many, but not all,
4a4741577   Robert Graffham   Kconfig: update f...
178
  	  uniprocessor machines. On a uniprocessor machine, the kernel
368dd5acd   Akira Takeuchi   MN10300: And Pana...
179
  	  will run faster if you say N here.
395cf9691   Paul Bolle   doc: fix broken r...
180
  	  See also <file:Documentation/x86/i386/IO-APIC.txt>,
368dd5acd   Akira Takeuchi   MN10300: And Pana...
181
182
  	  <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
  	  <http://www.tldp.org/docs.html#howto>.
b920de1b7   David Howells   mn10300: add the ...
183

368dd5acd   Akira Takeuchi   MN10300: And Pana...
184
185
186
187
188
189
  	  If you don't know what to do here, say N.
  
  config NR_CPUS
  	int
  	depends on SMP
  	default "2"
368dd5acd   Akira Takeuchi   MN10300: And Pana...
190
  source "kernel/Kconfig.preempt"
b920de1b7   David Howells   mn10300: add the ...
191

b920de1b7   David Howells   mn10300: add the ...
192
193
  config MN10300_CURRENT_IN_E2
  	bool "Hold current task address in E2 register"
368dd5acd   Akira Takeuchi   MN10300: And Pana...
194
  	depends on !SMP
b920de1b7   David Howells   mn10300: add the ...
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
  	default y
  	help
  	  This option removes the E2/R2 register from the set available to gcc
  	  for normal use and instead uses it to store the address of the
  	  current process's task_struct whilst in the kernel.
  
  	  This means the kernel doesn't need to calculate the address each time
  	  "current" is used (take SP, AND with mask and dereference pointer
  	  just to get the address), and instead can just use E2+offset
  	  addressing each time.
  
  	  This has no effect on userspace.
  
  config MN10300_USING_JTAG
  	bool "Using JTAG to debug kernel"
  	default y
  	help
  	  This options indicates that JTAG will be used to debug the kernel. It
  	  suppresses the use of certain hardware debugging features, such as
  	  single-stepping, which are taken over completely by the JTAG unit.
368dd5acd   Akira Takeuchi   MN10300: And Pana...
215
  source "kernel/Kconfig.hz"
b920de1b7   David Howells   mn10300: add the ...
216
217
  config MN10300_RTC
  	bool "Using MN10300 RTC"
368dd5acd   Akira Takeuchi   MN10300: And Pana...
218
219
  	depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
  	select GENERIC_CMOS_UPDATE
b920de1b7   David Howells   mn10300: add the ...
220
221
  	default n
  	help
b920de1b7   David Howells   mn10300: add the ...
222
223
224
225
226
227
228
229
230
231
232
233
234
235
  	  This option enables support for the RTC, thus enabling time to be
  	  tracked, even when system is powered down. This is available on-chip
  	  on the MN103E010.
  
  config MN10300_WD_TIMER
  	bool "Using MN10300 watchdog timer"
  	default y
  	help
  	  This options indicates that the watchdog timer will be used.
  
  config PCI
  	bool "Use PCI"
  	depends on MN10300_UNIT_ASB2305
  	default y
34f1bdee1   Michael S. Tsirkin   mn10300: switch t...
236
  	select GENERIC_PCI_IOMAP
b920de1b7   David Howells   mn10300: add the ...
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
  	help
  	  Some systems (such as the ASB2305) have PCI onboard. If you have one
  	  of these boards and you wish to use the PCI facilities, say Y here.
  
  	  The PCI-HOWTO, available from
  	  <http://www.tldp.org/docs.html#howto>, contains valuable
  	  information about which PCI hardware does work under Linux and which
  	  doesn't.
  
  source "drivers/pci/Kconfig"
  
  source "drivers/pcmcia/Kconfig"
  
  menu "MN10300 internal serial options"
  
  config MN10300_PROC_HAS_TTYSM0
  	bool
  	default n
  
  config MN10300_PROC_HAS_TTYSM1
  	bool
  	default n
  
  config MN10300_PROC_HAS_TTYSM2
  	bool
  	default n
  
  config MN10300_TTYSM
  	bool "Support for ttySM serial ports"
  	depends on MN10300
  	default y
  	select SERIAL_CORE
  	help
  	  This option enables support for the on-chip serial ports that the
  	  MN10300 has available.
  
  config MN10300_TTYSM_CONSOLE
  	bool "Support for console on ttySM serial ports"
  	depends on MN10300_TTYSM
  	select SERIAL_CORE_CONSOLE
  	help
  	  This option enables support for a console on the on-chip serial ports
  	  that the MN10300 has available.
  
  #
  # /dev/ttySM0
  #
  config MN10300_TTYSM0
  	bool "Enable SIF0 (/dev/ttySM0)"
  	depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM0
  	help
  	  Enable access to SIF0 through /dev/ttySM0 or gdb-stub
  
  choice
  	prompt "Select the timer to supply the clock for SIF0"
  	default MN10300_TTYSM0_TIMER8
  	depends on MN10300_TTYSM0
  
  config MN10300_TTYSM0_TIMER8
  	bool "Use timer 8 (16-bit)"
  
  config MN10300_TTYSM0_TIMER2
  	bool "Use timer 2 (8-bit)"
  
  endchoice
  
  #
  # /dev/ttySM1
  #
  config MN10300_TTYSM1
  	bool "Enable SIF1 (/dev/ttySM1)"
  	depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM1
  	help
  	  Enable access to SIF1 through /dev/ttySM1 or gdb-stub
  
  choice
  	prompt "Select the timer to supply the clock for SIF1"
368dd5acd   Akira Takeuchi   MN10300: And Pana...
314
315
316
317
  	default MN10300_TTYSM1_TIMER12 \
  		if !(AM33_2 || AM33_3)
  	default MN10300_TTYSM1_TIMER9 \
  		if AM33_2 || AM33_3
b920de1b7   David Howells   mn10300: add the ...
318
  	depends on MN10300_TTYSM1
368dd5acd   Akira Takeuchi   MN10300: And Pana...
319
320
321
  config MN10300_TTYSM1_TIMER12
  	bool "Use timer 12 (16-bit)"
  	depends on !(AM33_2 || AM33_3)
b920de1b7   David Howells   mn10300: add the ...
322
323
  config MN10300_TTYSM1_TIMER9
  	bool "Use timer 9 (16-bit)"
368dd5acd   Akira Takeuchi   MN10300: And Pana...
324
  	depends on AM33_2 || AM33_3
b920de1b7   David Howells   mn10300: add the ...
325
326
327
  
  config MN10300_TTYSM1_TIMER3
  	bool "Use timer 3 (8-bit)"
368dd5acd   Akira Takeuchi   MN10300: And Pana...
328
  	depends on AM33_2 || AM33_3
b920de1b7   David Howells   mn10300: add the ...
329
330
331
332
333
334
335
336
337
338
339
340
341
342
  
  endchoice
  
  #
  # /dev/ttySM2
  #
  config MN10300_TTYSM2
  	bool "Enable SIF2 (/dev/ttySM2)"
  	depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM2
  	help
  	  Enable access to SIF2 through /dev/ttySM2 or gdb-stub
  
  choice
  	prompt "Select the timer to supply the clock for SIF2"
368dd5acd   Akira Takeuchi   MN10300: And Pana...
343
344
345
346
  	default MN10300_TTYSM2_TIMER3 \
  		if !(AM33_2 || AM33_3)
  	default MN10300_TTYSM2_TIMER10 \
  		if AM33_2 || AM33_3
b920de1b7   David Howells   mn10300: add the ...
347
  	depends on MN10300_TTYSM2
368dd5acd   Akira Takeuchi   MN10300: And Pana...
348
349
350
351
352
353
354
355
356
357
358
  config MN10300_TTYSM2_TIMER9
  	bool "Use timer 9 (16-bit)"
  	depends on !(AM33_2 || AM33_3)
  
  config MN10300_TTYSM2_TIMER1
  	bool "Use timer 1 (8-bit)"
  	depends on !(AM33_2 || AM33_3)
  
  config MN10300_TTYSM2_TIMER3
  	bool "Use timer 3 (8-bit)"
  	depends on !(AM33_2 || AM33_3)
b920de1b7   David Howells   mn10300: add the ...
359
360
  config MN10300_TTYSM2_TIMER10
  	bool "Use timer 10 (16-bit)"
368dd5acd   Akira Takeuchi   MN10300: And Pana...
361
  	depends on AM33_2 || AM33_3
b920de1b7   David Howells   mn10300: add the ...
362
363
364
365
366
  
  endchoice
  
  config MN10300_TTYSM2_CTS
  	bool "Enable the use of the CTS line /dev/ttySM2"
368dd5acd   Akira Takeuchi   MN10300: And Pana...
367
  	depends on MN10300_TTYSM2 && AM33_2
b920de1b7   David Howells   mn10300: add the ...
368
369
  
  endmenu
37e4ec963   Akira Takeuchi   MN10300: Make var...
370
371
372
373
374
375
  menu "Interrupt request priority options"
  
  comment "[!] NOTE: A lower number/level indicates a higher priority (0 is highest, 6 is lowest)"
  
  comment "____Non-maskable interrupt levels____"
  comment "The following must be set to a higher priority than local_irq_disable() and on-chip serial"
67ddb4052   David Howells   MN10300: Create g...
376
377
  config DEBUGGER_IRQ_LEVEL
  	int "DEBUGGER interrupt priority"
792576b1c   David Howells   MN10300: Introduc...
378
  	depends on KERNEL_DEBUGGER
37e4ec963   Akira Takeuchi   MN10300: Make var...
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
  	range 0 1 if LINUX_CLI_LEVEL = 2
  	range 0 2 if LINUX_CLI_LEVEL = 3
  	range 0 3 if LINUX_CLI_LEVEL = 4
  	range 0 4 if LINUX_CLI_LEVEL = 5
  	range 0 5 if LINUX_CLI_LEVEL = 6
  	default 0
  
  comment "The following must be set to a higher priority than local_irq_disable()"
  
  config MN10300_SERIAL_IRQ_LEVEL
  	int "MN10300 on-chip serial interrupt priority"
  	depends on MN10300_TTYSM
  	range 1 1 if LINUX_CLI_LEVEL = 2
  	range 1 2 if LINUX_CLI_LEVEL = 3
  	range 1 3 if LINUX_CLI_LEVEL = 4
  	range 1 4 if LINUX_CLI_LEVEL = 5
  	range 1 5 if LINUX_CLI_LEVEL = 6
  	default 1
  
  comment "-"
  comment "____Maskable interrupt levels____"
  
  config LINUX_CLI_LEVEL
  	int "The highest interrupt priority excluded by local_irq_disable() (2-6)"
  	range 2 6
  	default 2
  	help
  	  local_irq_disable() doesn't actually disable maskable interrupts -
  	  what it does is restrict the levels of interrupt which are permitted
  	  (a lower level indicates a higher priority) by lowering the value in
  	  EPSW.IM from 7.  Any interrupt is permitted for which the level is
  	  lower than EPSW.IM.
67ddb4052   David Howells   MN10300: Create g...
411
  	  Certain interrupts, such as DEBUGGER and virtual MN10300 on-chip
37e4ec963   Akira Takeuchi   MN10300: Make var...
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
  	  serial DMA interrupts are allowed to interrupt normal disabled
  	  sections.
  
  comment "The following must be set to a equal to or lower priority than LINUX_CLI_LEVEL"
  
  config TIMER_IRQ_LEVEL
  	int "Kernel timer interrupt priority"
  	range LINUX_CLI_LEVEL 6
  	default 4
  
  config PCI_IRQ_LEVEL
  	int "PCI interrupt priority"
  	depends on PCI
  	range LINUX_CLI_LEVEL 6
  	default 5
  
  config ETHERNET_IRQ_LEVEL
  	int "Ethernet interrupt priority"
  	depends on SMC91X || SMC911X || SMSC911X
  	range LINUX_CLI_LEVEL 6
  	default 6
  
  config EXT_SERIAL_IRQ_LEVEL
  	int "External serial port interrupt priority"
  	depends on SERIAL_8250
  	range LINUX_CLI_LEVEL 6
  	default 6
  
  endmenu
b920de1b7   David Howells   mn10300: add the ...
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
  source "mm/Kconfig"
  
  menu "Power management options"
  source kernel/power/Kconfig
  endmenu
  
  endmenu
  
  
  menu "Executable formats"
  
  source "fs/Kconfig.binfmt"
  
  endmenu
  
  source "net/Kconfig"
  
  source "drivers/Kconfig"
  
  source "fs/Kconfig"
  
  source "arch/mn10300/Kconfig.debug"
  
  source "security/Kconfig"
  
  source "crypto/Kconfig"
  
  source "lib/Kconfig"