xref: /linux/arch/xtensa/Kconfig (revision 615f2e5c531bc57d5a190f321d697988e950ae4d)
1config FRAME_POINTER
2	def_bool n
3
4config ZONE_DMA
5	def_bool y
6
7config XTENSA
8	def_bool y
9	select HAVE_IDE
10	select GENERIC_ATOMIC64
11	select HAVE_GENERIC_HARDIRQS
12	select GENERIC_IRQ_SHOW
13	select GENERIC_CPU_DEVICES
14	select MODULES_USE_ELF_RELA
15	select GENERIC_PCI_IOMAP
16	select ARCH_WANT_IPC_PARSE_VERSION
17	select ARCH_WANT_OPTIONAL_GPIOLIB
18	select CLONE_BACKWARDS
19	select IRQ_DOMAIN
20	select HAVE_OPROFILE
21	help
22	  Xtensa processors are 32-bit RISC machines designed by Tensilica
23	  primarily for embedded systems.  These processors are both
24	  configurable and extensible.  The Linux port to the Xtensa
25	  architecture supports all processor configurations and extensions,
26	  with reasonable minimum requirements.  The Xtensa Linux project has
27	  a home page at <http://www.linux-xtensa.org/>.
28
29config RWSEM_XCHGADD_ALGORITHM
30	def_bool y
31
32config GENERIC_HWEIGHT
33	def_bool y
34
35config GENERIC_GPIO
36	bool
37
38config ARCH_HAS_ILOG2_U32
39	def_bool n
40
41config ARCH_HAS_ILOG2_U64
42	def_bool n
43
44config NO_IOPORT
45	def_bool n
46
47config HZ
48	int
49	default 100
50
51source "init/Kconfig"
52source "kernel/Kconfig.freezer"
53
54config MMU
55	def_bool n
56
57config VARIANT_IRQ_SWITCH
58	def_bool n
59
60menu "Processor type and features"
61
62choice
63	prompt "Xtensa Processor Configuration"
64	default XTENSA_VARIANT_FSF
65
66config XTENSA_VARIANT_FSF
67	bool "fsf - default (not generic) configuration"
68	select MMU
69
70config XTENSA_VARIANT_DC232B
71	bool "dc232b - Diamond 232L Standard Core Rev.B (LE)"
72	select MMU
73	help
74	  This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE).
75
76config XTENSA_VARIANT_DC233C
77	bool "dc233c - Diamond 233L Standard Core Rev.C (LE)"
78	select MMU
79	help
80	  This variant refers to Tensilica's Diamond 233L Standard core Rev.C (LE).
81
82config XTENSA_VARIANT_S6000
83	bool "s6000 - Stretch software configurable processor"
84	select VARIANT_IRQ_SWITCH
85	select ARCH_REQUIRE_GPIOLIB
86	select XTENSA_CALIBRATE_CCOUNT
87endchoice
88
89config XTENSA_UNALIGNED_USER
90	bool "Unaligned memory access in use space"
91	help
92	  The Xtensa architecture currently does not handle unaligned
93	  memory accesses in hardware but through an exception handler.
94	  Per default, unaligned memory accesses are disabled in user space.
95
96	  Say Y here to enable unaligned memory access in user space.
97
98source "kernel/Kconfig.preempt"
99
100config MATH_EMULATION
101	bool "Math emulation"
102	help
103	Can we use information of configuration file?
104
105endmenu
106
107config XTENSA_CALIBRATE_CCOUNT
108	def_bool n
109	help
110	  On some platforms (XT2000, for example), the CPU clock rate can
111	  vary.  The frequency can be determined, however, by measuring
112	  against a well known, fixed frequency, such as an UART oscillator.
113
114config SERIAL_CONSOLE
115	def_bool n
116
117config XTENSA_ISS_NETWORK
118	def_bool n
119
120menu "Bus options"
121
122config PCI
123	bool "PCI support"
124	default y
125	help
126	  Find out whether you have a PCI motherboard. PCI is the name of a
127	  bus system, i.e. the way the CPU talks to the other stuff inside
128	  your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
129	  VESA. If you have PCI, say Y, otherwise N.
130
131source "drivers/pci/Kconfig"
132
133endmenu
134
135menu "Platform options"
136
137choice
138	prompt "Xtensa System Type"
139	default XTENSA_PLATFORM_ISS
140
141config XTENSA_PLATFORM_ISS
142	bool "ISS"
143	depends on TTY
144	select XTENSA_CALIBRATE_CCOUNT
145	select SERIAL_CONSOLE
146	select XTENSA_ISS_NETWORK
147	help
148	  ISS is an acronym for Tensilica's Instruction Set Simulator.
149
150config XTENSA_PLATFORM_XT2000
151	bool "XT2000"
152	help
153	  XT2000 is the name of Tensilica's feature-rich emulation platform.
154	  This hardware is capable of running a full Linux distribution.
155
156config XTENSA_PLATFORM_S6105
157	bool "S6105"
158	select SERIAL_CONSOLE
159	select NO_IOPORT
160
161config XTENSA_PLATFORM_XTFPGA
162	bool "XTFPGA"
163	select SERIAL_CONSOLE
164	select ETHOC
165	select XTENSA_CALIBRATE_CCOUNT
166	help
167	  XTFPGA is the name of Tensilica board family (LX60, LX110, LX200, ML605).
168	  This hardware is capable of running a full Linux distribution.
169
170endchoice
171
172
173config XTENSA_CPU_CLOCK
174	int "CPU clock rate [MHz]"
175	depends on !XTENSA_CALIBRATE_CCOUNT
176	default 16
177
178config GENERIC_CALIBRATE_DELAY
179	bool "Auto calibration of the BogoMIPS value"
180	help
181	  The BogoMIPS value can easily be derived from the CPU frequency.
182
183config CMDLINE_BOOL
184	bool "Default bootloader kernel arguments"
185
186config CMDLINE
187	string "Initial kernel command string"
188	depends on CMDLINE_BOOL
189	default "console=ttyS0,38400 root=/dev/ram"
190	help
191	  On some architectures (EBSA110 and CATS), there is currently no way
192	  for the boot loader to pass arguments to the kernel. For these
193	  architectures, you should supply some command-line options at build
194	  time by entering them here. As a minimum, you should specify the
195	  memory size and the root device (e.g., mem=64M root=/dev/nfs).
196
197config USE_OF
198	bool "Flattened Device Tree support"
199	select OF
200	select OF_EARLY_FLATTREE
201	help
202	  Include support for flattened device tree machine descriptions.
203
204config BUILTIN_DTB
205	string "DTB to build into the kernel image"
206	depends on OF
207
208config BLK_DEV_SIMDISK
209	tristate "Host file-based simulated block device support"
210	default n
211	depends on XTENSA_PLATFORM_ISS
212	help
213	  Create block devices that map to files in the host file system.
214	  Device binding to host file may be changed at runtime via proc
215	  interface provided the device is not in use.
216
217config BLK_DEV_SIMDISK_COUNT
218	int "Number of host file-based simulated block devices"
219	range 1 10
220	depends on BLK_DEV_SIMDISK
221	default 2
222	help
223	  This is the default minimal number of created block devices.
224	  Kernel/module parameter 'simdisk_count' may be used to change this
225	  value at runtime. More file names (but no more than 10) may be
226	  specified as parameters, simdisk_count grows accordingly.
227
228config SIMDISK0_FILENAME
229	string "Host filename for the first simulated device"
230	depends on BLK_DEV_SIMDISK = y
231	default ""
232	help
233	  Attach a first simdisk to a host file. Conventionally, this file
234	  contains a root file system.
235
236config SIMDISK1_FILENAME
237	string "Host filename for the second simulated device"
238	depends on BLK_DEV_SIMDISK = y && BLK_DEV_SIMDISK_COUNT != 1
239	default ""
240	help
241	  Another simulated disk in a host file for a buildroot-independent
242	  storage.
243
244source "mm/Kconfig"
245
246source "drivers/pcmcia/Kconfig"
247
248source "drivers/pci/hotplug/Kconfig"
249
250endmenu
251
252menu "Executable file formats"
253
254# only elf supported
255config KCORE_ELF
256	def_bool y
257        depends on PROC_FS
258        help
259          If you enabled support for /proc file system then the file
260          /proc/kcore will contain the kernel core image in ELF format. This
261          can be used in gdb:
262
263          $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
264
265          This is especially useful if you have compiled the kernel with the
266          "-g" option to preserve debugging information. It is mainly used
267	  for examining kernel data structures on the live kernel.
268
269source "fs/Kconfig.binfmt"
270
271endmenu
272
273source "net/Kconfig"
274
275source "drivers/Kconfig"
276
277source "fs/Kconfig"
278
279source "arch/xtensa/Kconfig.debug"
280
281source "security/Kconfig"
282
283source "crypto/Kconfig"
284
285source "lib/Kconfig"
286
287
288