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