aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-10-09 03:11:46 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-09 03:11:46 -0400
commit1ea4f4f8405cc1ceec23f2d261bc3775785e6712 (patch)
treea43ced12b9acf357623088d479fa69f3f00d2997
parentdea77ccdc93448d81e495a57bc1c1e97be4fdfe8 (diff)
parent70cefe765433529fc894fd1995a1d5883cb33e05 (diff)
Merge tag 'xtensa-next-20121008' of git://github.com/czankel/xtensa-linux
Pull Xtensa patchset from Chris Zankel: "The Xtensa tree has been broken for some time now, and this patchset brings it back to life. It has been part of the linux-next tree for some time. Most changes are inside the xtensa subdirectory; the other changes mostly add another rule to already existing #ifdefs to exclude Xtensa, where required. The only 'common' change is to add two more sections ('.xt.prop' and '.xt.lit') to the white list in modpost." * tag 'xtensa-next-20121008' of git://github.com/czankel/xtensa-linux: (27 commits) xtensa: Setup CROSS_COMPILE at the top xtensa: drop CONFIG_EMBEDDED_RAMDISK xtensa: fix TIOCGSERIAL and TIOCSSERIAL definitions xtensa: provide dummy gcc intrinsics xtensa: add missing symbol exports parport: disable for xtensa arch xtensa: rename MISC SR definition to avoid name clashes hisax: disable build for big-endian xtensa xtensa: fix CODA build xtensa: fix parallel make xtensa: ISS: drop unused io.c xtensa: ISS: exit simulator in case of halt or poweroff xtensa: ISS: change keyboard polling rate xtensa: ISS: add platform_pcibios_init xtensa: ISS: add dummy serial.h for ISS platform xtensa: change default platform clock frequency to 10MHz xtensa: add ARCH_WANT_OPTIONAL_GPIOLIB to xtensa config xtensa: set NO_IOPORT to 'n' by default xtensa: adopt generic io routines xtensa: fix ioremap ...
-rw-r--r--MAINTAINERS2
-rw-r--r--arch/xtensa/Kconfig23
-rw-r--r--arch/xtensa/Makefile34
-rw-r--r--arch/xtensa/boot/Makefile2
-rw-r--r--arch/xtensa/boot/boot-elf/Makefile24
-rw-r--r--arch/xtensa/boot/boot-elf/boot.lds.S7
-rw-r--r--arch/xtensa/boot/boot-redboot/Makefile12
-rw-r--r--arch/xtensa/boot/boot-redboot/boot.ld7
-rw-r--r--arch/xtensa/boot/boot-redboot/bootstrap.S10
-rw-r--r--arch/xtensa/boot/ramdisk/Makefile23
-rw-r--r--arch/xtensa/configs/s6105_defconfig5
-rw-r--r--arch/xtensa/include/asm/io.h172
-rw-r--r--arch/xtensa/include/asm/ioctls.h4
-rw-r--r--arch/xtensa/include/asm/regs.h2
-rw-r--r--arch/xtensa/kernel/Makefile3
-rw-r--r--arch/xtensa/kernel/io.c75
-rw-r--r--arch/xtensa/kernel/irq.c4
-rw-r--r--arch/xtensa/kernel/pci-dma.c4
-rw-r--r--arch/xtensa/kernel/pci.c2
-rw-r--r--arch/xtensa/kernel/platform.c4
-rw-r--r--arch/xtensa/kernel/setup.c12
-rw-r--r--arch/xtensa/kernel/vmlinux.lds.S5
-rw-r--r--arch/xtensa/kernel/xtensa_ksyms.c25
-rw-r--r--arch/xtensa/platforms/iss/Makefile4
-rw-r--r--arch/xtensa/platforms/iss/console.c15
-rw-r--r--arch/xtensa/platforms/iss/include/platform/serial.h0
-rw-r--r--arch/xtensa/platforms/iss/include/platform/simcall.h53
-rw-r--r--arch/xtensa/platforms/iss/io.c32
-rw-r--r--arch/xtensa/platforms/iss/network.c49
-rw-r--r--arch/xtensa/platforms/iss/setup.c14
-rw-r--r--drivers/isdn/hisax/Kconfig10
-rw-r--r--drivers/parport/Kconfig2
-rw-r--r--drivers/usb/musb/musb_io.h3
-rw-r--r--scripts/mod/modpost.c2
34 files changed, 169 insertions, 476 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index b4e5ecf8d3d2..ab98a99bee92 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7170,6 +7170,8 @@ F: drivers/char/tlclk.c
7170 7170
7171TENSILICA XTENSA PORT (xtensa) 7171TENSILICA XTENSA PORT (xtensa)
7172M: Chris Zankel <chris@zankel.net> 7172M: Chris Zankel <chris@zankel.net>
7173M: Max Filippov <jcmvbkbc@gmail.com>
7174L: linux-xtensa@linux-xtensa.org
7173S: Maintained 7175S: Maintained
7174F: arch/xtensa/ 7176F: arch/xtensa/
7175 7177
diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig
index 744f5ee4ba41..cdcb48adee4c 100644
--- a/arch/xtensa/Kconfig
+++ b/arch/xtensa/Kconfig
@@ -11,6 +11,9 @@ config XTENSA
11 select HAVE_GENERIC_HARDIRQS 11 select HAVE_GENERIC_HARDIRQS
12 select GENERIC_IRQ_SHOW 12 select GENERIC_IRQ_SHOW
13 select GENERIC_CPU_DEVICES 13 select GENERIC_CPU_DEVICES
14 select MODULES_USE_ELF_RELA
15 select GENERIC_PCI_IOMAP
16 select ARCH_WANT_OPTIONAL_GPIOLIB
14 help 17 help
15 Xtensa processors are 32-bit RISC machines designed by Tensilica 18 Xtensa processors are 32-bit RISC machines designed by Tensilica
16 primarily for embedded systems. These processors are both 19 primarily for embedded systems. These processors are both
@@ -35,7 +38,7 @@ config ARCH_HAS_ILOG2_U64
35 def_bool n 38 def_bool n
36 39
37config NO_IOPORT 40config NO_IOPORT
38 def_bool y 41 def_bool n
39 42
40config HZ 43config HZ
41 int 44 int
@@ -142,6 +145,7 @@ config XTENSA_PLATFORM_XT2000
142config XTENSA_PLATFORM_S6105 145config XTENSA_PLATFORM_S6105
143 bool "S6105" 146 bool "S6105"
144 select SERIAL_CONSOLE 147 select SERIAL_CONSOLE
148 select NO_IOPORT
145 149
146endchoice 150endchoice
147 151
@@ -205,23 +209,6 @@ source "drivers/Kconfig"
205 209
206source "fs/Kconfig" 210source "fs/Kconfig"
207 211
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" 212source "arch/xtensa/Kconfig.debug"
226 213
227source "security/Kconfig" 214source "security/Kconfig"
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile
index f973754ddf90..bb5ba61723f7 100644
--- a/arch/xtensa/Makefile
+++ b/arch/xtensa/Makefile
@@ -21,6 +21,18 @@ variant-$(CONFIG_XTENSA_VARIANT_LINUX_CUSTOM) := custom
21VARIANT = $(variant-y) 21VARIANT = $(variant-y)
22export VARIANT 22export VARIANT
23 23
24# Test for cross compiling
25
26ifneq ($(VARIANT),)
27 COMPILE_ARCH = $(shell uname -m)
28
29 ifneq ($(COMPILE_ARCH), xtensa)
30 ifndef CROSS_COMPILE
31 CROSS_COMPILE = xtensa_$(VARIANT)-
32 endif
33 endif
34endif
35
24# Platform configuration 36# Platform configuration
25 37
26platform-$(CONFIG_XTENSA_PLATFORM_XT2000) := xt2000 38platform-$(CONFIG_XTENSA_PLATFORM_XT2000) := xt2000
@@ -31,7 +43,7 @@ PLATFORM = $(platform-y)
31export PLATFORM 43export PLATFORM
32 44
33# temporarily until string.h is fixed 45# temporarily until string.h is fixed
34KBUILD_CFLAGS += -ffreestanding 46KBUILD_CFLAGS += -ffreestanding -D__linux__
35 47
36KBUILD_CFLAGS += -pipe -mlongcalls 48KBUILD_CFLAGS += -pipe -mlongcalls
37 49
@@ -48,24 +60,6 @@ endif
48 60
49KBUILD_DEFCONFIG := iss_defconfig 61KBUILD_DEFCONFIG := iss_defconfig
50 62
51# ramdisk/initrd support
52# You need a compressed ramdisk image, named ramdisk.gz in
53# arch/xtensa/boot/ramdisk
54
55core-$(CONFIG_EMBEDDED_RAMDISK) += arch/xtensa/boot/ramdisk/
56
57# Test for cross compiling
58
59ifneq ($(VARIANT),)
60 COMPILE_ARCH = $(shell uname -m)
61
62 ifneq ($(COMPILE_ARCH), xtensa)
63 ifndef CROSS_COMPILE
64 CROSS_COMPILE = xtensa_$(VARIANT)-
65 endif
66 endif
67endif
68
69# Only build variant and/or platform if it includes a Makefile 63# Only build variant and/or platform if it includes a Makefile
70 64
71buildvar := $(shell test -e $(srctree)/arch/xtensa/variants/$(VARIANT)/Makefile && echo arch/xtensa/variants/$(VARIANT)/) 65buildvar := $(shell test -e $(srctree)/arch/xtensa/variants/$(VARIANT)/Makefile && echo arch/xtensa/variants/$(VARIANT)/)
@@ -87,7 +81,7 @@ all: zImage
87 81
88bzImage : zImage 82bzImage : zImage
89 83
90zImage zImage.initrd: vmlinux 84zImage: vmlinux
91 $(Q)$(MAKE) $(build)=$(boot) $@ 85 $(Q)$(MAKE) $(build)=$(boot) $@
92 86