• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1config ZONE_DMA
2	def_bool y
3
4config XTENSA
5	def_bool y
6	select ARCH_WANT_FRAME_POINTERS
7	select ARCH_WANT_IPC_PARSE_VERSION
8	select ARCH_WANT_OPTIONAL_GPIOLIB
9	select BUILDTIME_EXTABLE_SORT
10	select CLONE_BACKWARDS
11	select COMMON_CLK
12	select GENERIC_ATOMIC64
13	select GENERIC_CLOCKEVENTS
14	select GENERIC_IRQ_SHOW
15	select GENERIC_PCI_IOMAP
16	select GENERIC_SCHED_CLOCK
17	select HAVE_DMA_API_DEBUG
18	select HAVE_DMA_ATTRS
19	select HAVE_EXIT_THREAD
20	select HAVE_FUNCTION_TRACER
21	select HAVE_FUTEX_CMPXCHG if !MMU && FUTEX
22	select HAVE_IRQ_TIME_ACCOUNTING
23	select HAVE_OPROFILE
24	select HAVE_PERF_EVENTS
25	select IRQ_DOMAIN
26	select MODULES_USE_ELF_RELA
27	select PERF_USE_VMALLOC
28	select VIRT_TO_BUS
29	help
30	  Xtensa processors are 32-bit RISC machines designed by Tensilica
31	  primarily for embedded systems.  These processors are both
32	  configurable and extensible.  The Linux port to the Xtensa
33	  architecture supports all processor configurations and extensions,
34	  with reasonable minimum requirements.  The Xtensa Linux project has
35	  a home page at <http://www.linux-xtensa.org/>.
36
37config RWSEM_XCHGADD_ALGORITHM
38	def_bool y
39
40config GENERIC_HWEIGHT
41	def_bool y
42
43config ARCH_HAS_ILOG2_U32
44	def_bool n
45
46config ARCH_HAS_ILOG2_U64
47	def_bool n
48
49config NO_IOPORT_MAP
50	def_bool n
51
52config HZ
53	int
54	default 100
55
56source "init/Kconfig"
57source "kernel/Kconfig.freezer"
58
59config LOCKDEP_SUPPORT
60	def_bool y
61
62config STACKTRACE_SUPPORT
63	def_bool y
64
65config TRACE_IRQFLAGS_SUPPORT
66	def_bool y
67
68config MMU
69	def_bool n
70
71config VARIANT_IRQ_SWITCH
72	def_bool n
73
74config HAVE_XTENSA_GPIO32
75	def_bool n
76
77menu "Processor type and features"
78
79choice
80	prompt "Xtensa Processor Configuration"
81	default XTENSA_VARIANT_FSF
82
83config XTENSA_VARIANT_FSF
84	bool "fsf - default (not generic) configuration"
85	select MMU
86
87config XTENSA_VARIANT_DC232B
88	bool "dc232b - Diamond 232L Standard Core Rev.B (LE)"
89	select MMU
90	select HAVE_XTENSA_GPIO32
91	help
92	  This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE).
93
94config XTENSA_VARIANT_DC233C
95	bool "dc233c - Diamond 233L Standard Core Rev.C (LE)"
96	select MMU
97	select HAVE_XTENSA_GPIO32
98	help
99	  This variant refers to Tensilica's Diamond 233L Standard core Rev.C (LE).
100
101config XTENSA_VARIANT_CUSTOM
102	bool "Custom Xtensa processor configuration"
103	select HAVE_XTENSA_GPIO32
104	help
105	  Select this variant to use a custom Xtensa processor configuration.
106	  You will be prompted for a processor variant CORENAME.
107endchoice
108
109config XTENSA_VARIANT_CUSTOM_NAME
110	string "Xtensa Processor Custom Core Variant Name"
111	depends on XTENSA_VARIANT_CUSTOM
112	help
113	  Provide the name of a custom Xtensa processor variant.
114	  This CORENAME selects arch/xtensa/variant/CORENAME.
115	  Dont forget you have to select MMU if you have one.
116
117config XTENSA_VARIANT_NAME
118	string
119	default "dc232b"			if XTENSA_VARIANT_DC232B
120	default "dc233c"			if XTENSA_VARIANT_DC233C
121	default "fsf"				if XTENSA_VARIANT_FSF
122	default XTENSA_VARIANT_CUSTOM_NAME	if XTENSA_VARIANT_CUSTOM
123
124config XTENSA_VARIANT_MMU
125	bool "Core variant has a Full MMU (TLB, Pages, Protection, etc)"
126	depends on XTENSA_VARIANT_CUSTOM
127	default y
128	select MMU
129	help
130	  Build a Conventional Kernel with full MMU support,
131	  ie: it supports a TLB with auto-loading, page protection.
132
133config XTENSA_VARIANT_HAVE_PERF_EVENTS
134	bool "Core variant has Performance Monitor Module"
135	depends on XTENSA_VARIANT_CUSTOM
136	default n
137	help
138	  Enable if core variant has Performance Monitor Module with
139	  External Registers Interface.
140
141	  If unsure, say N.
142
143config XTENSA_UNALIGNED_USER
144	bool "Unaligned memory access in use space"
145	help
146	  The Xtensa architecture currently does not handle unaligned
147	  memory accesses in hardware but through an exception handler.
148	  Per default, unaligned memory accesses are disabled in user space.
149
150	  Say Y here to enable unaligned memory access in user space.
151
152source "kernel/Kconfig.preempt"
153
154config HAVE_SMP
155	bool "System Supports SMP (MX)"
156	depends on XTENSA_VARIANT_CUSTOM
157	select XTENSA_MX
158	help
159	  This option is use to indicate that the system-on-a-chip (SOC)
160	  supports Multiprocessing. Multiprocessor support implemented above
161	  the CPU core definition and currently needs to be selected manually.
162
163	  Multiprocessor support in implemented with external cache and
164	  interrupt controllers.
165
166	  The MX interrupt distributer adds Interprocessor Interrupts
167	  and causes the IRQ numbers to be increased by 4 for devices
168	  like the open cores ethernet driver and the serial interface.
169
170	  You still have to select "Enable SMP" to enable SMP on this SOC.
171
172config SMP
173	bool "Enable Symmetric multi-processing support"
174	depends on HAVE_SMP
175	select GENERIC_SMP_IDLE_THREAD
176	help
177	  Enabled SMP Software; allows more than one CPU/CORE
178	  to be activated during startup.
179
180config NR_CPUS
181	depends on SMP
182	int "Maximum number of CPUs (2-32)"
183	range 2 32
184	default "4"
185
186config HOTPLUG_CPU
187	bool "Enable CPU hotplug support"
188	depends on SMP
189	help
190	  Say Y here to allow turning CPUs off and on. CPUs can be
191	  controlled through /sys/devices/system/cpu.
192
193	  Say N if you want to disable CPU hotplug.
194
195config INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX
196	bool "Initialize Xtensa MMU inside the Linux kernel code"
197	default y
198	help
199	  Earlier version initialized the MMU in the exception vector
200	  before jumping to _startup in head.S and had an advantage that
201	  it was possible to place a software breakpoint at 'reset' and
202	  then enter your normal kernel breakpoints once the MMU was mapped
203	  to the kernel mappings (0XC0000000).
204
205	  This unfortunately doesn't work for U-Boot and likley also wont
206	  work for using KEXEC to have a hot kernel ready for doing a
207	  KDUMP.
208
209	  So now the MMU is initialized in head.S but it's necessary to
210	  use hardware breakpoints (gdb 'hbreak' cmd) to break at _startup.
211	  xt-gdb can't place a Software Breakpoint in the  0XD region prior
212	  to mapping the MMU and after mapping even if the area of low memory
213	  was mapped gdb wouldn't remove the breakpoint on hitting it as the
214	  PC wouldn't match. Since Hardware Breakpoints are recommended for
215	  Linux configurations it seems reasonable to just assume they exist
216	  and leave this older mechanism for unfortunate souls that choose
217	  not to follow Tensilica's recommendation.
218
219	  Selecting this will cause U-Boot to set the KERNEL Load and Entry
220	  address at 0x00003000 instead of the mapped std of 0xD0003000.
221
222	  If in doubt, say Y.
223
224config HIGHMEM
225	bool "High Memory Support"
226	depends on MMU
227	help
228	  Linux can use the full amount of RAM in the system by
229	  default. However, the default MMUv2 setup only maps the
230	  lowermost 128 MB of memory linearly to the areas starting
231	  at 0xd0000000 (cached) and 0xd8000000 (uncached).
232	  When there are more than 128 MB memory in the system not
233	  all of it can be "permanently mapped" by the kernel.
234	  The physical memory that's not permanently mapped is called
235	  "high memory".
236
237	  If you are compiling a kernel which will never run on a
238	  machine with more than 128 MB total physical RAM, answer
239	  N here.
240
241	  If unsure, say Y.
242
243config FAST_SYSCALL_XTENSA
244	bool "Enable fast atomic syscalls"
245	default n
246	help
247	  fast_syscall_xtensa is a syscall that can make atomic operations
248	  on UP kernel when processor has no s32c1i support.
249
250	  This syscall is deprecated. It may have issues when called with
251	  invalid arguments. It is provided only for backwards compatibility.
252	  Only enable it if your userspace software requires it.
253
254	  If unsure, say N.
255
256config FAST_SYSCALL_SPILL_REGISTERS
257	bool "Enable spill registers syscall"
258	default n
259	help
260	  fast_syscall_spill_registers is a syscall that spills all active
261	  register windows of a calling userspace task onto its stack.
262
263	  This syscall is deprecated. It may have issues when called with
264	  invalid arguments. It is provided only for backwards compatibility.
265	  Only enable it if your userspace software requires it.
266
267	  If unsure, say N.
268
269endmenu
270
271config XTENSA_CALIBRATE_CCOUNT
272	def_bool n
273	help
274	  On some platforms (XT2000, for example), the CPU clock rate can
275	  vary.  The frequency can be determined, however, by measuring
276	  against a well known, fixed frequency, such as an UART oscillator.
277
278config SERIAL_CONSOLE
279	def_bool n
280
281menu "Bus options"
282
283config PCI
284	bool "PCI support"
285	default y
286	help
287	  Find out whether you have a PCI motherboard. PCI is the name of a
288	  bus system, i.e. the way the CPU talks to the other stuff inside
289	  your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
290	  VESA. If you have PCI, say Y, otherwise N.
291
292source "drivers/pci/Kconfig"
293
294endmenu
295
296menu "Platform options"
297
298choice
299	prompt "Xtensa System Type"
300	default XTENSA_PLATFORM_ISS
301
302config XTENSA_PLATFORM_ISS
303	bool "ISS"
304	select XTENSA_CALIBRATE_CCOUNT
305	select SERIAL_CONSOLE
306	help
307	  ISS is an acronym for Tensilica's Instruction Set Simulator.
308
309config XTENSA_PLATFORM_XT2000
310	bool "XT2000"
311	select HAVE_IDE
312	help
313	  XT2000 is the name of Tensilica's feature-rich emulation platform.
314	  This hardware is capable of running a full Linux distribution.
315
316config XTENSA_PLATFORM_XTFPGA
317	bool "XTFPGA"
318	select ETHOC if ETHERNET
319	select PLATFORM_WANT_DEFAULT_MEM
320	select SERIAL_CONSOLE
321	select XTENSA_CALIBRATE_CCOUNT
322	help
323	  XTFPGA is the name of Tensilica board family (LX60, LX110, LX200, ML605).
324	  This hardware is capable of running a full Linux distribution.
325
326endchoice
327
328
329config XTENSA_CPU_CLOCK
330	int "CPU clock rate [MHz]"
331	depends on !XTENSA_CALIBRATE_CCOUNT
332	default 16
333
334config GENERIC_CALIBRATE_DELAY
335	bool "Auto calibration of the BogoMIPS value"
336	help
337	  The BogoMIPS value can easily be derived from the CPU frequency.
338
339config CMDLINE_BOOL
340	bool "Default bootloader kernel arguments"
341
342config CMDLINE
343	string "Initial kernel command string"
344	depends on CMDLINE_BOOL
345	default "console=ttyS0,38400 root=/dev/ram"
346	help
347	  On some architectures (EBSA110 and CATS), there is currently no way
348	  for the boot loader to pass arguments to the kernel. For these
349	  architectures, you should supply some command-line options at build
350	  time by entering them here. As a minimum, you should specify the
351	  memory size and the root device (e.g., mem=64M root=/dev/nfs).
352
353config USE_OF
354	bool "Flattened Device Tree support"
355	select OF
356	select OF_EARLY_FLATTREE
357	help
358	  Include support for flattened device tree machine descriptions.
359
360config BUILTIN_DTB
361	string "DTB to build into the kernel image"
362	depends on OF
363
364config BLK_DEV_SIMDISK
365	tristate "Host file-based simulated block device support"
366	default n
367	depends on XTENSA_PLATFORM_ISS && BLOCK
368	help
369	  Create block devices that map to files in the host file system.
370	  Device binding to host file may be changed at runtime via proc
371	  interface provided the device is not in use.
372
373config BLK_DEV_SIMDISK_COUNT
374	int "Number of host file-based simulated block devices"
375	range 1 10
376	depends on BLK_DEV_SIMDISK
377	default 2
378	help
379	  This is the default minimal number of created block devices.
380	  Kernel/module parameter 'simdisk_count' may be used to change this
381	  value at runtime. More file names (but no more than 10) may be
382	  specified as parameters, simdisk_count grows accordingly.
383
384config SIMDISK0_FILENAME
385	string "Host filename for the first simulated device"
386	depends on BLK_DEV_SIMDISK = y
387	default ""
388	help
389	  Attach a first simdisk to a host file. Conventionally, this file
390	  contains a root file system.
391
392config SIMDISK1_FILENAME
393	string "Host filename for the second simulated device"
394	depends on BLK_DEV_SIMDISK = y && BLK_DEV_SIMDISK_COUNT != 1
395	default ""
396	help
397	  Another simulated disk in a host file for a buildroot-independent
398	  storage.
399
400source "mm/Kconfig"
401
402config FORCE_MAX_ZONEORDER
403	int "Maximum zone order"
404	default "11"
405	help
406	  The kernel memory allocator divides physically contiguous memory
407	  blocks into "zones", where each zone is a power of two number of
408	  pages.  This option selects the largest power of two that the kernel
409	  keeps in the memory allocator.  If you need to allocate very large
410	  blocks of physically contiguous memory, then you may need to
411	  increase this value.
412
413	  This config option is actually maximum order plus one. For example,
414	  a value of 11 means that the largest free memory block is 2^10 pages.
415
416source "drivers/pcmcia/Kconfig"
417
418source "drivers/pci/hotplug/Kconfig"
419
420config PLATFORM_WANT_DEFAULT_MEM
421	def_bool n
422
423config DEFAULT_MEM_START
424	hex "Physical address of the default memory area start"
425	depends on PLATFORM_WANT_DEFAULT_MEM
426	default 0x00000000 if MMU
427	default 0x60000000 if !MMU
428	help
429	  This is a fallback start address of the default memory area, it is
430	  used when no physical memory size is passed through DTB or through
431	  boot parameter from bootloader.
432
433	  In noMMU configuration the following parameters are derived from it:
434	  - kernel load address;
435	  - kernel entry point address;
436	  - relocatable vectors base address;
437	  - uBoot load address;
438	  - TASK_SIZE.
439
440	  If unsure, leave the default value here.
441
442config DEFAULT_MEM_SIZE
443	hex "Maximal size of the default memory area"
444	depends on PLATFORM_WANT_DEFAULT_MEM
445	default 0x04000000
446	help
447	  This is a fallback size of the default memory area, it is used when
448	  no physical memory size is passed through DTB or through boot
449	  parameter from bootloader.
450
451	  It's also used for TASK_SIZE calculation in noMMU configuration.
452
453	  If unsure, leave the default value here.
454
455config XTFPGA_LCD
456	bool "Enable XTFPGA LCD driver"
457	depends on XTENSA_PLATFORM_XTFPGA
458	default n
459	help
460	  There's a 2x16 LCD on most of XTFPGA boards, kernel may output
461	  progress messages there during bootup/shutdown. It may be useful
462	  during board bringup.
463
464	  If unsure, say N.
465
466config XTFPGA_LCD_BASE_ADDR
467	hex "XTFPGA LCD base address"
468	depends on XTFPGA_LCD
469	default "0x0d0c0000"
470	help
471	  Base address of the LCD controller inside KIO region.
472	  Different boards from XTFPGA family have LCD controller at different
473	  addresses. Please consult prototyping user guide for your board for
474	  the correct address. Wrong address here may lead to hardware lockup.
475
476config XTFPGA_LCD_8BIT_ACCESS
477	bool "Use 8-bit access to XTFPGA LCD"
478	depends on XTFPGA_LCD
479	default n
480	help
481	  LCD may be connected with 4- or 8-bit interface, 8-bit access may
482	  only be used with 8-bit interface. Please consult prototyping user
483	  guide for your board for the correct interface width.
484
485endmenu
486
487menu "Executable file formats"
488
489source "fs/Kconfig.binfmt"
490
491endmenu
492
493menu "Power management options"
494
495source "kernel/power/Kconfig"
496
497endmenu
498
499source "net/Kconfig"
500
501source "drivers/Kconfig"
502
503source "fs/Kconfig"
504
505source "arch/xtensa/Kconfig.debug"
506
507source "security/Kconfig"
508
509source "crypto/Kconfig"
510
511source "lib/Kconfig"
512
513
514