ARC: Hostlink Pseudo-Driver for Metaware Debugger
[linux-2.6/btrfs-unstable.git] / arch / arc / Kconfig
blobcd4ad61c4c14bf7343fead74f23b38f5faddc62f
2 # Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License version 2 as
6 # published by the Free Software Foundation.
9 config ARC
10         def_bool y
11         select ARCH_NO_VIRT_TO_BUS
12         select CLONE_BACKWARDS
13         # ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev
14         select DEVTMPFS if !INITRAMFS_SOURCE=""
15         select GENERIC_ATOMIC64
16         select GENERIC_CLOCKEVENTS
17         select GENERIC_FIND_FIRST_BIT
18         # for now, we don't need GENERIC_IRQ_PROBE, CONFIG_GENERIC_IRQ_CHIP
19         select GENERIC_IRQ_SHOW
20         select GENERIC_KERNEL_EXECVE
21         select GENERIC_KERNEL_THREAD
22         select GENERIC_PENDING_IRQ if SMP
23         select GENERIC_SIGALTSTACK
24         select GENERIC_SMP_IDLE_THREAD
25         select HAVE_ARCH_KGDB
26         select HAVE_ARCH_TRACEHOOK
27         select HAVE_GENERIC_HARDIRQS
28         select HAVE_IRQ_WORK
29         select HAVE_KPROBES
30         select HAVE_KRETPROBES
31         select HAVE_MEMBLOCK
32         select HAVE_MOD_ARCH_SPECIFIC if ARC_DW2_UNWIND
33         select HAVE_OPROFILE
34         select HAVE_PERF_EVENTS
35         select IRQ_DOMAIN
36         select MODULES_USE_ELF_RELA
37         select NO_BOOTMEM
38         select OF
39         select OF_EARLY_FLATTREE
40         select PERF_USE_VMALLOC
42 config SCHED_OMIT_FRAME_POINTER
43         def_bool y
45 config GENERIC_CSUM
46         def_bool y
48 config RWSEM_GENERIC_SPINLOCK
49         def_bool y
51 config ARCH_FLATMEM_ENABLE
52         def_bool y
54 config MMU
55         def_bool y
57 config NO_IOPORT
58         def_bool y
60 config GENERIC_CALIBRATE_DELAY
61         def_bool y
63 config GENERIC_HWEIGHT
64         def_bool y
66 config BINFMT_ELF
67         def_bool y
69 config STACKTRACE_SUPPORT
70         def_bool y
71         select STACKTRACE
73 config HAVE_LATENCYTOP_SUPPORT
74         def_bool y
76 config NO_DMA
77         def_bool n
79 source "init/Kconfig"
80 source "kernel/Kconfig.freezer"
82 menu "ARC Architecture Configuration"
84 choice
85         prompt "ARC Platform"
86         default ARC_PLAT_FPGA_LEGACY
88 config ARC_PLAT_FPGA_LEGACY
89         bool "\"Legacy\" ARC FPGA dev platform"
90         help
91           Support for ARC development platforms, provided by Synopsys.
92           These are based on FPGA or ISS. e.g.
93           - ARCAngel4
94           - ML509
95           - MetaWare ISS
97 #New platform adds here
98 endchoice
100 menu "ARC CPU Configuration"
102 choice
103         prompt "ARC Core"
104         default ARC_CPU_770
106 config ARC_CPU_750D
107         bool "ARC750D"
108         help
109           Support for ARC750 core
111 config ARC_CPU_770
112         bool "ARC770"
113         select ARC_CPU_REL_4_10
114         help
115           Support for ARC770 core introduced with Rel 4.10 (Summer 2011)
116           This core has a bunch of cool new features:
117           -MMU-v3: Variable Page Sz (4k, 8k, 16k), bigger J-TLB (128x4)
118                    Shared Address Spaces (for sharing TLB entires in MMU)
119           -Caches: New Prog Model, Region Flush
120           -Insns: endian swap, load-locked/store-conditional, time-stamp-ctr
122 endchoice
124 config CPU_BIG_ENDIAN
125         bool "Enable Big Endian Mode"
126         default n
127         help
128           Build kernel for Big Endian Mode of ARC CPU
130 config SMP
131         bool "Symmetric Multi-Processing (Incomplete)"
132         default n
133         select USE_GENERIC_SMP_HELPERS
134         help
135           This enables support for systems with more than one CPU. If you have
136           a system with only one CPU, like most personal computers, say N. If
137           you have a system with more than one CPU, say Y.
139 if SMP
141 config ARC_HAS_COH_CACHES
142         def_bool n
144 config ARC_HAS_COH_LLSC
145         def_bool n
147 config ARC_HAS_COH_RTSC
148         def_bool n
150 config ARC_HAS_REENTRANT_IRQ_LV2
151         def_bool n
153 endif
155 config NR_CPUS
156         int "Maximum number of CPUs (2-32)"
157         range 2 32
158         depends on SMP
159         default "2"
161 menuconfig ARC_CACHE
162         bool "Enable Cache Support"
163         default y
164         # if SMP, cache enabled ONLY if ARC implementation has cache coherency
165         depends on !SMP || ARC_HAS_COH_CACHES
167 if ARC_CACHE
169 config ARC_CACHE_LINE_SHIFT
170         int "Cache Line Length (as power of 2)"
171         range 5 7
172         default "6"
173         help
174           Starting with ARC700 4.9, Cache line length is configurable,
175           This option specifies "N", with Line-len = 2 power N
176           So line lengths of 32, 64, 128 are specified by 5,6,7, respectively
177           Linux only supports same line lengths for I and D caches.
179 config ARC_HAS_ICACHE
180         bool "Use Instruction Cache"
181         default y
183 config ARC_HAS_DCACHE
184         bool "Use Data Cache"
185         default y
187 config ARC_CACHE_PAGES
188         bool "Per Page Cache Control"
189         default y
190         depends on ARC_HAS_ICACHE || ARC_HAS_DCACHE
191         help
192           This can be used to over-ride the global I/D Cache Enable on a
193           per-page basis (but only for pages accessed via MMU such as
194           Kernel Virtual address or User Virtual Address)
195           TLB entries have a per-page Cache Enable Bit.
196           Note that Global I/D ENABLE + Per Page DISABLE works but corollary
197           Global DISABLE + Per Page ENABLE won't work
199 endif   #ARC_CACHE
201 config ARC_HAS_ICCM
202         bool "Use ICCM"
203         help
204           Single Cycle RAMS to store Fast Path Code
205         default n
207 config ARC_ICCM_SZ
208         int "ICCM Size in KB"
209         default "64"
210         depends on ARC_HAS_ICCM
212 config ARC_HAS_DCCM
213         bool "Use DCCM"
214         help
215           Single Cycle RAMS to store Fast Path Data
216         default n
218 config ARC_DCCM_SZ
219         int "DCCM Size in KB"
220         default "64"
221         depends on ARC_HAS_DCCM
223 config ARC_DCCM_BASE
224         hex "DCCM map address"
225         default "0xA0000000"
226         depends on ARC_HAS_DCCM
228 config ARC_HAS_HW_MPY
229         bool "Use Hardware Multiplier (Normal or Faster XMAC)"
230         default y
231         help
232           Influences how gcc generates code for MPY operations.
233           If enabled, MPYxx insns are generated, provided by Standard/XMAC
234           Multipler. Otherwise software multipy lib is used
236 choice
237         prompt "ARC700 MMU Version"
238         default ARC_MMU_V3 if ARC_CPU_770
239         default ARC_MMU_V2 if ARC_CPU_750D
241 config ARC_MMU_V1
242         bool "MMU v1"
243         help
244           Orig ARC700 MMU
246 config ARC_MMU_V2
247         bool "MMU v2"
248         help
249           Fixed the deficiency of v1 - possible thrashing in memcpy sceanrio
250           when 2 D-TLB and 1 I-TLB entries index into same 2way set.
252 config ARC_MMU_V3
253         bool "MMU v3"
254         depends on ARC_CPU_770
255         help
256           Introduced with ARC700 4.10: New Features
257           Variable Page size (1k-16k), var JTLB size 128 x (2 or 4)
258           Shared Address Spaces (SASID)
260 endchoice
263 choice
264         prompt "MMU Page Size"
265         default ARC_PAGE_SIZE_8K
267 config ARC_PAGE_SIZE_8K
268         bool "8KB"
269         help
270           Choose between 8k vs 16k
272 config ARC_PAGE_SIZE_16K
273         bool "16KB"
274         depends on ARC_MMU_V3
276 config ARC_PAGE_SIZE_4K
277         bool "4KB"
278         depends on ARC_MMU_V3
280 endchoice
282 config ARC_COMPACT_IRQ_LEVELS
283         bool "ARCompact IRQ Priorities: High(2)/Low(1)"
284         default n
285         # Timer HAS to be high priority, for any other high priority config
286         select ARC_IRQ3_LV2
287         # if SMP, LV2 enabled ONLY if ARC implementation has LV2 re-entrancy
288         depends on !SMP || ARC_HAS_REENTRANT_IRQ_LV2
290 if ARC_COMPACT_IRQ_LEVELS
292 config ARC_IRQ3_LV2
293         bool
295 config ARC_IRQ5_LV2
296         bool
298 config ARC_IRQ6_LV2
299         bool
301 endif
303 config ARC_FPU_SAVE_RESTORE
304         bool "Enable FPU state persistence across context switch"
305         default n
306         help
307           Double Precision Floating Point unit had dedictaed regs which
308           need to be saved/restored across context-switch.
309           Note that ARC FPU is overly simplistic, unlike say x86, which has
310           hardware pieces to allow software to conditionally save/restore,
311           based on actual usage of FPU by a task. Thus our implemn does
312           this for all tasks in system.
314 menuconfig ARC_CPU_REL_4_10
315         bool "Enable support for Rel 4.10 features"
316         default n
317         help
318           -ARC770 (and dependent features) enabled
319           -ARC750 also shares some of the new features with 770
321 config ARC_HAS_LLSC
322         bool "Insn: LLOCK/SCOND (efficient atomic ops)"
323         default y
324         depends on ARC_CPU_770
325         # if SMP, enable LLSC ONLY if ARC implementation has coherent atomics
326         depends on !SMP || ARC_HAS_COH_LLSC
328 config ARC_HAS_SWAPE
329         bool "Insn: SWAPE (endian-swap)"
330         default y
331         depends on ARC_CPU_REL_4_10
333 config ARC_HAS_RTSC
334         bool "Insn: RTSC (64-bit r/o cycle counter)"
335         default y
336         depends on ARC_CPU_REL_4_10
337         # if SMP, enable RTSC only if counter is coherent across cores
338         depends on !SMP || ARC_HAS_COH_RTSC
340 endmenu   # "ARC CPU Configuration"
342 menu "Platform Board Configuration"
344 source "arch/arc/plat-arcfpga/Kconfig"
346 #New platform adds here
348 config LINUX_LINK_BASE
349         hex "Linux Link Address"
350         default "0x80000000"
351         help
352           ARC700 divides the 32 bit phy address space into two equal halves
353           -Lower 2G (0 - 0x7FFF_FFFF ) is user virtual, translated by MMU
354           -Upper 2G (0x8000_0000 onwards) is untranslated, for kernel
355           Typically Linux kernel is linked at the start of untransalted addr,
356           hence the default value of 0x8zs.
357           However some customers have peripherals mapped at this addr, so
358           Linux needs to be scooted a bit.
359           If you don't know what the above means, leave this setting alone.
361 endmenu # "Platform Board Configuration"
363 config ARC_CURR_IN_REG
364         bool "Dedicate Register r25 for current_task pointer"
365         default y
366         help
367           This reserved Register R25 to point to Current Task in
368           kernel mode. This saves memory access for each such access
371 config ARC_MISALIGN_ACCESS
372         bool "Emulate unaligned memory access (userspace only)"
373         default N
374         select SYSCTL_ARCH_UNALIGN_NO_WARN
375         select SYSCTL_ARCH_UNALIGN_ALLOW
376         help
377           This enables misaligned 16 & 32 bit memory access from user space.
378           Use ONLY-IF-ABS-NECESSARY as it will be very slow and also can hide
379           potential bugs in code
381 config ARC_STACK_NONEXEC
382         bool "Make stack non-executable"
383         default n
384         help
385           To disable the execute permissions of stack/heap of processes
386           which are enabled by default.
388 config HZ
389         int "Timer Frequency"
390         default 100
392 config ARC_METAWARE_HLINK
393         bool "Support for Metaware debugger assisted Host access"
394         default n
395         help
396           This options allows a Linux userland apps to directly access
397           host file system (open/creat/read/write etc) with help from
398           Metaware Debugger. This can come in handy for Linux-host communication
399           when there is no real usable peripheral such as EMAC.
401 menuconfig ARC_DBG
402         bool "ARC debugging"
403         default y
405 config ARC_DW2_UNWIND
406         bool "Enable DWARF specific kernel stack unwind"
407         depends on ARC_DBG
408         default y
409         select KALLSYMS
410         help
411           Compiles the kernel with DWARF unwind information and can be used
412           to get stack backtraces.
414           If you say Y here the resulting kernel image will be slightly larger
415           but not slower, and it will give very useful debugging information.
416           If you don't debug the kernel, you can say N, but we may not be able
417           to solve problems without frame unwind information
419 config ARC_DBG_TLB_PARANOIA
420         bool "Paranoia Checks in Low Level TLB Handlers"
421         depends on ARC_DBG
422         default n
424 config ARC_DBG_TLB_MISS_COUNT
425         bool "Profile TLB Misses"
426         default n
427         select DEBUG_FS
428         depends on ARC_DBG
429         help
430           Counts number of I and D TLB Misses and exports them via Debugfs
431           The counters can be cleared via Debugfs as well
433 config CMDLINE
434         string "Kernel command line to built-in"
435         default "print-fatal-signals=1"
436         help
437           The default command line which will be appended to the optional
438           u-boot provided command line (see below)
440 config CMDLINE_UBOOT
441         bool "Support U-boot kernel command line passing"
442         default n
443         help
444           If you are using U-boot (www.denx.de) and wish to pass the kernel
445           command line from the U-boot environment to the Linux kernel then
446           switch this option on.
447           ARC U-boot will setup the cmdline in RAM/flash and set r2 to point
448           to it. kernel startup code will copy the string into cmdline buffer
449           and also append CONFIG_CMDLINE.
451 config ARC_BUILTIN_DTB_NAME
452         string "Built in DTB"
453         help
454           Set the name of the DTB to embed in the vmlinux binary
455           Leaving it blank selects the minimal "skeleton" dtb
457 source "kernel/Kconfig.preempt"
459 endmenu  # "ARC Architecture Configuration"
461 source "mm/Kconfig"
462 source "net/Kconfig"
463 source "drivers/Kconfig"
464 source "fs/Kconfig"
465 source "arch/arc/Kconfig.debug"
466 source "security/Kconfig"
467 source "crypto/Kconfig"
468 source "lib/Kconfig"