Skip to content

Commit 4e76c5c

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/czankel/xtensa-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/czankel/xtensa-2.6: (21 commits) xtensa: we don't need to include asm/io.h xtensa: only build platform or variant if they contain a Makefile xtensa: make startup code discardable xtensa: ccount clocksource xtensa: remove platform rtc hooks xtensa: use generic sched_clock() xtensa: platform: s6105 xtensa: let platform override KERNELOFFSET xtensa: s6000 variant xtensa: s6000 variant core definitions xtensa: variant irq set callbacks xtensa: variant-specific code xtensa: nommu support xtensa: add flat support xtensa: enforce slab alignment to maximum register width xtensa: cope with ram beginning at higher addresses xtensa: don't make bootmem bitmap larger than required xtensa: fix init_bootmem_node() argument order xtensa: use correct stack pointer for stack traces xtensa: beat Kconfig into shape ...
2 parents b983471 + 65127d2 commit 4e76c5c

45 files changed

Lines changed: 2466 additions & 306 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/xtensa/Kconfig‎

Lines changed: 96 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44
mainmenu "Linux/Xtensa Kernel Configuration"
55

66
config FRAME_POINTER
7-
bool
8-
default n
7+
def_bool n
98

109
config ZONE_DMA
11-
bool
12-
default y
10+
def_bool y
1311

1412
config 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,25 @@ config XTENSA
2421
a home page at <http://xtensa.sourceforge.net/>.
2522

2623
config RWSEM_XCHGADD_ALGORITHM
27-
bool
28-
default y
24+
def_bool y
2925

3026
config GENERIC_FIND_NEXT_BIT
31-
bool
32-
default y
27+
def_bool y
3328

3429
config GENERIC_HWEIGHT
35-
bool
36-
default y
30+
def_bool y
3731

3832
config GENERIC_HARDIRQS
39-
bool
40-
default y
33+
def_bool y
34+
35+
config GENERIC_GPIO
36+
def_bool y
4137

4238
config ARCH_HAS_ILOG2_U32
43-
bool
44-
default n
39+
def_bool n
4540

4641
config ARCH_HAS_ILOG2_U64
47-
bool
48-
default n
42+
def_bool n
4943

5044
config NO_IOPORT
5145
def_bool y
@@ -54,9 +48,18 @@ config HZ
5448
int
5549
default 100
5650

51+
config GENERIC_TIME
52+
def_bool y
53+
5754
source "init/Kconfig"
5855
source "kernel/Kconfig.freezer"
5956

57+
config MMU
58+
def_bool n
59+
60+
config VARIANT_IRQ_SWITCH
61+
def_bool n
62+
6063
menu "Processor type and features"
6164

6265
choice
@@ -65,38 +68,41 @@ choice
6568

6669
config XTENSA_VARIANT_FSF
6770
bool "fsf - default (not generic) configuration"
71+
select MMU
6872

6973
config XTENSA_VARIANT_DC232B
7074
bool "dc232b - Diamond 232L Standard Core Rev.B (LE)"
75+
select MMU
7176
help
72-
This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE).
73-
endchoice
77+
This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE).
7478

75-
config MMU
76-
bool
77-
default y
79+
config XTENSA_VARIANT_S6000
80+
bool "s6000 - Stretch software configurable processor"
81+
select VARIANT_IRQ_SWITCH
82+
select ARCH_REQUIRE_GPIOLIB
83+
endchoice
7884

7985
config XTENSA_UNALIGNED_USER
8086
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.
87+
help
88+
The Xtensa architecture currently does not handle unaligned
89+
memory accesses in hardware but through an exception handler.
90+
Per default, unaligned memory accesses are disabled in user space.
8591

86-
Say Y here to enable unaligned memory access in user space.
92+
Say Y here to enable unaligned memory access in user space.
8793

8894
config PREEMPT
8995
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.
96+
help
97+
This option reduces the latency of the kernel when reacting to
98+
real-time or interactive events by allowing a low priority process to
99+
be preempted even if it is in kernel mode executing a system call.
100+
Unfortunately the kernel code has some race conditions if both
101+
CONFIG_SMP and CONFIG_PREEMPT are enabled, so this option is
102+
currently disabled if you are building an SMP kernel.
97103

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.
104+
Say Y here if you are building a kernel for a desktop, embedded
105+
or real-time system. Say N if you are unsure.
100106

101107
config MATH_EMULATION
102108
bool "Math emulation"
@@ -105,6 +111,32 @@ config MATH_EMULATION
105111

106112
endmenu
107113

114+
config XTENSA_CALIBRATE_CCOUNT
115+
def_bool n
116+
help
117+
On some platforms (XT2000, for example), the CPU clock rate can
118+
vary. The frequency can be determined, however, by measuring
119+
against a well known, fixed frequency, such as an UART oscillator.
120+
121+
config SERIAL_CONSOLE
122+
def_bool n
123+
124+
config XTENSA_ISS_NETWORK
125+
def_bool n
126+
127+
menu "Bus options"
128+
129+
config PCI
130+
bool "PCI support"
131+
default y
132+
help
133+
Find out whether you have a PCI motherboard. PCI is the name of a
134+
bus system, i.e. the way the CPU talks to the other stuff inside
135+
your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
136+
VESA. If you have PCI, say Y, otherwise N.
137+
138+
source "drivers/pci/Kconfig"
139+
108140
menu "Platform options"
109141

110142
choice
@@ -113,33 +145,35 @@ choice
113145

