Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / arch / mn10300 / Kconfig
blob6a6409adc56403c34ced10eee3d51c638c8314e2
2 # For a description of the syntax of this configuration file,
3 # see Documentation/kbuild/kconfig-language.txt.
6 mainmenu "Linux Kernel Configuration"
8 config MN10300
9         def_bool y
11 config AM33
12         def_bool y
14 config MMU
15         def_bool y
17 config HIGHMEM
18         def_bool n
20 config NUMA
21         def_bool n
23 config UID16
24         def_bool y
26 config RWSEM_GENERIC_SPINLOCK
27         def_bool y
29 config RWSEM_XCHGADD_ALGORITHM
30         bool
32 config GENERIC_HARDIRQS_NO__DO_IRQ
33         def_bool y
35 config GENERIC_CALIBRATE_DELAY
36         def_bool y
38 config GENERIC_FIND_NEXT_BIT
39         def_bool y
41 config GENERIC_HWEIGHT
42         def_bool y
44 config GENERIC_TIME
45         def_bool y
47 config GENERIC_BUG
48         def_bool y
50 config QUICKLIST
51         def_bool y
53 config ARCH_HAS_ILOG2_U32
54         def_bool y
56 config ARCH_SUPPORTS_AOUT
57         def_bool n
59 # Use the generic interrupt handling code in kernel/irq/
60 config GENERIC_HARDIRQS
61         def_bool y
63 config HOTPLUG_CPU
64         def_bool n
66 config HZ
67         int
68         default 1000
70 mainmenu "Matsushita MN10300/AM33 Kernel Configuration"
72 source "init/Kconfig"
75 menu "Matsushita MN10300 system setup"
77 choice
78         prompt "Unit type"
79         default MN10300_UNIT_ASB2303
80         help
81           This option specifies board for which the kernel will be
82           compiled. It affects the external peripherals catered for.
84 config MN10300_UNIT_ASB2303
85         bool "ASB2303"
87 config MN10300_UNIT_ASB2305
88         bool "ASB2305"
90 endchoice
92 choice
93         prompt "Processor support"
94         default MN10300_PROC_MN103E010
95         help
96           This option specifies the processor for which the kernel will be
97           compiled. It affects the on-chip peripherals catered for.
99 config MN10300_PROC_MN103E010
100         bool "MN103E010"
101         depends on MN10300_UNIT_ASB2303 || MN10300_UNIT_ASB2305
102         select MN10300_PROC_HAS_TTYSM0
103         select MN10300_PROC_HAS_TTYSM1
104         select MN10300_PROC_HAS_TTYSM2
106 endchoice
108 choice
109         prompt "Processor core support"
110         default MN10300_CPU_AM33V2
111         help
112           This option specifies the processor core for which the kernel will be
113           compiled. It affects the instruction set used.
115 config MN10300_CPU_AM33V2
116         bool "AM33v2"
118 endchoice
120 config FPU
121         bool "FPU present"
122         default y
123         depends on MN10300_PROC_MN103E010
125 choice
126         prompt "CPU Caching mode"
127         default MN10300_CACHE_WBACK
128         help
129           This option determines the caching mode for the kernel.
131           Write-Back caching mode involves the all reads and writes causing
132           the affected cacheline to be read into the cache first before being
133           operated upon. Memory is not then updated by a write until the cache
134           is filled and a cacheline needs to be displaced from the cache to
135           make room. Only at that point is it written back.
137           Write-Through caching only fetches cachelines from memory on a
138           read. Writes always get written directly to memory. If the affected
139           cacheline is also in cache, it will be updated too.
141           The final option is to turn of caching entirely.
143 config MN10300_CACHE_WBACK
144         bool "Write-Back"
146 config MN10300_CACHE_WTHRU
147         bool "Write-Through"
149 config MN10300_CACHE_DISABLED
150         bool "Disabled"
152 endchoice
154 menu "Memory layout options"
156 config KERNEL_RAM_BASE_ADDRESS
157         hex "Base address of kernel RAM"
158         default "0x90000000"
160 config INTERRUPT_VECTOR_BASE
161         hex "Base address of vector table"
162         default "0x90000000"
163         help
164           The base address of the vector table will be programmed into
165           the TBR register. It must be on 16MiB address boundary.
167 config KERNEL_TEXT_ADDRESS
168         hex "Base address of kernel"
169         default "0x90001000"
171 config KERNEL_ZIMAGE_BASE_ADDRESS
172         hex "Base address of compressed vmlinux image"
173         default "0x90700000"
175 endmenu
177 config PREEMPT
178         bool "Preemptible Kernel"
179         help
180           This option reduces the latency of the kernel when reacting to
181           real-time or interactive events by allowing a low priority process to
182           be preempted even if it is in kernel mode executing a system call.
183           This allows applications to run more reliably even when the system is
184           under load.
186           Say Y here if you are building a kernel for a desktop, embedded
187           or real-time system.  Say N if you are unsure.
189 config PREEMPT_BKL
190         bool "Preempt The Big Kernel Lock"
191         depends on PREEMPT
192         default y
193         help
194           This option reduces the latency of the kernel by making the
195           big kernel lock preemptible.
197           Say Y here if you are building a kernel for a desktop system.
198           Say N if you are unsure.
200 config MN10300_CURRENT_IN_E2
201         bool "Hold current task address in E2 register"
202         default y
203         help
204           This option removes the E2/R2 register from the set available to gcc
205           for normal use and instead uses it to store the address of the
206           current process's task_struct whilst in the kernel.
208           This means the kernel doesn't need to calculate the address each time
209           "current" is used (take SP, AND with mask and dereference pointer
210           just to get the address), and instead can just use E2+offset
211           addressing each time.
213           This has no effect on userspace.
215 config MN10300_USING_JTAG
216         bool "Using JTAG to debug kernel"
217         default y
218         help
219           This options indicates that JTAG will be used to debug the kernel. It
220           suppresses the use of certain hardware debugging features, such as
221           single-stepping, which are taken over completely by the JTAG unit.
223 config MN10300_RTC
224         bool "Using MN10300 RTC"
225         depends on MN10300_PROC_MN103E010
226         default n
227         help
229           This option enables support for the RTC, thus enabling time to be
230           tracked, even when system is powered down. This is available on-chip
231           on the MN103E010.
233 config MN10300_WD_TIMER
234         bool "Using MN10300 watchdog timer"
235         default y
236         help
237           This options indicates that the watchdog timer will be used.
239 config PCI
240         bool "Use PCI"
241         depends on MN10300_UNIT_ASB2305
242         default y
243         help
244           Some systems (such as the ASB2305) have PCI onboard. If you have one
245           of these boards and you wish to use the PCI facilities, say Y here.
247           The PCI-HOWTO, available from
248           <http://www.tldp.org/docs.html#howto>, contains valuable
249           information about which PCI hardware does work under Linux and which
250           doesn't.
252 source "drivers/pci/Kconfig"
254 source "drivers/pcmcia/Kconfig"
256 menu "MN10300 internal serial options"
258 config MN10300_PROC_HAS_TTYSM0
259         bool
260         default n
262 config MN10300_PROC_HAS_TTYSM1
263         bool
264         default n
266 config MN10300_PROC_HAS_TTYSM2
267         bool
268         default n
270 config MN10300_TTYSM
271         bool "Support for ttySM serial ports"
272         depends on MN10300
273         default y
274         select SERIAL_CORE
275         help
276           This option enables support for the on-chip serial ports that the
277           MN10300 has available.
279 config MN10300_TTYSM_CONSOLE
280         bool "Support for console on ttySM serial ports"
281         depends on MN10300_TTYSM
282         select SERIAL_CORE_CONSOLE
283         help
284           This option enables support for a console on the on-chip serial ports
285           that the MN10300 has available.
288 # /dev/ttySM0
290 config MN10300_TTYSM0
291         bool "Enable SIF0 (/dev/ttySM0)"
292         depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM0
293         help
294           Enable access to SIF0 through /dev/ttySM0 or gdb-stub
296 choice
297         prompt "Select the timer to supply the clock for SIF0"
298         default MN10300_TTYSM0_TIMER8
299         depends on MN10300_TTYSM0
301 config MN10300_TTYSM0_TIMER8
302         bool "Use timer 8 (16-bit)"
304 config MN10300_TTYSM0_TIMER2
305         bool "Use timer 2 (8-bit)"
307 endchoice
310 # /dev/ttySM1
312 config MN10300_TTYSM1
313         bool "Enable SIF1 (/dev/ttySM1)"
314         depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM1
315         help
316           Enable access to SIF1 through /dev/ttySM1 or gdb-stub
318 choice
319         prompt "Select the timer to supply the clock for SIF1"
320         default MN10300_TTYSM0_TIMER9
321         depends on MN10300_TTYSM1
323 config MN10300_TTYSM1_TIMER9
324         bool "Use timer 9 (16-bit)"
326 config MN10300_TTYSM1_TIMER3
327         bool "Use timer 3 (8-bit)"
329 endchoice
332 # /dev/ttySM2
334 config MN10300_TTYSM2
335         bool "Enable SIF2 (/dev/ttySM2)"
336         depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM2
337         help
338           Enable access to SIF2 through /dev/ttySM2 or gdb-stub
340 choice
341         prompt "Select the timer to supply the clock for SIF2"
342         default MN10300_TTYSM0_TIMER10
343         depends on MN10300_TTYSM2
345 config MN10300_TTYSM2_TIMER10
346         bool "Use timer 10 (16-bit)"
348 endchoice
350 config MN10300_TTYSM2_CTS
351         bool "Enable the use of the CTS line /dev/ttySM2"
352         depends on MN10300_TTYSM2
354 endmenu
356 source "mm/Kconfig"
358 menu "Power management options"
359 source kernel/power/Kconfig
360 endmenu
362 endmenu
365 menu "Executable formats"
367 source "fs/Kconfig.binfmt"
369 endmenu
371 source "net/Kconfig"
373 source "drivers/Kconfig"
375 source "fs/Kconfig"
377 source "arch/mn10300/Kconfig.debug"
379 source "security/Kconfig"
381 source "crypto/Kconfig"
383 source "lib/Kconfig"
385 source "arch/mn10300/oprofile/Kconfig"