Blame view

arch/arc/Kconfig 14.3 KB
cfdbc2e16   Vineet Gupta   ARC: Build system...
1
2
3
4
5
6
7
8
9
10
  #
  # Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  #
  # This program is free software; you can redistribute it and/or modify
  # it under the terms of the GNU General Public License version 2 as
  # published by the Free Software Foundation.
  #
  
  config ARC
  	def_bool y
c4c9a040e   Vineet Gupta   clocksource: impo...
11
  	select ARC_TIMERS
983eeba7d   Vladimir Kondratiev   ARC: enable SG ch...
12
  	select ARCH_HAS_SG_CHAIN
2a4401687   Vineet Gupta   ARC: Enable optim...
13
  	select ARCH_SUPPORTS_ATOMIC_RMW if ARC_HAS_LLSC
f06d19e46   Vineet Gupta   ARC: extable: Ena...
14
  	select BUILDTIME_EXTABLE_SORT
4adeefe16   Vineet Gupta   ARC: Syscall supp...
15
  	select CLONE_BACKWARDS
69fbd0987   Noam Camus   ARC: clockevent: ...
16
  	select COMMON_CLK
ce6365270   Vineet Gupta   ARCv2: Implement ...
17
  	select GENERIC_ATOMIC64 if !ISA_ARCV2 || !(ARC_HAS_LL64 && ARC_HAS_LLSC)
cfdbc2e16   Vineet Gupta   ARC: Build system...
18
19
20
21
  	select GENERIC_CLOCKEVENTS
  	select GENERIC_FIND_FIRST_BIT
  	# for now, we don't need GENERIC_IRQ_PROBE, CONFIG_GENERIC_IRQ_CHIP
  	select GENERIC_IRQ_SHOW
c1678ffcd   Joao Pinto   ARC: Add PCI support
22
  	select GENERIC_PCI_IOMAP
cfdbc2e16   Vineet Gupta   ARC: Build system...
23
24
  	select GENERIC_PENDING_IRQ if SMP
  	select GENERIC_SMP_IDLE_THREAD
f46121bd2   Mischa Jonker   ARC: kgdb support
25
  	select HAVE_ARCH_KGDB
547f11257   Vineet Gupta   ARC: ptrace support
26
  	select HAVE_ARCH_TRACEHOOK
5464d03d9   Vineet Gupta   ARC: fix allnocon...
27
  	select HAVE_FUTEX_CMPXCHG if FUTEX
4368902bb   Gilad Ben-Yossef   ARC: Add support ...
28
  	select HAVE_IOREMAP_PROT
4d86dfbbd   Vineet Gupta   ARC: kprobes support
29
30
  	select HAVE_KPROBES
  	select HAVE_KRETPROBES
c121c5063   Vineet Gupta   ARC: Boot #1: low...
31
  	select HAVE_MEMBLOCK
eb1357d94   Vineet Gupta   ARC: module: Fix ...
32
  	select HAVE_MOD_ARCH_SPECIFIC
769bc1fd7   Vineet Gupta   ARC: OProfile sup...
33
  	select HAVE_OPROFILE
9c57564e2   Vineet Gupta   ARC: perf support...
34
  	select HAVE_PERF_EVENTS
1b0ccb8a4   Vineet Gupta   ARC: [intc-*] Do ...
35
  	select HANDLE_DOMAIN_IRQ
999159a53   Vineet Gupta   ARC: [DeviceTree]...
36
  	select IRQ_DOMAIN
cfdbc2e16   Vineet Gupta   ARC: Build system...
37
  	select MODULES_USE_ELF_RELA
c121c5063   Vineet Gupta   ARC: Boot #1: low...
38
  	select NO_BOOTMEM
999159a53   Vineet Gupta   ARC: [DeviceTree]...
39
40
  	select OF
  	select OF_EARLY_FLATTREE
1b10cb21d   Alexey Brodkin   ARC: add support ...
41
  	select OF_RESERVED_MEM
9c57564e2   Vineet Gupta   ARC: perf support...
42
  	select PERF_USE_VMALLOC
d1a1dc0be   Dave Hansen   consolidate per-a...
43
  	select HAVE_DEBUG_STACKOVERFLOW
32ed9a0e0   Alexey Brodkin   ARC: support gene...
44
  	select HAVE_GENERIC_DMA_COHERENT
