xref: /linux/arch/xtensa/Kconfig (revision b889fcf63cb62e7fdb7816565e28f44dbe4a76a5)
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 GENERIC_KERNEL_THREAD
17	select GENERIC_KERNEL_EXECVE
18	select ARCH_WANT_OPTIONAL_GPIOLIB
19	select CLONE_BACKWARDS
20	select IRQ_DOMAIN
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://xtensa.sourceforge.net/>.
28
29config RWSEM_XCHGADD_ALGORITHM
30	def_bool y
31
32config GENERIC_HWEIGHT
33	def_bool y
34
35config GENERIC_GPIO
36	def_bool y
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_S6000
77	bool "s6000 - Stretch software configurable processor"
78	select VARIANT_IRQ_SWITCH
79	select ARCH_REQUIRE_GPIOLIB
80	select XTENSA_CALIBRATE_CCOUNT
81endchoice
82
83config XTENSA_UNALIGNED_USER
84	bool "Unaligned memory access in use space"
85	help
86	  The Xtensa architecture currently does not handle unaligned
87	  memory accesses in hardware but through an exception handler.
88	  Per default, unaligned memory accesses are disabled in user space.
89
90	  Say Y here to enable unaligned memory access in user space.
91
92source "kernel/Kconfig.preempt"
93
94config MATH_EMULATION
95	bool "Math emulation"
96	help
97	Can we use information of configuration file?
98
99endmenu
100
101config XTENSA_CALIBRATE_CCOUNT
102	def_bool n
103	help
104	  On some platforms (XT2000, for example), the CPU clock rate can
105	  vary.  The frequency can be determined, however, by measuring
106	  against a well known, fixed frequency, such as an UART oscillator.
107
108config SERIAL_CONSOLE
109	def_bool n
110
111config XTENSA_ISS_NETWORK
112	def_bool n
113
114menu "Bus options"
115
116config PCI
117	bool "PCI support"
118	default y
119	help
120	  Find out whether you have a PCI motherboard. PCI is the name of a
121	  bus system, i.e. the way the CPU talks to the other stuff inside
122	  your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
123	  VESA. If you have PCI, say Y, otherwise N.
124
125source "drivers/pci/Kconfig"
126
127endmenu
128
129menu "Platform options"
130
131choice
132	prompt "Xtensa System Type"
133	default XTENSA_PLATFORM_ISS
134
135config XTENSA_PLATFORM_ISS
136	bool "ISS"
137	select XTENSA_CALIBRATE_CCOUNT
138	select SERIAL_CONSOLE
139	select XTENSA_ISS_NETWORK
140	help
141	  ISS is an acronym for Tensilica's Instruction Set Simulator.
142
143config XTENSA_PLATFORM_XT2000
144	bool "XT2000"
145	help
146	  XT2000 is the name of Tensilica's feature-rich emulation platform.
147	  This hardware is capable of running a full Linux distribution.
148
149config XTENSA_PLATFORM_S6105
150	bool "S6105"
151	select SERIAL_CONSOLE
152	select NO_IOPORT
153
154config XTENSA_PLATFORM_XTFPGA
155	bool "XTFPGA"
156	select SERIAL_CONSOLE
157	select ETHOC
158	select XTENSA_CALIBRATE_CCOUNT
159	help
160	  XTFPGA is the name of Tensilica board family (LX60, LX110, LX200, ML605).
161	  This hardware is capable of running a full Linux distribution.
162
163endchoice
164
165
166config XTENSA_CPU_CLOCK
167	int "CPU clock rate [MHz]"
168	depends on !XTENSA_CALIBRATE_CCOUNT
169	default 16
170
171config GENERIC_CALIBRATE_DELAY
172	bool "Auto calibration of the BogoMIPS value"
173	help
174	  The BogoMIPS value can easily be derived from the CPU frequency.
175
176config CMDLINE_BOOL
177	bool "Default bootloader kernel arguments"
178
179config CMDLINE
180	string "Initial kernel command string"
181	depends on CMDLINE_BOOL
182	default "console=ttyS0,38400 root=/dev/ram"
183	help
184	  On some architectures (EBSA110 and CATS), there is currently no way
185	  for the boot loader to pass arguments to the kernel. For these
186	  architectures, you should supply some command-line options at build
187	  time by entering them here. As a minimum, you should specify the
188	  memory size and the root device (e.g., mem=64M root=/dev/nfs).
189
190config USE_OF
191	bool "Flattened Device Tree support"
192	select OF
193	select OF_EARLY_FLATTREE
194	help
195	  Include support for flattened device tree machine descriptions.
196
197config BUILTIN_DTB
198	string "DTB to build into the kernel image"
199	depends on OF
200
201source "mm/Kconfig"
202
203source "drivers/pcmcia/Kconfig"
204
205source "drivers/pci/hotplug/Kconfig"
206
207endmenu
208
209menu "Executable file formats"
210
211# only elf supported
212config KCORE_ELF
213	def_bool y
214        depends on PROC_FS
215        help
216          If you enabled support for /proc file system then the file
217          /proc/kcore will contain the kernel core image in ELF format. This
218          can be used in gdb:
219
220          $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
221
222          This is especially useful if you have compiled the kernel with the
223          "-g" option to preserve debugging information. It is mainly used
224	  for examining kernel data structures on the live kernel.
225
226source "fs/Kconfig.binfmt"
227
228endmenu
229
230source "net/Kconfig"
231
232source "drivers/Kconfig"
233
234source "fs/Kconfig"
235
236source "arch/xtensa/Kconfig.debug"
237
238source "security/Kconfig"
239
240source "crypto/Kconfig"
241
242source "lib/Kconfig"
243
244
245