diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-09 03:11:46 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-09 03:11:46 -0400 |
| commit | 1ea4f4f8405cc1ceec23f2d261bc3775785e6712 (patch) | |
| tree | a43ced12b9acf357623088d479fa69f3f00d2997 | |
| parent | dea77ccdc93448d81e495a57bc1c1e97be4fdfe8 (diff) | |
| parent | 70cefe765433529fc894fd1995a1d5883cb33e05 (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
...
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 | ||
| 7171 | TENSILICA XTENSA PORT (xtensa) | 7171 | TENSILICA XTENSA PORT (xtensa) |
| 7172 | M: Chris Zankel <chris@zankel.net> | 7172 | M: Chris Zankel <chris@zankel.net> |
| 7173 | M: Max Filippov <jcmvbkbc@gmail.com> | ||
| 7174 | L: linux-xtensa@linux-xtensa.org | ||
| 7173 | S: Maintained | 7175 | S: Maintained |
| 7174 | F: arch/xtensa/ | 7176 | F: 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 | ||
| 37 | config NO_IOPORT | 40 | config NO_IOPORT |
| 38 | def_bool y | 41 | def_bool n |
| 39 | 42 | ||
| 40 | config HZ | 43 | config HZ |
| 41 | int | 44 | int |
| @@ -142,6 +145,7 @@ config XTENSA_PLATFORM_XT2000 | |||
| 142 | config XTENSA_PLATFORM_S6105 | 145 | config XTENSA_PLATFORM_S6105 |
| 143 | bool "S6105" | 146 | bool "S6105" |
| 144 | select SERIAL_CONSOLE | 147 | select SERIAL_CONSOLE |
| 148 | select NO_IOPORT | ||
| 145 | 149 | ||
| 146 | endchoice | 150 | endchoice |
| 147 | 151 | ||
| @@ -205,23 +209,6 @@ source "drivers/Kconfig" | |||
| 205 | 209 | ||
| 206 | source "fs/Kconfig" | 210 | source "fs/Kconfig" |
| 207 | 211 | ||
| 208 | menu "Xtensa initrd options" | ||
| 209 | depends on BLK_DEV_INITRD | ||
| 210 | |||
| 211 | config EMBEDDED_RAMDISK | ||
| 212 | bool "Embed root filesystem ramdisk into the kernel" | ||
| 213 | |||
| 214 | config 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. | ||
| 223 | endmenu | ||
| 224 | |||
| 225 | source "arch/xtensa/Kconfig.debug" | 212 | source "arch/xtensa/Kconfig.debug" |
| 226 | 213 | ||
| 227 | source "security/Kconfig" | 214 | source "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 | |||
| 21 | VARIANT = $(variant-y) | 21 | VARIANT = $(variant-y) |
| 22 | export VARIANT | 22 | export VARIANT |
| 23 | 23 | ||
| 24 | # Test for cross compiling | ||
| 25 | |||
| 26 | ifneq ($(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 | ||
| 34 | endif | ||
| 35 | |||
| 24 | # Platform configuration | 36 | # Platform configuration |
| 25 | 37 | ||
| 26 | platform-$(CONFIG_XTENSA_PLATFORM_XT2000) := xt2000 | 38 | platform-$(CONFIG_XTENSA_PLATFORM_XT2000) := xt2000 |
| @@ -31,7 +43,7 @@ PLATFORM = $(platform-y) | |||
| 31 | export PLATFORM | 43 | export PLATFORM |
| 32 | 44 | ||
| 33 | # temporarily until string.h is fixed | 45 | # temporarily until string.h is fixed |
| 34 | KBUILD_CFLAGS += -ffreestanding | 46 | KBUILD_CFLAGS += -ffreestanding -D__linux__ |
| 35 | 47 | ||
| 36 | KBUILD_CFLAGS += -pipe -mlongcalls | 48 | KBUILD_CFLAGS += -pipe -mlongcalls |
| 37 | 49 | ||
| @@ -48,24 +60,6 @@ endif | |||
| 48 | 60 | ||
| 49 | KBUILD_DEFCONFIG := iss_defconfig | 61 | KBUILD_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 | |||
| 55 | core-$(CONFIG_EMBEDDED_RAMDISK) += arch/xtensa/boot/ramdisk/ | ||
| 56 | |||
| 57 | # Test for cross compiling | ||
| 58 | |||
| 59 | ifneq ($(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 | ||
| 67 | endif | ||
| 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 | ||
| 71 | buildvar := $(shell test -e $(srctree)/arch/xtensa/variants/$(VARIANT)/Makefile && echo arch/xtensa/variants/$(VARIANT)/) | 65 | buildvar := $(shell test -e $(srctree)/arch/xtensa/variants/$(VARIANT)/Makefile && echo arch/xtensa/variants/$(VARIANT)/) |
| @@ -87,7 +81,7 @@ all: zImage | |||
| 87 | 81 | ||
| 88 | bzImage : zImage | 82 | bzImage : zImage |
| 89 | 83 | ||
| 90 | zImage zImage.initrd: vmlinux | 84 | zImage: vmlinux |
| 91 | $(Q)$(MAKE) $(build)=$(boot) $@ | 85 | $(Q)$(MAKE) $(build)=$(boot) $@ |
| 92 | 86 | ||