27f3d2a3b   Daniel Mentz   ARC: [build] Supp...
45
46
  	select HAVE_KERNEL_GZIP
  	select HAVE_KERNEL_LZMA
cfdbc2e16   Vineet Gupta   ARC: Build system...
47

331c36cd0   Eugeniy Paltsev   ARC: dma [non-IOC...
48
49
  config ARCH_HAS_CACHE_LINE_SIZE
  	def_bool y
c1678ffcd   Joao Pinto   ARC: Add PCI support
50
51
  config MIGHT_HAVE_PCI
  	bool
0dafafc3e   Vineet Gupta   ARC: Add support ...
52
53
54
55
56
  config TRACE_IRQFLAGS_SUPPORT
  	def_bool y
  
  config LOCKDEP_SUPPORT
  	def_bool y
cfdbc2e16   Vineet Gupta   ARC: Build system...
57
58
59
60
61
62
63
64
  config SCHED_OMIT_FRAME_POINTER
  	def_bool y
  
  config GENERIC_CSUM
  	def_bool y
  
  config RWSEM_GENERIC_SPINLOCK
  	def_bool y
26f9d5fd8   Vineet Gupta   ARC: support HIGH...
65
  config ARCH_DISCONTIGMEM_ENABLE
d140b9bfc   Vineet Gupta   ARC: don't enable...
66
  	def_bool n
26f9d5fd8   Vineet Gupta   ARC: support HIGH...
67

cfdbc2e16   Vineet Gupta   ARC: Build system...
68
69
70
71
72
  config ARCH_FLATMEM_ENABLE
  	def_bool y
  
  config MMU
  	def_bool y
ce816fa88   Uwe Kleine-König   Kconfig: rename H...
73
  config NO_IOPORT_MAP
cfdbc2e16   Vineet Gupta   ARC: Build system...
74
75
76
77
78
79
80
  	def_bool y
  
  config GENERIC_CALIBRATE_DELAY
  	def_bool y
  
  config GENERIC_HWEIGHT
  	def_bool y
44c8bb914   Vineet Gupta   ARC: stacktracing...
81
82
83
  config STACKTRACE_SUPPORT
  	def_bool y
  	select STACKTRACE
fe6c1b861   Vineet Gupta   ARCv2: mm: THP su...
84
85
86
  config HAVE_ARCH_TRANSPARENT_HUGEPAGE
  	def_bool y
  	depends on ARC_MMU_V4
cfdbc2e16   Vineet Gupta   ARC: Build system...
87
88
89
90
  source "init/Kconfig"
  source "kernel/Kconfig.freezer"
  
  menu "ARC Architecture Configuration"
93ad700de   Vineet Gupta   ARC: Fold boards ...
91
  menu "ARC Platform/SoC/Board"
cfdbc2e16   Vineet Gupta   ARC: Build system...
92

072eb6939   Christian Ruppert   ARC: [TB10x] Add ...
93
  source "arch/arc/plat-tb10x/Kconfig"
556cc1c5f   Alexey Brodkin   ARC: [axs101] Add...
94
  source "arch/arc/plat-axs10x/Kconfig"
cfdbc2e16   Vineet Gupta   ARC: Build system...
95
  #New platform adds here
966657890   Noam Camus   ARC: Add eznps pl...
96
  source "arch/arc/plat-eznps/Kconfig"
a518d6377   Alexey Brodkin   ARC: [plat-hsdk] ...
97
  source "arch/arc/plat-hsdk/Kconfig"
93ad700de   Vineet Gupta   ARC: Fold boards ...
98

53d98958f   Vineet Gupta   ARC: [Review] Mul...
99
  endmenu
cfdbc2e16   Vineet Gupta   ARC: Build system...
100

1f6ccfff6   Vineet Gupta   ARCv2: Support fo...
101
102
  choice
  	prompt "ARC Instruction Set"
f4069a6cf   Kevin Hilman   ARC: change defco...
103
  	default ISA_ARCV2
1f6ccfff6   Vineet Gupta   ARCv2: Support fo...
104
105
106
  
  config ISA_ARCOMPACT
  	bool "ARCompact ISA"
fff7fb0b2   Zhaoxiu Zeng   lib/GCD.c: use bi...
107
  	select CPU_NO_EFFICIENT_FFS
1f6ccfff6   Vineet Gupta   ARCv2: Support fo...
108
109
  	help
  	  The original ARC ISA of ARC600/700 cores
65bfbcdfd   Vineet Gupta   ARCv2: All bits i...
110
111
  config ISA_ARCV2
  	bool "ARC ISA v2"
c4c9a040e   Vineet Gupta   clocksource: impo...
112
  	select ARC_TIMERS_64BIT
65bfbcdfd   Vineet Gupta   ARCv2: All bits i...
113
114
  	help
  	  ISA for the Next Generation ARC-HS cores
1f6ccfff6   Vineet Gupta   ARCv2: Support fo...
115
116
  
  endchoice
cfdbc2e16   Vineet Gupta   ARC: Build system...
117
118
119
120
  menu "ARC CPU Configuration"
  
  choice
  	prompt "ARC Core"
1f6ccfff6   Vineet Gupta   ARCv2: Support fo...
121
122
123
124
  	default ARC_CPU_770 if ISA_ARCOMPACT
  	default ARC_CPU_HS if ISA_ARCV2
  
  if ISA_ARCOMPACT
cfdbc2e16   Vineet Gupta   ARC: Build system...
125
126
127
  
  config ARC_CPU_750D
  	bool "ARC750D"
14a0abfc4   Vineet Gupta   ARC: Kconfig: bet...
128
  	select ARC_CANT_LLSC
cfdbc2e16   Vineet Gupta   ARC: Build system...
129
130
131
132
133
  	help
  	  Support for ARC750 core
  
  config ARC_CPU_770
  	bool "ARC770"
742f8af6c   Vineet Gupta   ARC: [kbuild] Ret...
134
  	select ARC_HAS_SWAPE
cfdbc2e16   Vineet Gupta   ARC: Build system...
135
136
137
138
139
140
141
  	help
  	  Support for ARC770 core introduced with Rel 4.10 (Summer 2011)
  	  This core has a bunch of cool new features:
  	  -MMU-v3: Variable Page Sz (4k, 8k, 16k), bigger J-TLB (128x4)
                     Shared Address Spaces (for sharing TLB entires in MMU)
  	  -Caches: New Prog Model, Region Flush
  	  -Insns: endian swap, load-locked/store-conditional, time-stamp-ctr
1f6ccfff6   Vineet Gupta   ARCv2: Support fo...
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
  endif	#ISA_ARCOMPACT
  
  config ARC_CPU_HS
  	bool "ARC-HS"
  	depends on ISA_ARCV2
  	help
  	  Support for ARC HS38x Cores based on ARCv2 ISA
  	  The notable features are:
  	    - SMP configurations of upto 4 core with coherency
  	    - Optional L2 Cache and IO-Coherency
  	    - Revised Interrupt Architecture (multiple priorites, reg banks,
  	        auto stack switch, auto regfile save/restore)
  	    - MMUv4 (PIPT dcache, Huge Pages)
  	    - Instructions for
  		* 64bit load/store: LDD, STD
  		* Hardware assisted divide/remainder: DIV, REM
  		* Function prologue/epilogue: ENTER_S, LEAVE_S
  		* IRQ enable/disable: CLRI, SETI
  		* pop count: FFS, FLS
  		* SETcc, BMSKN, XBFU...
cfdbc2e16   Vineet Gupta   ARC: Build system...
162
163
164
165
166
167
168
  endchoice
  
  config CPU_BIG_ENDIAN
  	bool "Enable Big Endian Mode"
  	default n
  	help
  	  Build kernel for Big Endian Mode of ARC CPU
41195d236   Vineet Gupta   ARC: SMP support
169
  config SMP
82fea5a1b   Vineet Gupta   ARCv2: SMP: Suppo...
170
  	bool "Symmetric Multi-Processing"
41195d236   Vineet Gupta   ARC: SMP support
171
  	default n
82fea5a1b   Vineet Gupta   ARCv2: SMP: Suppo...
172
  	select ARC_MCIP if ISA_ARCV2
41195d236   Vineet Gupta   ARC: SMP support
173
  	help
82fea5a1b   Vineet Gupta   ARCv2: SMP: Suppo...
174
  	  This enables support for systems with more than one CPU.
41195d236   Vineet Gupta   ARC: SMP support
175
176
  
  if SMP
41195d236   Vineet Gupta   ARC: SMP support
177
  config NR_CPUS
3aa4f80e4   Noam Camus   ARC: [SMP] enlarg...
178
179
  	int "Maximum number of CPUs (2-4096)"
  	range 2 4096
82fea5a1b   Vineet Gupta   ARCv2: SMP: Suppo...
180
  	default "4"
3971cdc20   Vineet Gupta   ARC: boot: Suppor...
181
182
183
184
185
186
187
188
189
  config ARC_SMP_HALT_ON_RESET
  	bool "Enable Halt-on-reset boot mode"
  	default y if ARC_UBOOT_SUPPORT
  	help
  	  In SMP configuration cores can be configured as Halt-on-reset
  	  or they could all start at same time. For Halt-on-reset, non
  	  masters are parked until Master kicks them so they can start of
  	  at designated entry point. For other case, all jump to common
  	  entry point and spin wait for Master's signal.
82fea5a1b   Vineet Gupta   ARCv2: SMP: Suppo...
190
  endif	#SMP
41195d236   Vineet Gupta   ARC: SMP support
191

3ce0fefc5   Vineet Gupta   ARCv2: intc: unta...
192
193
194
195
196
197
198
199
  config ARC_MCIP
  	bool "ARConnect Multicore IP (MCIP) Support "
  	depends on ISA_ARCV2
  	default y if SMP
  	help
  	  This IP block enables SMP in ARC-HS38 cores.
  	  It provides for cross-core interrupts, multi-core debug
  	  hardware semaphores, shared memory,....
cfdbc2e16   Vineet Gupta   ARC: Build system...
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
  menuconfig ARC_CACHE
  	bool "Enable Cache Support"
  	default y
  
  if ARC_CACHE
  
  config ARC_CACHE_LINE_SHIFT
  	int "Cache Line Length (as power of 2)"
  	range 5 7
  	default "6"
  	help
  	  Starting with ARC700 4.9, Cache line length is configurable,
  	  This option specifies "N", with Line-len = 2 power N
  	  So line lengths of 32, 64, 128 are specified by 5,6,7, respectively
  	  Linux only supports same line lengths for I and D caches.
  
  config ARC_HAS_ICACHE
  	bool "Use Instruction Cache"
  	default y
  
  config ARC_HAS_DCACHE
  	bool "Use Data Cache"
  	default y
  
  config ARC_CACHE_PAGES
  	bool "Per Page Cache Control"
  	default y
  	depends on ARC_HAS_ICACHE || ARC_HAS_DCACHE
  	help
  	  This can be used to over-ride the global I/D Cache Enable on a
  	  per-page basis (but only for pages accessed via MMU such as
  	  Kernel Virtual address or User Virtual Address)
  	  TLB entries have a per-page Cache Enable Bit.
  	  Note that Global I/D ENABLE + Per Page DISABLE works but corollary
  	  Global DISABLE + Per Page ENABLE won't work
4102b5339   Vineet Gupta   ARC: [mm] Aliasin...
235
236
  config ARC_CACHE_VIPT_ALIASING
  	bool "Support VIPT Aliasing D$"
d1f317d82   Vineet Gupta   ARCv2: MMUv4: cac...
237
  	depends on ARC_HAS_DCACHE && ISA_ARCOMPACT
4102b5339   Vineet Gupta   ARC: [mm] Aliasin...
238
  	default n
cfdbc2e16   Vineet Gupta   ARC: Build system...
239
  endif	#ARC_CACHE
8b5850f8a   Vineet Gupta   ARC: Support for ...
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
  config ARC_HAS_ICCM
  	bool "Use ICCM"
  	help
  	  Single Cycle RAMS to store Fast Path Code
  	default n
  
  config ARC_ICCM_SZ
  	int "ICCM Size in KB"
  	default "64"
  	depends on ARC_HAS_ICCM
  
  config ARC_HAS_DCCM
  	bool "Use DCCM"
  	help
  	  Single Cycle RAMS to store Fast Path Data
  	default n
  
  config ARC_DCCM_SZ
  	int "DCCM Size in KB"
  	default "64"
  	depends on ARC_HAS_DCCM
  
  config ARC_DCCM_BASE
  	hex "DCCM map address"
  	default "0xA0000000"
  	depends on ARC_HAS_DCCM
cfdbc2e16   Vineet Gupta   ARC: Build system...
266
  choice
1f6ccfff6   Vineet Gupta   ARCv2: Support fo...
267
  	prompt "MMU Version"
cfdbc2e16   Vineet Gupta   ARC: Build system...
268
269
  	default ARC_MMU_V3 if ARC_CPU_770
  	default ARC_MMU_V2 if ARC_CPU_750D
d7a512bfe   Vineet Gupta   ARCv2: MMUv4: TLB...
270
  	default ARC_MMU_V4 if ARC_CPU_HS
cfdbc2e16   Vineet Gupta   ARC: Build system...
271

c583ee4fb   Vineet Gupta   ARC: mm: MMU v1.....
272
  if ISA_ARCOMPACT
cfdbc2e16   Vineet Gupta   ARC: Build system...
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
  config ARC_MMU_V1
  	bool "MMU v1"
  	help
  	  Orig ARC700 MMU
  
  config ARC_MMU_V2
  	bool "MMU v2"
  	help
  	  Fixed the deficiency of v1 - possible thrashing in memcpy sceanrio
  	  when 2 D-TLB and 1 I-TLB entries index into same 2way set.
  
  config ARC_MMU_V3
  	bool "MMU v3"
  	depends on ARC_CPU_770
  	help
  	  Introduced with ARC700 4.10: New Features
  	  Variable Page size (1k-16k), var JTLB size 128 x (2 or 4)
  	  Shared Address Spaces (SASID)
c583ee4fb   Vineet Gupta   ARC: mm: MMU v1.....
291
  endif
d7a512bfe   Vineet Gupta   ARCv2: MMUv4: TLB...
292
293
294
  config ARC_MMU_V4
  	bool "MMU v4"
  	depends on ISA_ARCV2
cfdbc2e16   Vineet Gupta   ARC: Build system...
295
296
297
298
299
300
301
302
303
304
305
306
307
308
  endchoice
  
  
  choice
  	prompt "MMU Page Size"
  	default ARC_PAGE_SIZE_8K
  
  config ARC_PAGE_SIZE_8K
  	bool "8KB"
  	help
  	  Choose between 8k vs 16k
  
  config ARC_PAGE_SIZE_16K
  	bool "16KB"
450ed0db0   Alexey Brodkin   ARCv2: allow sele...
309
  	depends on ARC_MMU_V3 || ARC_MMU_V4
cfdbc2e16   Vineet Gupta   ARC: Build system...
310
311
312
  
  config ARC_PAGE_SIZE_4K
  	bool "4KB"
450ed0db0   Alexey Brodkin   ARCv2: allow sele...
313
  	depends on ARC_MMU_V3 || ARC_MMU_V4
cfdbc2e16   Vineet Gupta   ARC: Build system...
314
315
  
  endchoice
37eda9df5   Vineet Gupta   ARC: mm: Introduc...
316
317
318
319
320
321
322
323
324
325
326
327
  choice
  	prompt "MMU Super Page Size"
  	depends on ISA_ARCV2 && TRANSPARENT_HUGEPAGE
  	default ARC_HUGEPAGE_2M
  
  config ARC_HUGEPAGE_2M
  	bool "2MB"
  
  config ARC_HUGEPAGE_16M
  	bool "16MB"
  
  endchoice
26f9d5fd8   Vineet Gupta   ARC: support HIGH...
328
329
  config NODES_SHIFT
  	int "Maximum NUMA Nodes (as a power of 2)"
3528f84f7   Noam Camus   ARC: CONFIG_NODES...
330
331
  	default "0" if !DISCONTIGMEM
  	default "1" if DISCONTIGMEM
26f9d5fd8   Vineet Gupta   ARC: support HIGH...
332
333
334
335
  	depends on NEED_MULTIPLE_NODES
  	---help---
  	  Accessing memory beyond 1GB (with or w/o PAE) requires 2 memory
  	  zones.
1f6ccfff6   Vineet Gupta   ARCv2: Support fo...
336
  if ISA_ARCOMPACT
4788a5942   Vineet Gupta   ARC: Support for ...
337
  config ARC_COMPACT_IRQ_LEVELS
60f2b4b8a   Vineet Gupta   ARC: [intc-compac...
338
  	bool "Setup Timer IRQ as high Priority"
4788a5942   Vineet Gupta   ARC: Support for ...
339
  	default n
41195d236   Vineet Gupta   ARC: SMP support
340
  	# if SMP, LV2 enabled ONLY if ARC implementation has LV2 re-entrancy
60f2b4b8a   Vineet Gupta   ARC: [intc-compac...
341
  	depends on !SMP
4788a5942   Vineet Gupta   ARC: Support for ...
342

cfdbc2e16   Vineet Gupta   ARC: Build system...
343
344
345
346
347
348
349
350
351
352
  config ARC_FPU_SAVE_RESTORE
  	bool "Enable FPU state persistence across context switch"
  	default n
  	help
  	  Double Precision Floating Point unit had dedictaed regs which
  	  need to be saved/restored across context-switch.
  	  Note that ARC FPU is overly simplistic, unlike say x86, which has
  	  hardware pieces to allow software to conditionally save/restore,
  	  based on actual usage of FPU by a task. Thus our implemn does
  	  this for all tasks in system.
1f6ccfff6   Vineet Gupta   ARCv2: Support fo...
353
  endif	#ISA_ARCOMPACT
fbf8e13d3   Vineet Gupta   ARC: [kbuild] All...
354
355
  config ARC_CANT_LLSC
  	def_bool n
cfdbc2e16   Vineet Gupta   ARC: Build system...
356
357
358
  config ARC_HAS_LLSC
  	bool "Insn: LLOCK/SCOND (efficient atomic ops)"
  	default y
14a0abfc4   Vineet Gupta   ARC: Kconfig: bet...
359
  	depends on !ARC_CANT_LLSC
cfdbc2e16   Vineet Gupta   ARC: Build system...
360
361
362
363
  
  config ARC_HAS_SWAPE
  	bool "Insn: SWAPE (endian-swap)"
  	default y
cfdbc2e16   Vineet Gupta   ARC: Build system...
364

1f6ccfff6   Vineet Gupta   ARCv2: Support fo...
365
366
367
368
369
370
371
372
373
  if ISA_ARCV2
  
  config ARC_HAS_LL64
  	bool "Insn: 64bit LDD/STD"
  	help
  	  Enable gcc to generate 64-bit load/store instructions
  	  ISA mandates even/odd registers to allow encoding of two
  	  dest operands with 2 possible source operands.
  	default y
d05a76ab4   Alexey Brodkin   ARCv2: add knob f...
374
375
376
  config ARC_HAS_DIV_REM
  	bool "Insn: div, divu, rem, remu"
  	default y
3d5e80125   Vineet Gupta   ARCv2: entry: sav...
377
378
  config ARC_HAS_ACCL_REGS
  	bool "Reg Pair ACCL:ACCH (FPU and/or MPY > 6)"
edb5e3eeb   Vineet Gupta   ARCv2: [plat-hsdk...
379
  	default y
3d5e80125   Vineet Gupta   ARCv2: entry: sav...
380
381
382
383
  	help
  	  Depending on the configuration, CPU can contain accumulator reg-pair
  	  (also referred to as r58:r59). These can also be used by gcc as GPR so
  	  kernel needs to save/restore per process
1f6ccfff6   Vineet Gupta   ARCv2: Support fo...
384
  endif	# ISA_ARCV2
cfdbc2e16   Vineet Gupta   ARC: Build system...
385
  endmenu   # "ARC CPU Configuration"
cfdbc2e16   Vineet Gupta   ARC: Build system...
386
  config LINUX_LINK_BASE
9ed68785f   Eugeniy Paltsev   ARC: mm: Decouple...
387
  	hex "Kernel link address"
cfdbc2e16   Vineet Gupta   ARC: Build system...
388
389
390
391
392
393
394
395
396
397
  	default "0x80000000"
  	help
  	  ARC700 divides the 32 bit phy address space into two equal halves
  	  -Lower 2G (0 - 0x7FFF_FFFF ) is user virtual, translated by MMU
  	  -Upper 2G (0x8000_0000 onwards) is untranslated, for kernel
  	  Typically Linux kernel is linked at the start of untransalted addr,
  	  hence the default value of 0x8zs.
  	  However some customers have peripherals mapped at this addr, so
  	  Linux needs to be scooted a bit.
  	  If you don't know what the above means, leave this setting alone.
ff1c0b6a7   Vineet Gupta   ARC: [plat-sim] u...
398
  	  This needs to match memory start address specified in Device Tree
cfdbc2e16   Vineet Gupta   ARC: Build system...
399

9ed68785f   Eugeniy Paltsev   ARC: mm: Decouple...
400
401
402
403
404
405
406
  config LINUX_RAM_BASE
  	hex "RAM base address"
  	default LINUX_LINK_BASE
  	help
  	  By default Linux is linked at base of RAM. However in some special
  	  cases (such as HSDK), Linux can't be linked at start of DDR, hence
  	  this option.
45890f6d3   Vineet Gupta   ARC: mm: HIGHMEM:...
407
408
  config HIGHMEM
  	bool "High Memory Support"
d140b9bfc   Vineet Gupta   ARC: don't enable...
409
  	select ARCH_DISCONTIGMEM_ENABLE
45890f6d3   Vineet Gupta   ARC: mm: HIGHMEM:...
410
411
412
413
  	help
  	  With ARC 2G:2G address split, only upper 2G is directly addressable by
  	  kernel. Enable this to potentially allow access to rest of 2G and PAE
  	  in future
5a364c2a1   Vineet Gupta   ARC: mm: PAE40 su...
414
415
416
417
  config ARC_HAS_PAE40
  	bool "Support for the 40-bit Physical Address Extension"
  	default n
  	depends on ISA_ARCV2
cf4100d1c   Alexey Brodkin   Revert "ARCv2: Al...
418
  	select HIGHMEM
5a364c2a1   Vineet Gupta   ARC: mm: PAE40 su...
419
420
421
422
423
424
425
426
427
  	help
  	  Enable access to physical memory beyond 4G, only supported on
  	  ARC cores with 40 bit Physical Addressing support
  
  config ARCH_PHYS_ADDR_T_64BIT
  	def_bool ARC_HAS_PAE40
  
  config ARCH_DMA_ADDR_T_64BIT
  	bool
f2e3d5539   Vineet Gupta   ARC: dma: reintro...
428
429
  config ARC_PLAT_NEEDS_PHYS_TO_DMA
  	bool
15ca68a99   Noam Camus   ARC: Make vmalloc...
430
431
432
433
434
435
436
437
438
439
  config ARC_KVADDR_SIZE
  	int "Kernel Virtaul Address Space size (MB)"
  	range 0 512
  	default "256"
  	help
  	  The kernel address space is carved out of 256MB of translated address
  	  space for catering to vmalloc, modules, pkmap, fixmap. This however may
  	  not suffice vmalloc requirements of a 4K CPU EZChip system. So allow
  	  this to be stretched to 512 MB (by extending into the reserved
  	  kernel-user gutter)
080c37473   Vineet Gupta   ARC: [optim] Cach...
440
441
442
443
444
445
  config ARC_CURR_IN_REG
  	bool "Dedicate Register r25 for current_task pointer"
  	default y
  	help
  	  This reserved Register R25 to point to Current Task in
  	  kernel mode. This saves memory access for each such access
2e651ea15   Vineet Gupta   ARC: Unaligned ac...
446

1736a56f3   Vineet Gupta   ARC: rename kconf...
447
  config ARC_EMUL_UNALIGNED
2e651ea15   Vineet Gupta   ARC: Unaligned ac...
448
  	bool "Emulate unaligned memory access (userspace only)"
2e651ea15   Vineet Gupta   ARC: Unaligned ac...
449
450
  	select SYSCTL_ARCH_UNALIGN_NO_WARN
  	select SYSCTL_ARCH_UNALIGN_ALLOW
1f6ccfff6   Vineet Gupta   ARCv2: Support fo...
451
  	depends on ISA_ARCOMPACT
2e651ea15   Vineet Gupta   ARC: Unaligned ac...
452
453
454
455
  	help
  	  This enables misaligned 16 & 32 bit memory access from user space.
  	  Use ONLY-IF-ABS-NECESSARY as it will be very slow and also can hide
  	  potential bugs in code
cfdbc2e16   Vineet Gupta   ARC: Build system...
456
457
458
  config HZ
  	int "Timer Frequency"
  	default 100
cbe056f76   Vineet Gupta   ARC: Hostlink Pse...
459
460
461
462
463
464
465
466
  config ARC_METAWARE_HLINK
  	bool "Support for Metaware debugger assisted Host access"
  	default n
  	help
  	  This options allows a Linux userland apps to directly access
  	  host file system (open/creat/read/write etc) with help from
  	  Metaware Debugger. This can come in handy for Linux-host communication
  	  when there is no real usable peripheral such as EMAC.
cfdbc2e16   Vineet Gupta   ARC: Build system...
467
468
469
  menuconfig ARC_DBG
  	bool "ARC debugging"
  	default y
aa6083ed5   Vineet Gupta   ARCv2: SMP: ARCon...
470
  if ARC_DBG
854a0d950   Vineet Gupta   ARC: DWARF2 .debu...
471
472
  config ARC_DW2_UNWIND
  	bool "Enable DWARF specific kernel stack unwind"
854a0d950   Vineet Gupta   ARC: DWARF2 .debu...
473
474
475
476
477
478
479
480
481
482
  	default y
  	select KALLSYMS
  	help
  	  Compiles the kernel with DWARF unwind information and can be used
  	  to get stack backtraces.
  
  	  If you say Y here the resulting kernel image will be slightly larger
  	  but not slower, and it will give very useful debugging information.
  	  If you don't debug the kernel, you can say N, but we may not be able
  	  to solve problems without frame unwind information
cfdbc2e16   Vineet Gupta   ARC: Build system...
483
484
  config ARC_DBG_TLB_PARANOIA
  	bool "Paranoia Checks in Low Level TLB Handlers"
cfdbc2e16   Vineet Gupta   ARC: Build system...
485
  	default n
aa6083ed5   Vineet Gupta   ARCv2: SMP: ARCon...
486
  endif
036b2c566   Vineet Gupta   ARC: explicit'ify...
487
488
489
490
491
492
493
494
495
496
497
  config ARC_UBOOT_SUPPORT
  	bool "Support uboot arg Handling"
  	default n
  	help
  	  ARC Linux by default checks for uboot provided args as pointers to
  	  external cmdline or DTB. This however breaks in absence of uboot,
  	  when booting from Metaware debugger directly, as the registers are
  	  not zeroed out on reset by mdb and/or ARCv2 based cores. The bogus
  	  registers look like uboot args to kernel which then chokes.
  	  So only enable the uboot arg checking/processing if users are sure
  	  of uboot being in play.
999159a53   Vineet Gupta   ARC: [DeviceTree]...
498
499
500
501
502
  config ARC_BUILTIN_DTB_NAME
  	string "Built in DTB"
  	help
  	  Set the name of the DTB to embed in the vmlinux binary
  	  Leaving it blank selects the minimal "skeleton" dtb
cfdbc2e16   Vineet Gupta   ARC: Build system...
503
  source "kernel/Kconfig.preempt"
5628832f4   Vineet Gupta   ARC: [kbuild] Inc...
504
505
506
  menu "Executable file formats"
  source "fs/Kconfig.binfmt"
  endmenu
cfdbc2e16   Vineet Gupta   ARC: Build system...
507
508
509
  endmenu	 # "ARC Architecture Configuration"
  
  source "mm/Kconfig"
37eda9df5   Vineet Gupta   ARC: mm: Introduc...
510
511
512
513
514
  
  config FORCE_MAX_ZONEORDER
  	int "Maximum zone order"
  	default "12" if ARC_HUGEPAGE_16M
  	default "11"
cfdbc2e16   Vineet Gupta   ARC: Build system...
515
516
  source "net/Kconfig"
  source "drivers/Kconfig"
c1678ffcd   Joao Pinto   ARC: Add PCI support
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
  
  menu "Bus Support"
  
  config PCI
  	bool "PCI support" if MIGHT_HAVE_PCI
  	help
  	  PCI is the name of a bus system, i.e., the way the CPU talks to
  	  the other stuff inside your box.  Find out if your board/platform
  	  has PCI.
  
  	  Note: PCIe support for Synopsys Device will be available only
  	  when HAPS DX is configured with PCIe RC bitmap. If you have PCI,
  	  say Y, otherwise N.
  
  config PCI_SYSCALL
  	def_bool PCI
  
  source "drivers/pci/Kconfig"
c1678ffcd   Joao Pinto   ARC: Add PCI support
535
536
  
  endmenu
cfdbc2e16   Vineet Gupta   ARC: Build system...
537
538
539
540
541
  source "fs/Kconfig"
  source "arch/arc/Kconfig.debug"
  source "security/Kconfig"
  source "crypto/Kconfig"
  source "lib/Kconfig"
996bad6cb   Alexey Brodkin   ARC: add power ma...
542
  source "kernel/power/Kconfig"