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