xtensa: add device trees support
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / xtensa / Kconfig
CommitLineData
8e1a6dd2 1config FRAME_POINTER
35f9cd08 2 def_bool n
8e1a6dd2 3
66701b14 4config ZONE_DMA
35f9cd08 5 def_bool y
66701b14 6
8e1a6dd2 7config XTENSA
35f9cd08 8 def_bool y
ec7748b5 9 select HAVE_IDE
c66af411 10 select GENERIC_ATOMIC64
3b190a4a 11 select HAVE_GENERIC_HARDIRQS
47a5d9dc 12 select GENERIC_IRQ_SHOW
9f13a1fd 13 select GENERIC_CPU_DEVICES
d38efc1f
MF
14 select MODULES_USE_ELF_RELA
15 select GENERIC_PCI_IOMAP
3306a726 16 select GENERIC_KERNEL_THREAD
f0a1bf08 17 select GENERIC_KERNEL_EXECVE
6ed65f37 18 select ARCH_WANT_OPTIONAL_GPIOLIB
3e41f9ba 19 select CLONE_BACKWARDS
2206d5dd 20 select IRQ_DOMAIN
8e1a6dd2
CZ
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
8e1a6dd2 29config RWSEM_XCHGADD_ALGORITHM
35f9cd08 30 def_bool y
8e1a6dd2 31
d4337aa5 32config GENERIC_HWEIGHT
35f9cd08 33 def_bool y
d4337aa5 34
000af2c5
JW
35config GENERIC_GPIO
36 def_bool y
37
f0d1b0b3 38config ARCH_HAS_ILOG2_U32
35f9cd08 39 def_bool n
f0d1b0b3
DH
40
41config ARCH_HAS_ILOG2_U64
35f9cd08 42 def_bool n
f0d1b0b3 43
5ea81769 44config NO_IOPORT
d046f77e 45 def_bool n
5ea81769 46
bdc80787
PA
47config HZ
48 int
49 default 100
50
8e1a6dd2 51source "init/Kconfig"
dc52ddc0 52source "kernel/Kconfig.freezer"
8e1a6dd2 53
35f9cd08
JW
54config MMU
55 def_bool n
56
4c0d2141
JW
57config VARIANT_IRQ_SWITCH
58 def_bool n
59
8e1a6dd2
CZ
60menu "Processor type and features"
61
62choice
63 prompt "Xtensa Processor Configuration"
173d6681 64 default XTENSA_VARIANT_FSF
8e1a6dd2 65
173d6681 66config XTENSA_VARIANT_FSF
0025427e 67 bool "fsf - default (not generic) configuration"
35f9cd08 68 select MMU
0025427e
CZ
69
70config XTENSA_VARIANT_DC232B
71 bool "dc232b - Diamond 232L Standard Core Rev.B (LE)"
35f9cd08 72 select MMU
0025427e 73 help
35f9cd08 74 This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE).
000af2c5
JW
75
76config XTENSA_VARIANT_S6000
77 bool "s6000 - Stretch software configurable processor"
78 select VARIANT_IRQ_SWITCH
79 select ARCH_REQUIRE_GPIOLIB
b070a03f 80 select XTENSA_CALIBRATE_CCOUNT
8e1a6dd2
CZ
81endchoice
82
8e1a6dd2
CZ
83config XTENSA_UNALIGNED_USER
84 bool "Unaligned memory access in use space"
35f9cd08
JW
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.
8e1a6dd2 89
35f9cd08 90 Say Y here to enable unaligned memory access in user space.
8e1a6dd2 91
bd96efe1 92source "kernel/Kconfig.preempt"
8e1a6dd2
CZ
93
94config MATH_EMULATION
95 bool "Math emulation"
96 help
97 Can we use information of configuration file?
98
8e1a6dd2
CZ
99endmenu
100
35f9cd08
JW
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
35e71f90
CZ
127endmenu
128
8e1a6dd2
CZ
129menu "Platform options"
130
131choice
132 prompt "Xtensa System Type"
133 default XTENSA_PLATFORM_ISS
134
135config XTENSA_PLATFORM_ISS
136 bool "ISS"
35f9cd08
JW
137 select XTENSA_CALIBRATE_CCOUNT
138 select SERIAL_CONSOLE
139 select XTENSA_ISS_NETWORK
8e1a6dd2
CZ
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
f82e939f
JW
149config XTENSA_PLATFORM_S6105
150 bool "S6105"
151 select SERIAL_CONSOLE
d046f77e 152 select NO_IOPORT
f82e939f 153
8e1a6dd2
CZ
154endchoice
155
156
8e1a6dd2
CZ
157config XTENSA_CPU_CLOCK
158 int "CPU clock rate [MHz]"
159 depends on !XTENSA_CALIBRATE_CCOUNT
35f9cd08 160 default 16
8e1a6dd2
CZ
161
162config GENERIC_CALIBRATE_DELAY
163 bool "Auto calibration of the BogoMIPS value"
35f9cd08 164 help
82300bf4 165 The BogoMIPS value can easily be derived from the CPU frequency.
8e1a6dd2
CZ
166
167config CMDLINE_BOOL
168 bool "Default bootloader kernel arguments"
169
170config CMDLINE
171 string "Initial kernel command string"
172 depends on CMDLINE_BOOL
173 default "console=ttyS0,38400 root=/dev/ram"
174 help
175 On some architectures (EBSA110 and CATS), there is currently no way
176 for the boot loader to pass arguments to the kernel. For these
177 architectures, you should supply some command-line options at build
178 time by entering them here. As a minimum, you should specify the
179 memory size and the root device (e.g., mem=64M root=/dev/nfs).
180
da844a81
MF
181config USE_OF
182 bool "Flattened Device Tree support"
183 select OF
184 select OF_EARLY_FLATTREE
185 help
186 Include support for flattened device tree machine descriptions.
187
188config BUILTIN_DTB
189 string "DTB to build into the kernel image"
190 depends on OF
191
82300bf4
CZ
192source "mm/Kconfig"
193
8e1a6dd2
CZ
194source "drivers/pcmcia/Kconfig"
195
196source "drivers/pci/hotplug/Kconfig"
197
198endmenu
199
cab00891 200menu "Executable file formats"
8e1a6dd2
CZ
201
202# only elf supported
203config KCORE_ELF
35f9cd08 204 def_bool y
8e1a6dd2 205 depends on PROC_FS
8e1a6dd2
CZ
206 help
207 If you enabled support for /proc file system then the file
208 /proc/kcore will contain the kernel core image in ELF format. This
209 can be used in gdb:
210
211 $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
212
213 This is especially useful if you have compiled the kernel with the
214 "-g" option to preserve debugging information. It is mainly used
215 for examining kernel data structures on the live kernel.
216
217source "fs/Kconfig.binfmt"
218
219endmenu
220
d5950b43
SR
221source "net/Kconfig"
222
8e1a6dd2
CZ
223source "drivers/Kconfig"
224
225source "fs/Kconfig"
226
8e1a6dd2
CZ
227source "arch/xtensa/Kconfig.debug"
228
229source "security/Kconfig"
230
231source "crypto/Kconfig"
232
233source "lib/Kconfig"
234
235