44mainmenu "Linux/Xtensa Kernel Configuration"
55
66config FRAME_POINTER
7- bool
8- default n
7+ def_bool n
98
109config ZONE_DMA
11- bool
12- default y
10+ def_bool y
1311
1412config XTENSA
15- bool
16- default y
13+ def_bool y
1714 select HAVE_IDE
1815 help
1916 Xtensa processors are 32-bit RISC machines designed by Tensilica
@@ -24,28 +21,22 @@ config XTENSA
2421 a home page at <http://xtensa.sourceforge.net/>.
2522
2623config RWSEM_XCHGADD_ALGORITHM
27- bool
28- default y
24+ def_bool y
2925
3026config GENERIC_FIND_NEXT_BIT
31- bool
32- default y
27+ def_bool y
3328
3429config GENERIC_HWEIGHT
35- bool
36- default y
30+ def_bool y
3731
3832config GENERIC_HARDIRQS
39- bool
40- default y
33+ def_bool y
4134
4235config ARCH_HAS_ILOG2_U32
43- bool
44- default n
36+ def_bool n
4537
4638config ARCH_HAS_ILOG2_U64
47- bool
48- default n
39+ def_bool n
4940
5041config NO_IOPORT
5142 def_bool y
@@ -57,6 +48,9 @@ config HZ
5748source "init/Kconfig"
5849source "kernel/Kconfig.freezer"
5950
51+ config MMU
52+ def_bool n
53+
6054menu "Processor type and features"
6155
6256choice
@@ -65,38 +59,36 @@ choice
6559
6660config XTENSA_VARIANT_FSF
6761 bool "fsf - default (not generic) configuration"
62+ select MMU
6863
6964config XTENSA_VARIANT_DC232B
7065 bool "dc232b - Diamond 232L Standard Core Rev.B (LE)"
66+ select MMU
7167 help
72- This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE).
68+ This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE).
7369endchoice
7470
75- config MMU
76- bool
77- default y
78-
7971config XTENSA_UNALIGNED_USER
8072 bool "Unaligned memory access in use space"
81- --- help---
82- The Xtensa architecture currently does not handle unaligned
83- memory accesses in hardware but through an exception handler.
84- Per default, unaligned memory accesses are disabled in user space.
73+ help
74+ The Xtensa architecture currently does not handle unaligned
75+ memory accesses in hardware but through an exception handler.
76+ Per default, unaligned memory accesses are disabled in user space.
8577
86- Say Y here to enable unaligned memory access in user space.
78+ Say Y here to enable unaligned memory access in user space.
8779
8880config PREEMPT
8981 bool "Preemptible Kernel"
90- --- help---
91- This option reduces the latency of the kernel when reacting to
92- real-time or interactive events by allowing a low priority process to
93- be preempted even if it is in kernel mode executing a system call.
94- Unfortunately the kernel code has some race conditions if both
95- CONFIG_SMP and CONFIG_PREEMPT are enabled, so this option is
96- currently disabled if you are building an SMP kernel.
82+ help
83+ This option reduces the latency of the kernel when reacting to
84+ real-time or interactive events by allowing a low priority process to
85+ be preempted even if it is in kernel mode executing a system call.
86+ Unfortunately the kernel code has some race conditions if both
87+ CONFIG_SMP and CONFIG_PREEMPT are enabled, so this option is
88+ currently disabled if you are building an SMP kernel.
9789
98- Say Y here if you are building a kernel for a desktop, embedded
99- or real-time system. Say N if you are unsure.
90+ Say Y here if you are building a kernel for a desktop, embedded
91+ or real-time system. Say N if you are unsure.
10092
10193config MATH_EMULATION
10294 bool "Math emulation"
@@ -105,6 +97,32 @@ config MATH_EMULATION
10597
10698endmenu
10799
100+ config XTENSA_CALIBRATE_CCOUNT
101+ def_bool n
102+ help
103+ On some platforms (XT2000, for example), the CPU clock rate can
104+ vary. The frequency can be determined, however, by measuring
105+ against a well known, fixed frequency, such as an UART oscillator.
106+
107+ config SERIAL_CONSOLE
108+ def_bool n
109+
110+ config XTENSA_ISS_NETWORK
111+ def_bool n
112+
113+ menu "Bus options"
114+
115+ config PCI
116+ bool "PCI support"
117+ default y
118+ help
119+ Find out whether you have a PCI motherboard. PCI is the name of a
120+ bus system, i.e. the way the CPU talks to the other stuff inside
121+ your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
122+ VESA. If you have PCI, say Y, otherwise N.
123+
124+ source "drivers/pci/Kconfig"
125+
108126menu "Platform options"
109127
110128choice
@@ -113,33 +131,31 @@ choice
113131
114132config XTENSA_PLATFORM_ISS
115133 bool "ISS"
134+ select XTENSA_CALIBRATE_CCOUNT
135+ select SERIAL_CONSOLE
136+ select XTENSA_ISS_NETWORK
116137 help
117138 ISS is an acronym for Tensilica's Instruction Set Simulator.
118139
119140config XTENSA_PLATFORM_XT2000
120141 bool "XT2000"
142+ select XTENSA_CALIBRATE_CCOUNT
143+ select PCI
121144 help
122145 XT2000 is the name of Tensilica's feature-rich emulation platform.
123146 This hardware is capable of running a full Linux distribution.
124147
125148endchoice
126149
127150
128- config XTENSA_CALIBRATE_CCOUNT
129- bool "Auto calibration of the CPU clock rate"
130- ---help---
131- On some platforms (XT2000, for example), the CPU clock rate can
132- vary. The frequency can be determined, however, by measuring
133- against a well known, fixed frequency, such as an UART oscillator.
134-
135151config XTENSA_CPU_CLOCK
136152 int "CPU clock rate [MHz]"
137153 depends on !XTENSA_CALIBRATE_CCOUNT
138- default "16"
154+ default 16
139155
140156config GENERIC_CALIBRATE_DELAY
141157 bool "Auto calibration of the BogoMIPS value"
142- --- help---
158+ help
143159 The BogoMIPS value can easily be derived from the CPU frequency.
144160
145161config CMDLINE_BOOL
@@ -156,52 +172,27 @@ config CMDLINE
156172 time by entering them here. As a minimum, you should specify the
157173 memory size and the root device (e.g., mem=64M root=/dev/nfs).
158174
159- config SERIAL_CONSOLE
160- bool
161- depends on XTENSA_PLATFORM_ISS
162- default y
163-
164- config XTENSA_ISS_NETWORK
165- bool
166- depends on XTENSA_PLATFORM_ISS
167- default y
168-
169175source "mm/Kconfig"
170176
171177endmenu
172178
173- menu "Bus options"
174-
175- config PCI
176- bool "PCI support" if !XTENSA_PLATFORM_ISS
177- depends on !XTENSA_PLATFORM_ISS
178- default y
179+ config HOTPLUG
180+ bool "Support for hot-pluggable devices"
179181 help
180- Find out whether you have a PCI motherboard. PCI is the name of a
181- bus system, i.e. the way the CPU talks to the other stuff inside
182- your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
183- VESA. If you have PCI, say Y, otherwise N.
184-
185- source "drivers/pci/Kconfig"
182+ Say Y here if you want to plug devices into your computer while
183+ the system is running, and be able to use them quickly. In many
184+ cases, the devices can likewise be unplugged at any time too.
186185
187- config HOTPLUG
186+ One well known example of this is PCMCIA- or PC-cards, credit-card
187+ size devices such as network cards, modems or hard drives which are
188+ plugged into slots found on all modern laptop computers. Another
189+ example, used on modern desktops as well as laptops, is USB.
188190
189- bool "Support for hot-pluggable devices"
190- ---help---
191- Say Y here if you want to plug devices into your computer while
192- the system is running, and be able to use them quickly. In many
193- cases, the devices can likewise be unplugged at any time too.
194-
195- One well known example of this is PCMCIA- or PC-cards, credit-card
196- size devices such as network cards, modems or hard drives which are
197- plugged into slots found on all modern laptop computers. Another
198- example, used on modern desktops as well as laptops, is USB.
199-
200- Enable HOTPLUG and build a modular kernel. Get agent software
201- (from <http://linux-hotplug.sourceforge.net/>) and install it.
202- Then your kernel will automatically call out to a user mode "policy
203- agent" (/sbin/hotplug) to load modules and set up software needed
204- to use devices as you hotplug them.
191+ Enable HOTPLUG and build a modular kernel. Get agent software
192+ (from <http://linux-hotplug.sourceforge.net/>) and install it.
193+ Then your kernel will automatically call out to a user mode "policy
194+ agent" (/sbin/hotplug) to load modules and set up software needed
195+ to use devices as you hotplug them.
205196
206197source "drivers/pcmcia/Kconfig"
207198
@@ -213,9 +204,8 @@ menu "Executable file formats"
213204
214205# only elf supported
215206config KCORE_ELF
216- bool
207+ def_bool y
217208 depends on PROC_FS
218- default y
219209 help
220210 If you enabled support for /proc file system then the file
221211 /proc/kcore will contain the kernel core image in ELF format. This
@@ -240,7 +230,7 @@ source "fs/Kconfig"
240230menu "Xtensa initrd options"
241231 depends on BLK_DEV_INITRD
242232
243- config EMBEDDED_RAMDISK
233+ config EMBEDDED_RAMDISK
244234 bool "Embed root filesystem ramdisk into the kernel"
245235
246236config EMBEDDED_RAMDISK_IMAGE
0 commit comments