114146
config XTENSA_PLATFORM_ISS
115147
bool "ISS"
148+
select XTENSA_CALIBRATE_CCOUNT
149+
select SERIAL_CONSOLE
150+
select XTENSA_ISS_NETWORK
116151
help
117152
ISS is an acronym for Tensilica's Instruction Set Simulator.
118153

119154
config XTENSA_PLATFORM_XT2000
120155
bool "XT2000"
156+
select XTENSA_CALIBRATE_CCOUNT
157+
select PCI
121158
help
122159
XT2000 is the name of Tensilica's feature-rich emulation platform.
123160
This hardware is capable of running a full Linux distribution.
124161

125-
endchoice
162+
config XTENSA_PLATFORM_S6105
163+
bool "S6105"
164+
select SERIAL_CONSOLE
126165

166+
endchoice
127167

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.
134168

135169
config XTENSA_CPU_CLOCK
136170
int "CPU clock rate [MHz]"
137171
depends on !XTENSA_CALIBRATE_CCOUNT
138-
default "16"
172+
default 16
139173

140174
config GENERIC_CALIBRATE_DELAY
141175
bool "Auto calibration of the BogoMIPS value"
142-
---help---
176+
help
143177
The BogoMIPS value can easily be derived from the CPU frequency.
144178

145179
config CMDLINE_BOOL
@@ -156,52 +190,27 @@ config CMDLINE
156190
time by entering them here. As a minimum, you should specify the
157191
memory size and the root device (e.g., mem=64M root=/dev/nfs).
158192

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-
169193
source "mm/Kconfig"
170194

171195
endmenu
172196

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
197+
config HOTPLUG
198+
bool "Support for hot-pluggable devices"
179199
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.
200+
Say Y here if you want to plug devices into your computer while
201+
the system is running, and be able to use them quickly. In many
202+
cases, the devices can likewise be unplugged at any time too.
184203

185-
source "drivers/pci/Kconfig"
204+
One well known example of this is PCMCIA- or PC-cards, credit-card
205+
size devices such as network cards, modems or hard drives which are
206+
plugged into slots found on all modern laptop computers. Another
207+
example, used on modern desktops as well as laptops, is USB.
186208

187-
config HOTPLUG
188-
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.
209+
Enable HOTPLUG and build a modular kernel. Get agent software
210+
(from <http://linux-hotplug.sourceforge.net/>) and install it.
211+
Then your kernel will automatically call out to a user mode "policy
212+
agent" (/sbin/hotplug) to load modules and set up software needed
213+
to use devices as you hotplug them.
205214

206215
source "drivers/pcmcia/Kconfig"
207216

@@ -213,9 +222,8 @@ menu "Executable file formats"
213222

214223
# only elf supported
215224
config KCORE_ELF
216-
bool
225+
def_bool y
217226
depends on PROC_FS
218-
default y
219227
help
220228
If you enabled support for /proc file system then the file
221229
/proc/kcore will contain the kernel core image in ELF format. This
@@ -240,7 +248,7 @@ source "fs/Kconfig"
240248
menu "Xtensa initrd options"
241249
depends on BLK_DEV_INITRD
242250

243-
config EMBEDDED_RAMDISK
251+
config EMBEDDED_RAMDISK
244252
bool "Embed root filesystem ramdisk into the kernel"
245253

246254
config EMBEDDED_RAMDISK_IMAGE

‎arch/xtensa/Makefile‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
variant-$(CONFIG_XTENSA_VARIANT_FSF) := fsf
1717
variant-$(CONFIG_XTENSA_VARIANT_DC232B) := dc232b
18+
variant-$(CONFIG_XTENSA_VARIANT_S6000) := s6000
1819
variant-$(CONFIG_XTENSA_VARIANT_LINUX_CUSTOM) := custom
1920

2021
VARIANT = $(variant-y)
@@ -24,6 +25,7 @@ export VARIANT
2425

2526
platform-$(CONFIG_XTENSA_PLATFORM_XT2000) := xt2000
2627
platform-$(CONFIG_XTENSA_PLATFORM_ISS) := iss
28+
platform-$(CONFIG_XTENSA_PLATFORM_S6105) := s6105
2729

2830
PLATFORM = $(platform-y)
2931
export PLATFORM
@@ -62,20 +64,23 @@ ifneq ($(VARIANT),)
6264
endif
6365
endif
6466

65-
#
67+
# Only build variant and/or platform if it includes a Makefile
68+
69+
buildvar := $(shell test -a $(srctree)/arch/xtensa/variants/$(VARIANT)/Makefile && echo arch/xtensa/variants/$(VARIANT)/)
70+
buildplf := $(shell test -a $(srctree)/arch/xtensa/platforms/$(PLATFORM)/Makefile && echo arch/xtensa/platforms/$(PLATFORM)/)
71+
72+
# Find libgcc.a
6673

6774
LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
6875

6976
head-y := arch/xtensa/kernel/head.o
7077
core-y += arch/xtensa/kernel/ arch/xtensa/mm/
71-
ifneq ($(PLATFORM),)
72-
core-y += arch/xtensa/platforms/$(PLATFORM)/
73-
endif
78+
core-y += $(buildvar) $(buildplf)
79+
7480
libs-y += arch/xtensa/lib/ $(LIBGCC)
7581

7682
boot := arch/xtensa/boot
7783

78-
7984
all: zImage
8085

8186
bzImage : zImage

0 commit comments

Comments
 (0)