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