diff options
-rw-r--r-- | arch/xtensa/Makefile | 28 | ||||
-rw-r--r-- | arch/xtensa/boot/boot-elf/boot.lds.S | 2 | ||||
-rw-r--r-- | arch/xtensa/boot/boot-redboot/bootstrap.S | 2 | ||||
-rw-r--r-- | arch/xtensa/include/asm/Kbuild (renamed from include/asm-xtensa/Kbuild) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/asmmacro.h (renamed from include/asm-xtensa/asmmacro.h) | 2 | ||||
-rw-r--r-- | arch/xtensa/include/asm/atomic.h (renamed from include/asm-xtensa/atomic.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/auxvec.h (renamed from include/asm-xtensa/auxvec.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/bitops.h (renamed from include/asm-xtensa/bitops.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/bootparam.h (renamed from include/asm-xtensa/bootparam.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/bug.h (renamed from include/asm-xtensa/bug.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/bugs.h (renamed from include/asm-xtensa/bugs.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/byteorder.h (renamed from include/asm-xtensa/byteorder.h) | 32 | ||||
-rw-r--r-- | arch/xtensa/include/asm/cache.h (renamed from include/asm-xtensa/cache.h) | 2 | ||||
-rw-r--r-- | arch/xtensa/include/asm/cacheasm.h (renamed from include/asm-xtensa/cacheasm.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/cacheflush.h (renamed from include/asm-xtensa/cacheflush.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/checksum.h (renamed from include/asm-xtensa/checksum.h) | 2 | ||||
-rw-r--r-- | arch/xtensa/include/asm/coprocessor.h (renamed from include/asm-xtensa/coprocessor.h) | 4 | ||||
-rw-r--r-- | arch/xtensa/include/asm/cpumask.h (renamed from include/asm-xtensa/cpumask.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/cputime.h (renamed from include/asm-xtensa/cputime.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/current.h (renamed from include/asm-xtensa/current.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/delay.h (renamed from include/asm-xtensa/delay.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/device.h (renamed from include/asm-xtensa/device.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/div64.h (renamed from include/asm-xtensa/div64.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/dma-mapping.h (renamed from include/asm-xtensa/dma-mapping.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/dma.h (renamed from include/asm-xtensa/dma.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/elf.h (renamed from include/asm-xtensa/elf.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/emergency-restart.h (renamed from include/asm-xtensa/emergency-restart.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/errno.h (renamed from include/asm-xtensa/errno.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/fb.h (renamed from include/asm-xtensa/fb.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/fcntl.h (renamed from include/asm-xtensa/fcntl.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/futex.h (renamed from include/asm-xtensa/futex.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/hardirq.h (renamed from include/asm-xtensa/hardirq.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/highmem.h (renamed from include/asm-xtensa/highmem.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/hw_irq.h (renamed from include/asm-xtensa/hw_irq.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/io.h (renamed from include/asm-xtensa/io.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/ioctl.h (renamed from include/asm-xtensa/ioctl.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/ioctls.h (renamed from include/asm-xtensa/ioctls.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/ipcbuf.h (renamed from include/asm-xtensa/ipcbuf.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/irq.h (renamed from include/asm-xtensa/irq.h) | 4 | ||||
-rw-r--r-- | arch/xtensa/include/asm/irq_regs.h (renamed from include/asm-xtensa/irq_regs.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/kdebug.h (renamed from include/asm-xtensa/kdebug.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/kmap_types.h (renamed from include/asm-xtensa/kmap_types.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/linkage.h (renamed from include/asm-xtensa/linkage.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/local.h (renamed from include/asm-xtensa/local.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/mman.h (renamed from include/asm-xtensa/mman.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/mmu.h (renamed from include/asm-xtensa/mmu.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/mmu_context.h (renamed from include/asm-xtensa/mmu_context.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/module.h (renamed from include/asm-xtensa/module.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/msgbuf.h (renamed from include/asm-xtensa/msgbuf.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/mutex.h (renamed from include/asm-xtensa/mutex.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/page.h (renamed from include/asm-xtensa/page.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/param.h (renamed from include/asm-xtensa/param.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/pci-bridge.h (renamed from include/asm-xtensa/pci-bridge.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/pci.h (renamed from include/asm-xtensa/pci.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/percpu.h (renamed from include/asm-xtensa/percpu.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/pgalloc.h (renamed from include/asm-xtensa/pgalloc.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/pgtable.h (renamed from include/asm-xtensa/pgtable.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/platform.h (renamed from include/asm-xtensa/platform.h) | 2 | ||||
-rw-r--r-- | arch/xtensa/include/asm/poll.h (renamed from include/asm-xtensa/poll.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/posix_types.h (renamed from include/asm-xtensa/posix_types.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/processor.h (renamed from include/asm-xtensa/processor.h) | 2 | ||||
-rw-r--r-- | arch/xtensa/include/asm/ptrace.h (renamed from include/asm-xtensa/ptrace.h) | 2 | ||||
-rw-r--r-- | arch/xtensa/include/asm/regs.h (renamed from include/asm-xtensa/regs.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/resource.h (renamed from include/asm-xtensa/resource.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/rmap.h (renamed from include/asm-xtensa/rmap.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/rwsem.h (renamed from include/asm-xtensa/rwsem.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/scatterlist.h (renamed from include/asm-xtensa/scatterlist.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/sections.h (renamed from include/asm-xtensa/sections.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/segment.h (renamed from include/asm-xtensa/segment.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/sembuf.h (renamed from include/asm-xtensa/sembuf.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/serial.h (renamed from include/asm-xtensa/serial.h) | 2 | ||||
-rw-r--r-- | arch/xtensa/include/asm/setup.h (renamed from include/asm-xtensa/setup.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/shmbuf.h (renamed from include/asm-xtensa/shmbuf.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/shmparam.h (renamed from include/asm-xtensa/shmparam.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/sigcontext.h (renamed from include/asm-xtensa/sigcontext.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/siginfo.h (renamed from include/asm-xtensa/siginfo.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/signal.h (renamed from include/asm-xtensa/signal.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/smp.h (renamed from include/asm-xtensa/smp.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/socket.h (renamed from include/asm-xtensa/socket.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/sockios.h (renamed from include/asm-xtensa/sockios.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/spinlock.h (renamed from include/asm-xtensa/spinlock.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/stat.h (renamed from include/asm-xtensa/stat.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/statfs.h (renamed from include/asm-xtensa/statfs.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/string.h (renamed from include/asm-xtensa/string.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/syscall.h (renamed from include/asm-xtensa/syscall.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/system.h (renamed from include/asm-xtensa/system.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/termbits.h (renamed from include/asm-xtensa/termbits.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/termios.h (renamed from include/asm-xtensa/termios.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/thread_info.h (renamed from include/asm-xtensa/thread_info.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/timex.h (renamed from include/asm-xtensa/timex.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/tlb.h (renamed from include/asm-xtensa/tlb.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/tlbflush.h (renamed from include/asm-xtensa/tlbflush.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/topology.h (renamed from include/asm-xtensa/topology.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/types.h (renamed from include/asm-xtensa/types.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/uaccess.h (renamed from include/asm-xtensa/uaccess.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/ucontext.h (renamed from include/asm-xtensa/ucontext.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/unaligned.h (renamed from include/asm-xtensa/unaligned.h) | 12 | ||||
-rw-r--r-- | arch/xtensa/include/asm/unistd.h (renamed from include/asm-xtensa/unistd.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/user.h (renamed from include/asm-xtensa/user.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/vga.h (renamed from include/asm-xtensa/vga.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/include/asm/xor.h (renamed from include/asm-xtensa/xor.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/kernel/entry.S | 2 | ||||
-rw-r--r-- | arch/xtensa/kernel/vmlinux.lds.S | 2 | ||||
-rw-r--r-- | arch/xtensa/lib/checksum.S | 2 | ||||
-rw-r--r-- | arch/xtensa/lib/memcopy.S | 2 | ||||
-rw-r--r-- | arch/xtensa/lib/memset.S | 2 | ||||
-rw-r--r-- | arch/xtensa/lib/strncpy_user.S | 2 | ||||
-rw-r--r-- | arch/xtensa/lib/strnlen_user.S | 2 | ||||
-rw-r--r-- | arch/xtensa/lib/usercopy.S | 2 | ||||
-rw-r--r-- | arch/xtensa/platforms/iss/console.c | 4 | ||||
-rw-r--r-- | arch/xtensa/platforms/iss/include/platform/hardware.h (renamed from include/asm-xtensa/platform-iss/hardware.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/platforms/iss/include/platform/simcall.h (renamed from include/asm-xtensa/platform-iss/simcall.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/platforms/iss/io.c | 2 | ||||
-rw-r--r-- | arch/xtensa/platforms/iss/network.c | 4 | ||||
-rw-r--r-- | arch/xtensa/platforms/xt2000/Makefile | 5 | ||||
-rw-r--r-- | arch/xtensa/platforms/xt2000/include/platform/hardware.h | 55 | ||||
-rw-r--r-- | arch/xtensa/platforms/xt2000/include/platform/serial.h | 28 | ||||
-rw-r--r-- | arch/xtensa/platforms/xt2000/setup.c | 181 | ||||
-rw-r--r-- | arch/xtensa/variants/dc232b/include/variant/core.h (renamed from include/asm-xtensa/variant-dc232b/core.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/variants/dc232b/include/variant/tie-asm.h (renamed from include/asm-xtensa/variant-dc232b/tie-asm.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/variants/dc232b/include/variant/tie.h (renamed from include/asm-xtensa/variant-dc232b/tie.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/variants/fsf/include/variant/core.h (renamed from include/asm-xtensa/variant-fsf/core.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/variants/fsf/include/variant/tie-asm.h (renamed from include/asm-xtensa/variant-fsf/tie-asm.h) | 0 | ||||
-rw-r--r-- | arch/xtensa/variants/fsf/include/variant/tie.h (renamed from include/asm-xtensa/variant-fsf/tie.h) | 0 |
124 files changed, 324 insertions, 69 deletions
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 015b6b2a26b9..1da55fe4beff 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile | |||
@@ -33,6 +33,15 @@ KBUILD_CFLAGS += -ffreestanding | |||
33 | 33 | ||
34 | KBUILD_CFLAGS += -pipe -mlongcalls | 34 | KBUILD_CFLAGS += -pipe -mlongcalls |
35 | 35 | ||
36 | vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y)) | ||
37 | plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y)) | ||
38 | |||
39 | ifeq ($(KBUILD_SRC),) | ||
40 | KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(vardirs) $(plfdirs)) | ||
41 | else | ||
42 | KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(vardirs) $(plfdirs)) | ||
43 | endif | ||
44 | |||
36 | KBUILD_DEFCONFIG := iss_defconfig | 45 | KBUILD_DEFCONFIG := iss_defconfig |
37 | 46 | ||
38 | # ramdisk/initrd support | 47 | # ramdisk/initrd support |
@@ -66,21 +75,6 @@ libs-y += arch/xtensa/lib/ $(LIBGCC) | |||
66 | 75 | ||
67 | boot := arch/xtensa/boot | 76 | boot := arch/xtensa/boot |
68 | 77 | ||
69 | archinc := include/asm-xtensa | ||
70 | |||
71 | archprepare: $(archinc)/.platform | ||
72 | |||
73 | # Update processor variant and platform symlinks if something which affects | ||
74 | # them changed. | ||
75 | |||
76 | $(archinc)/.platform: $(wildcard include/config/arch/*.h) include/config/auto.conf | ||
77 | @echo ' SYMLINK $(archinc)/variant -> $(archinc)/variant-$(VARIANT)' | ||
78 | $(Q)mkdir -p $(archinc) | ||
79 | $(Q)ln -fsn $(srctree)/$(archinc)/variant-$(VARIANT) $(archinc)/variant | ||
80 | @echo ' SYMLINK $(archinc)/platform -> $(archinc)/platform-$(PLATFORM)' | ||
81 | $(Q)ln -fsn $(srctree)/$(archinc)/platform-$(PLATFORM) $(archinc)/platform | ||
82 | @touch $@ | ||
83 | |||
84 | 78 | ||
85 | all: zImage | 79 | all: zImage |
86 | 80 | ||
@@ -89,10 +83,6 @@ bzImage : zImage | |||
89 | zImage zImage.initrd: vmlinux | 83 | zImage zImage.initrd: vmlinux |
90 | $(Q)$(MAKE) $(build)=$(boot) $@ | 84 | $(Q)$(MAKE) $(build)=$(boot) $@ |
91 | 85 | ||
92 | CLEAN_FILES += arch/xtensa/vmlinux.lds \ | ||
93 | $(archinc)/platform $(archinc)/variant \ | ||
94 | $(archinc)/.platform | ||
95 | |||
96 | define archhelp | 86 | define archhelp |
97 | @echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)' | 87 | @echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)' |
98 | endef | 88 | endef |
diff --git a/arch/xtensa/boot/boot-elf/boot.lds.S b/arch/xtensa/boot/boot-elf/boot.lds.S index 849dfcafd518..4e53b74dc44b 100644 --- a/arch/xtensa/boot/boot-elf/boot.lds.S +++ b/arch/xtensa/boot/boot-elf/boot.lds.S | |||
@@ -1,4 +1,4 @@ | |||
1 | #include <asm/variant/core.h> | 1 | #include <variant/core.h> |
2 | OUTPUT_ARCH(xtensa) | 2 | OUTPUT_ARCH(xtensa) |
3 | ENTRY(_ResetVector) | 3 | ENTRY(_ResetVector) |
4 | 4 | ||
diff --git a/arch/xtensa/boot/boot-redboot/bootstrap.S b/arch/xtensa/boot/boot-redboot/bootstrap.S index 84848123e2a8..5582e8cfac8f 100644 --- a/arch/xtensa/boot/boot-redboot/bootstrap.S +++ b/arch/xtensa/boot/boot-redboot/bootstrap.S | |||
@@ -1,4 +1,4 @@ | |||
1 | #include <asm/variant/core.h> | 1 | #include <variant/core.h> |
2 | #include <asm/regs.h> | 2 | #include <asm/regs.h> |
3 | #include <asm/asmmacro.h> | 3 | #include <asm/asmmacro.h> |
4 | #include <asm/cacheasm.h> | 4 | #include <asm/cacheasm.h> |
diff --git a/include/asm-xtensa/Kbuild b/arch/xtensa/include/asm/Kbuild index c68e1680da01..c68e1680da01 100644 --- a/include/asm-xtensa/Kbuild +++ b/arch/xtensa/include/asm/Kbuild | |||
diff --git a/include/asm-xtensa/asmmacro.h b/arch/xtensa/include/asm/asmmacro.h index 76915cabad17..755320f6e0bc 100644 --- a/include/asm-xtensa/asmmacro.h +++ b/arch/xtensa/include/asm/asmmacro.h | |||
@@ -11,7 +11,7 @@ | |||
11 | #ifndef _XTENSA_ASMMACRO_H | 11 | #ifndef _XTENSA_ASMMACRO_H |
12 | #define _XTENSA_ASMMACRO_H | 12 | #define _XTENSA_ASMMACRO_H |
13 | 13 | ||
14 | #include <asm/variant/core.h> | 14 | #include <variant/core.h> |
15 | 15 | ||
16 | /* | 16 | /* |
17 | * Some little helpers for loops. Use zero-overhead-loops | 17 | * Some little helpers for loops. Use zero-overhead-loops |
diff --git a/include/asm-xtensa/atomic.h b/arch/xtensa/include/asm/atomic.h index 67ad67bed8c1..67ad67bed8c1 100644 --- a/include/asm-xtensa/atomic.h +++ b/arch/xtensa/include/asm/atomic.h | |||
diff --git a/include/asm-xtensa/auxvec.h b/arch/xtensa/include/asm/auxvec.h index 257dec75c5af..257dec75c5af 100644 --- a/include/asm-xtensa/auxvec.h +++ b/arch/xtensa/include/asm/auxvec.h | |||
diff --git a/include/asm-xtensa/bitops.h b/arch/xtensa/include/asm/bitops.h index 6c3930397bd3..6c3930397bd3 100644 --- a/include/asm-xtensa/bitops.h +++ b/arch/xtensa/include/asm/bitops.h | |||
diff --git a/include/asm-xtensa/bootparam.h b/arch/xtensa/include/asm/bootparam.h index 9983f2c1b7ee..9983f2c1b7ee 100644 --- a/include/asm-xtensa/bootparam.h +++ b/arch/xtensa/include/asm/bootparam.h | |||
diff --git a/include/asm-xtensa/bug.h b/arch/xtensa/include/asm/bug.h index 3e52d72712f1..3e52d72712f1 100644 --- a/include/asm-xtensa/bug.h +++ b/arch/xtensa/include/asm/bug.h | |||
diff --git a/include/asm-xtensa/bugs.h b/arch/xtensa/include/asm/bugs.h index 69b29d198249..69b29d198249 100644 --- a/include/asm-xtensa/bugs.h +++ b/arch/xtensa/include/asm/bugs.h | |||
diff --git a/include/asm-xtensa/byteorder.h b/arch/xtensa/include/asm/byteorder.h index 765edf17a9a4..07d10ad364d1 100644 --- a/include/asm-xtensa/byteorder.h +++ b/arch/xtensa/include/asm/byteorder.h | |||
@@ -14,7 +14,17 @@ | |||
14 | #include <asm/types.h> | 14 | #include <asm/types.h> |
15 | #include <linux/compiler.h> | 15 | #include <linux/compiler.h> |
16 | 16 | ||
17 | static __inline__ __attribute_const__ __u32 ___arch__swab32(__u32 x) | 17 | #ifdef __XTENSA_EL__ |
18 | # define __LITTLE_ENDIAN | ||
19 | #elif defined(__XTENSA_EB__) | ||
20 | # define __BIG_ENDIAN | ||
21 | #else | ||
22 | # error processor byte order undefined! | ||
23 | #endif | ||
24 | |||
25 | #define __SWAB_64_THRU_32__ | ||
26 | |||
27 | static inline __attribute_const__ __u32 __arch_swab32(__u32 x) | ||
18 | { | 28 | { |
19 | __u32 res; | 29 | __u32 res; |
20 | /* instruction sequence from Xtensa ISA release 2/2000 */ | 30 | /* instruction sequence from Xtensa ISA release 2/2000 */ |
@@ -28,8 +38,9 @@ static __inline__ __attribute_const__ __u32 ___arch__swab32(__u32 x) | |||
28 | ); | 38 | ); |
29 | return res; | 39 | return res; |
30 | } | 40 | } |
41 | #define __arch_swab32 __arch_swab32 | ||
31 | 42 | ||
32 | static __inline__ __attribute_const__ __u16 ___arch__swab16(__u16 x) | 43 | static inline __attribute_const__ __u16 __arch_swab16(__u16 x) |
33 | { | 44 | { |
34 | /* Given that 'short' values are signed (i.e., can be negative), | 45 | /* Given that 'short' values are signed (i.e., can be negative), |
35 | * we cannot assume that the upper 16-bits of the register are | 46 | * we cannot assume that the upper 16-bits of the register are |
@@ -62,21 +73,8 @@ static __inline__ __attribute_const__ __u16 ___arch__swab16(__u16 x) | |||
62 | 73 | ||
63 | return res; | 74 | return res; |
64 | } | 75 | } |
76 | #define __arch_swab16 __arch_swab16 | ||
65 | 77 | ||
66 | #define __arch__swab32(x) ___arch__swab32(x) | 78 | #include <linux/byteorder.h> |
67 | #define __arch__swab16(x) ___arch__swab16(x) | ||
68 | |||
69 | #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) | ||
70 | # define __BYTEORDER_HAS_U64__ | ||
71 | # define __SWAB_64_THRU_32__ | ||
72 | #endif | ||
73 | |||
74 | #ifdef __XTENSA_EL__ | ||
75 | # include <linux/byteorder/little_endian.h> | ||
76 | #elif defined(__XTENSA_EB__) | ||
77 | # include <linux/byteorder/big_endian.h> | ||
78 | #else | ||
79 | # error processor byte order undefined! | ||
80 | #endif | ||
81 | 79 | ||
82 | #endif /* _XTENSA_BYTEORDER_H */ | 80 | #endif /* _XTENSA_BYTEORDER_H */ |
diff --git a/include/asm-xtensa/cache.h b/arch/xtensa/include/asm/cache.h index 3bba2a540cf0..f04c9891142f 100644 --- a/include/asm-xtensa/cache.h +++ b/arch/xtensa/include/asm/cache.h | |||
@@ -11,7 +11,7 @@ | |||
11 | #ifndef _XTENSA_CACHE_H | 11 | #ifndef _XTENSA_CACHE_H |
12 | #define _XTENSA_CACHE_H | 12 | #define _XTENSA_CACHE_H |
13 | 13 | ||
14 | #include <asm/variant/core.h> | 14 | #include <variant/core.h> |
15 | 15 | ||
16 | #define L1_CACHE_SHIFT XCHAL_DCACHE_LINEWIDTH | 16 | #define L1_CACHE_SHIFT XCHAL_DCACHE_LINEWIDTH |
17 | #define L1_CACHE_BYTES XCHAL_DCACHE_LINESIZE | 17 | #define L1_CACHE_BYTES XCHAL_DCACHE_LINESIZE |
diff --git a/include/asm-xtensa/cacheasm.h b/arch/xtensa/include/asm/cacheasm.h index 2c20a58f94cd..2c20a58f94cd 100644 --- a/include/asm-xtensa/cacheasm.h +++ b/arch/xtensa/include/asm/cacheasm.h | |||
diff --git a/include/asm-xtensa/cacheflush.h b/arch/xtensa/include/asm/cacheflush.h index 94c4c53a099e..94c4c53a099e 100644 --- a/include/asm-xtensa/cacheflush.h +++ b/arch/xtensa/include/asm/cacheflush.h | |||
diff --git a/include/asm-xtensa/checksum.h b/arch/xtensa/include/asm/checksum.h index 23534c60b3a4..f84d3f00774a 100644 --- a/include/asm-xtensa/checksum.h +++ b/arch/xtensa/include/asm/checksum.h | |||
@@ -12,7 +12,7 @@ | |||
12 | #define _XTENSA_CHECKSUM_H | 12 | #define _XTENSA_CHECKSUM_H |
13 | 13 | ||
14 | #include <linux/in6.h> | 14 | #include <linux/in6.h> |
15 | #include <asm/variant/core.h> | 15 | #include <variant/core.h> |
16 | 16 | ||
17 | /* | 17 | /* |
18 | * computes the checksum of a memory block at buff, length len, | 18 | * computes the checksum of a memory block at buff, length len, |
diff --git a/include/asm-xtensa/coprocessor.h b/arch/xtensa/include/asm/coprocessor.h index 1cbcf9001a41..65a285d8d3fb 100644 --- a/include/asm-xtensa/coprocessor.h +++ b/arch/xtensa/include/asm/coprocessor.h | |||
@@ -13,11 +13,11 @@ | |||
13 | #define _XTENSA_COPROCESSOR_H | 13 | #define _XTENSA_COPROCESSOR_H |
14 | 14 | ||
15 | #include <linux/stringify.h> | 15 | #include <linux/stringify.h> |
16 | #include <asm/variant/tie.h> | 16 | #include <variant/tie.h> |
17 | #include <asm/types.h> | 17 | #include <asm/types.h> |
18 | 18 | ||
19 | #ifdef __ASSEMBLY__ | 19 | #ifdef __ASSEMBLY__ |
20 | # include <asm/variant/tie-asm.h> | 20 | # include <variant/tie-asm.h> |
21 | 21 | ||
22 | .macro xchal_sa_start a b | 22 | .macro xchal_sa_start a b |
23 | .set .Lxchal_pofs_, 0 | 23 | .set .Lxchal_pofs_, 0 |
diff --git a/include/asm-xtensa/cpumask.h b/arch/xtensa/include/asm/cpumask.h index ebeede397db3..ebeede397db3 100644 --- a/include/asm-xtensa/cpumask.h +++ b/arch/xtensa/include/asm/cpumask.h | |||
diff --git a/include/asm-xtensa/cputime.h b/arch/xtensa/include/asm/cputime.h index a7fb864a50ae..a7fb864a50ae 100644 --- a/include/asm-xtensa/cputime.h +++ b/arch/xtensa/include/asm/cputime.h | |||
diff --git a/include/asm-xtensa/current.h b/arch/xtensa/include/asm/current.h index 8d1eb5d78649..8d1eb5d78649 100644 --- a/include/asm-xtensa/current.h +++ b/arch/xtensa/include/asm/current.h | |||
diff --git a/include/asm-xtensa/delay.h b/arch/xtensa/include/asm/delay.h index e1d8c9e010c1..e1d8c9e010c1 100644 --- a/include/asm-xtensa/delay.h +++ b/arch/xtensa/include/asm/delay.h | |||
diff --git a/include/asm-xtensa/device.h b/arch/xtensa/include/asm/device.h index d8f9872b0e2d..d8f9872b0e2d 100644 --- a/include/asm-xtensa/device.h +++ b/arch/xtensa/include/asm/device.h | |||
diff --git a/include/asm-xtensa/div64.h b/arch/xtensa/include/asm/div64.h index f35678cb0a9b..f35678cb0a9b 100644 --- a/include/asm-xtensa/div64.h +++ b/arch/xtensa/include/asm/div64.h | |||
diff --git a/include/asm-xtensa/dma-mapping.h b/arch/xtensa/include/asm/dma-mapping.h index 51882ae3db4d..51882ae3db4d 100644 --- a/include/asm-xtensa/dma-mapping.h +++ b/arch/xtensa/include/asm/dma-mapping.h | |||
diff --git a/include/asm-xtensa/dma.h b/arch/xtensa/include/asm/dma.h index e30f3abf48f0..e30f3abf48f0 100644 --- a/include/asm-xtensa/dma.h +++ b/arch/xtensa/include/asm/dma.h | |||
diff --git a/include/asm-xtensa/elf.h b/arch/xtensa/include/asm/elf.h index c3f53e755ca5..c3f53e755ca5 100644 --- a/include/asm-xtensa/elf.h +++ b/arch/xtensa/include/asm/elf.h | |||
diff --git a/include/asm-xtensa/emergency-restart.h b/arch/xtensa/include/asm/emergency-restart.h index 108d8c48e42e..108d8c48e42e 100644 --- a/include/asm-xtensa/emergency-restart.h +++ b/arch/xtensa/include/asm/emergency-restart.h | |||
diff --git a/include/asm-xtensa/errno.h b/arch/xtensa/include/asm/errno.h index a0f3b96b79b4..a0f3b96b79b4 100644 --- a/include/asm-xtensa/errno.h +++ b/arch/xtensa/include/asm/errno.h | |||
diff --git a/include/asm-xtensa/fb.h b/arch/xtensa/include/asm/fb.h index c7df38030992..c7df38030992 100644 --- a/include/asm-xtensa/fb.h +++ b/arch/xtensa/include/asm/fb.h | |||
diff --git a/include/asm-xtensa/fcntl.h b/arch/xtensa/include/asm/fcntl.h index 46ab12db5739..46ab12db5739 100644 --- a/include/asm-xtensa/fcntl.h +++ b/arch/xtensa/include/asm/fcntl.h | |||
diff --git a/include/asm-xtensa/futex.h b/arch/xtensa/include/asm/futex.h index 0b745828f42b..0b745828f42b 100644 --- a/include/asm-xtensa/futex.h +++ b/arch/xtensa/include/asm/futex.h | |||
diff --git a/include/asm-xtensa/hardirq.h b/arch/xtensa/include/asm/hardirq.h index 87cb19d1b10c..87cb19d1b10c 100644 --- a/include/asm-xtensa/hardirq.h +++ b/arch/xtensa/include/asm/hardirq.h | |||
diff --git a/include/asm-xtensa/highmem.h b/arch/xtensa/include/asm/highmem.h index 0a046ca5a687..0a046ca5a687 100644 --- a/include/asm-xtensa/highmem.h +++ b/arch/xtensa/include/asm/highmem.h | |||
diff --git a/include/asm-xtensa/hw_irq.h b/arch/xtensa/include/asm/hw_irq.h index 3ddbea759b2b..3ddbea759b2b 100644 --- a/include/asm-xtensa/hw_irq.h +++ b/arch/xtensa/include/asm/hw_irq.h | |||
diff --git a/include/asm-xtensa/io.h b/arch/xtensa/include/asm/io.h index 07b7299dab20..07b7299dab20 100644 --- a/include/asm-xtensa/io.h +++ b/arch/xtensa/include/asm/io.h | |||
diff --git a/include/asm-xtensa/ioctl.h b/arch/xtensa/include/asm/ioctl.h index b279fe06dfe5..b279fe06dfe5 100644 --- a/include/asm-xtensa/ioctl.h +++ b/arch/xtensa/include/asm/ioctl.h | |||
diff --git a/include/asm-xtensa/ioctls.h b/arch/xtensa/include/asm/ioctls.h index 0ffa942954b9..0ffa942954b9 100644 --- a/include/asm-xtensa/ioctls.h +++ b/arch/xtensa/include/asm/ioctls.h | |||
diff --git a/include/asm-xtensa/ipcbuf.h b/arch/xtensa/include/asm/ipcbuf.h index c33aa6a42145..c33aa6a42145 100644 --- a/include/asm-xtensa/ipcbuf.h +++ b/arch/xtensa/include/asm/ipcbuf.h | |||
diff --git a/include/asm-xtensa/irq.h b/arch/xtensa/include/asm/irq.h index fc73b7f11aff..1620d1e0e695 100644 --- a/include/asm-xtensa/irq.h +++ b/arch/xtensa/include/asm/irq.h | |||
@@ -11,8 +11,8 @@ | |||
11 | #ifndef _XTENSA_IRQ_H | 11 | #ifndef _XTENSA_IRQ_H |
12 | #define _XTENSA_IRQ_H | 12 | #define _XTENSA_IRQ_H |
13 | 13 | ||
14 | #include <asm/platform/hardware.h> | 14 | #include <platform/hardware.h> |
15 | #include <asm/variant/core.h> | 15 | #include <variant/core.h> |
16 | 16 | ||
17 | #ifndef PLATFORM_NR_IRQS | 17 | #ifndef PLATFORM_NR_IRQS |
18 | # define PLATFORM_NR_IRQS 0 | 18 | # define PLATFORM_NR_IRQS 0 |
diff --git a/include/asm-xtensa/irq_regs.h b/arch/xtensa/include/asm/irq_regs.h index 3dd9c0b70270..3dd9c0b70270 100644 --- a/include/asm-xtensa/irq_regs.h +++ b/arch/xtensa/include/asm/irq_regs.h | |||
diff --git a/include/asm-xtensa/kdebug.h b/arch/xtensa/include/asm/kdebug.h index 6ece1b037665..6ece1b037665 100644 --- a/include/asm-xtensa/kdebug.h +++ b/arch/xtensa/include/asm/kdebug.h | |||
diff --git a/include/asm-xtensa/kmap_types.h b/arch/xtensa/include/asm/kmap_types.h index 9e822d2e3bce..9e822d2e3bce 100644 --- a/include/asm-xtensa/kmap_types.h +++ b/arch/xtensa/include/asm/kmap_types.h | |||
diff --git a/include/asm-xtensa/linkage.h b/arch/xtensa/include/asm/linkage.h index bf2128a99d79..bf2128a99d79 100644 --- a/include/asm-xtensa/linkage.h +++ b/arch/xtensa/include/asm/linkage.h | |||
diff --git a/include/asm-xtensa/local.h b/arch/xtensa/include/asm/local.h index 48723e550d14..48723e550d14 100644 --- a/include/asm-xtensa/local.h +++ b/arch/xtensa/include/asm/local.h | |||
diff --git a/include/asm-xtensa/mman.h b/arch/xtensa/include/asm/mman.h index 9b92620c8a1e..9b92620c8a1e 100644 --- a/include/asm-xtensa/mman.h +++ b/arch/xtensa/include/asm/mman.h | |||
diff --git a/include/asm-xtensa/mmu.h b/arch/xtensa/include/asm/mmu.h index 44c5bb04c55c..44c5bb04c55c 100644 --- a/include/asm-xtensa/mmu.h +++ b/arch/xtensa/include/asm/mmu.h | |||
diff --git a/include/asm-xtensa/mmu_context.h b/arch/xtensa/include/asm/mmu_context.h index c0fd8e5b4513..c0fd8e5b4513 100644 --- a/include/asm-xtensa/mmu_context.h +++ b/arch/xtensa/include/asm/mmu_context.h | |||
diff --git a/include/asm-xtensa/module.h b/arch/xtensa/include/asm/module.h index d9b34bee4d42..d9b34bee4d42 100644 --- a/include/asm-xtensa/module.h +++ b/arch/xtensa/include/asm/module.h | |||
diff --git a/include/asm-xtensa/msgbuf.h b/arch/xtensa/include/asm/msgbuf.h index 693c96755280..693c96755280 100644 --- a/include/asm-xtensa/msgbuf.h +++ b/arch/xtensa/include/asm/msgbuf.h | |||
diff --git a/include/asm-xtensa/mutex.h b/arch/xtensa/include/asm/mutex.h index 458c1f7fbc18..458c1f7fbc18 100644 --- a/include/asm-xtensa/mutex.h +++ b/arch/xtensa/include/asm/mutex.h | |||
diff --git a/include/asm-xtensa/page.h b/arch/xtensa/include/asm/page.h index 11f7dc2dbec7..11f7dc2dbec7 100644 --- a/include/asm-xtensa/page.h +++ b/arch/xtensa/include/asm/page.h | |||
diff --git a/include/asm-xtensa/param.h b/arch/xtensa/include/asm/param.h index ba03d5aeab6b..ba03d5aeab6b 100644 --- a/include/asm-xtensa/param.h +++ b/arch/xtensa/include/asm/param.h | |||
diff --git a/include/asm-xtensa/pci-bridge.h b/arch/xtensa/include/asm/pci-bridge.h index 00fcbd7c534a..00fcbd7c534a 100644 --- a/include/asm-xtensa/pci-bridge.h +++ b/arch/xtensa/include/asm/pci-bridge.h | |||
diff --git a/include/asm-xtensa/pci.h b/arch/xtensa/include/asm/pci.h index 66410acf18b4..66410acf18b4 100644 --- a/include/asm-xtensa/pci.h +++ b/arch/xtensa/include/asm/pci.h | |||
diff --git a/include/asm-xtensa/percpu.h b/arch/xtensa/include/asm/percpu.h index 6d2bc2ada9d1..6d2bc2ada9d1 100644 --- a/include/asm-xtensa/percpu.h +++ b/arch/xtensa/include/asm/percpu.h | |||
diff --git a/include/asm-xtensa/pgalloc.h b/arch/xtensa/include/asm/pgalloc.h index 4f4a7987eded..4f4a7987eded 100644 --- a/include/asm-xtensa/pgalloc.h +++ b/arch/xtensa/include/asm/pgalloc.h | |||
diff --git a/include/asm-xtensa/pgtable.h b/arch/xtensa/include/asm/pgtable.h index 8014d96b21f1..8014d96b21f1 100644 --- a/include/asm-xtensa/pgtable.h +++ b/arch/xtensa/include/asm/pgtable.h | |||
diff --git a/include/asm-xtensa/platform.h b/arch/xtensa/include/asm/platform.h index 48135a9718b0..e3d5a48ad495 100644 --- a/include/asm-xtensa/platform.h +++ b/arch/xtensa/include/asm/platform.h | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * include/asm-xtensa/platform.h | ||
3 | * | ||
4 | * Platform specific functions | 2 | * Platform specific functions |
5 | * | 3 | * |
6 | * This file is subject to the terms and conditions of the GNU General | 4 | * This file is subject to the terms and conditions of the GNU General |
diff --git a/include/asm-xtensa/poll.h b/arch/xtensa/include/asm/poll.h index 9d2d5993f068..9d2d5993f068 100644 --- a/include/asm-xtensa/poll.h +++ b/arch/xtensa/include/asm/poll.h | |||
diff --git a/include/asm-xtensa/posix_types.h b/arch/xtensa/include/asm/posix_types.h index 43f9dd1126a4..43f9dd1126a4 100644 --- a/include/asm-xtensa/posix_types.h +++ b/arch/xtensa/include/asm/posix_types.h | |||
diff --git a/include/asm-xtensa/processor.h b/arch/xtensa/include/asm/processor.h index 4918a4e96d42..07387d3b99f4 100644 --- a/include/asm-xtensa/processor.h +++ b/arch/xtensa/include/asm/processor.h | |||
@@ -11,7 +11,7 @@ | |||
11 | #ifndef _XTENSA_PROCESSOR_H | 11 | #ifndef _XTENSA_PROCESSOR_H |
12 | #define _XTENSA_PROCESSOR_H | 12 | #define _XTENSA_PROCESSOR_H |
13 | 13 | ||
14 | #include <asm/variant/core.h> | 14 | #include <variant/core.h> |
15 | #include <asm/coprocessor.h> | 15 | #include <asm/coprocessor.h> |
16 | 16 | ||
17 | #include <linux/compiler.h> | 17 | #include <linux/compiler.h> |
diff --git a/include/asm-xtensa/ptrace.h b/arch/xtensa/include/asm/ptrace.h index 089b0db44816..905e1e619654 100644 --- a/include/asm-xtensa/ptrace.h +++ b/arch/xtensa/include/asm/ptrace.h | |||
@@ -111,7 +111,7 @@ struct pt_regs { | |||
111 | unsigned long areg[16]; /* 128 (64) */ | 111 | unsigned long areg[16]; /* 128 (64) */ |
112 | }; | 112 | }; |
113 | 113 | ||
114 | #include <asm/variant/core.h> | 114 | #include <variant/core.h> |
115 | 115 | ||
116 | # define task_pt_regs(tsk) ((struct pt_regs*) \ | 116 | # define task_pt_regs(tsk) ((struct pt_regs*) \ |
117 | (task_stack_page(tsk) + KERNEL_STACK_SIZE - (XCHAL_NUM_AREGS-16)*4) - 1) | 117 | (task_stack_page(tsk) + KERNEL_STACK_SIZE - (XCHAL_NUM_AREGS-16)*4) - 1) |
diff --git a/include/asm-xtensa/regs.h b/arch/xtensa/include/asm/regs.h index d4baed246928..d4baed246928 100644 --- a/include/asm-xtensa/regs.h +++ b/arch/xtensa/include/asm/regs.h | |||
diff --git a/include/asm-xtensa/resource.h b/arch/xtensa/include/asm/resource.h index 17b5ab311771..17b5ab311771 100644 --- a/include/asm-xtensa/resource.h +++ b/arch/xtensa/include/asm/resource.h | |||
diff --git a/include/asm-xtensa/rmap.h b/arch/xtensa/include/asm/rmap.h index 649588b7e9ad..649588b7e9ad 100644 --- a/include/asm-xtensa/rmap.h +++ b/arch/xtensa/include/asm/rmap.h | |||
diff --git a/include/asm-xtensa/rwsem.h b/arch/xtensa/include/asm/rwsem.h index e39edf5c86f2..e39edf5c86f2 100644 --- a/include/asm-xtensa/rwsem.h +++ b/arch/xtensa/include/asm/rwsem.h | |||
diff --git a/include/asm-xtensa/scatterlist.h b/arch/xtensa/include/asm/scatterlist.h index 810080bb0a2b..810080bb0a2b 100644 --- a/include/asm-xtensa/scatterlist.h +++ b/arch/xtensa/include/asm/scatterlist.h | |||
diff --git a/include/asm-xtensa/sections.h b/arch/xtensa/include/asm/sections.h index 40b5191b55a2..40b5191b55a2 100644 --- a/include/asm-xtensa/sections.h +++ b/arch/xtensa/include/asm/sections.h | |||
diff --git a/include/asm-xtensa/segment.h b/arch/xtensa/include/asm/segment.h index a2eb547a1a75..a2eb547a1a75 100644 --- a/include/asm-xtensa/segment.h +++ b/arch/xtensa/include/asm/segment.h | |||
diff --git a/include/asm-xtensa/sembuf.h b/arch/xtensa/include/asm/sembuf.h index c15870493b33..c15870493b33 100644 --- a/include/asm-xtensa/sembuf.h +++ b/arch/xtensa/include/asm/sembuf.h | |||
diff --git a/include/asm-xtensa/serial.h b/arch/xtensa/include/asm/serial.h index ec04114fcf0b..a8a2493260f6 100644 --- a/include/asm-xtensa/serial.h +++ b/arch/xtensa/include/asm/serial.h | |||
@@ -13,6 +13,6 @@ | |||
13 | #ifndef _XTENSA_SERIAL_H | 13 | #ifndef _XTENSA_SERIAL_H |
14 | #define _XTENSA_SERIAL_H | 14 | #define _XTENSA_SERIAL_H |
15 | 15 | ||
16 | #include <asm/platform/serial.h> | 16 | #include <platform/serial.h> |
17 | 17 | ||
18 | #endif /* _XTENSA_SERIAL_H */ | 18 | #endif /* _XTENSA_SERIAL_H */ |
diff --git a/include/asm-xtensa/setup.h b/arch/xtensa/include/asm/setup.h index e3636520d8cc..e3636520d8cc 100644 --- a/include/asm-xtensa/setup.h +++ b/arch/xtensa/include/asm/setup.h | |||
diff --git a/include/asm-xtensa/shmbuf.h b/arch/xtensa/include/asm/shmbuf.h index ad4b0121782c..ad4b0121782c 100644 --- a/include/asm-xtensa/shmbuf.h +++ b/arch/xtensa/include/asm/shmbuf.h | |||
diff --git a/include/asm-xtensa/shmparam.h b/arch/xtensa/include/asm/shmparam.h index c8cc16c3da9e..c8cc16c3da9e 100644 --- a/include/asm-xtensa/shmparam.h +++ b/arch/xtensa/include/asm/shmparam.h | |||
diff --git a/include/asm-xtensa/sigcontext.h b/arch/xtensa/include/asm/sigcontext.h index 03383af8c3b7..03383af8c3b7 100644 --- a/include/asm-xtensa/sigcontext.h +++ b/arch/xtensa/include/asm/sigcontext.h | |||
diff --git a/include/asm-xtensa/siginfo.h b/arch/xtensa/include/asm/siginfo.h index 6916248295df..6916248295df 100644 --- a/include/asm-xtensa/siginfo.h +++ b/arch/xtensa/include/asm/siginfo.h | |||
diff --git a/include/asm-xtensa/signal.h b/arch/xtensa/include/asm/signal.h index 633ba73bc4d2..633ba73bc4d2 100644 --- a/include/asm-xtensa/signal.h +++ b/arch/xtensa/include/asm/signal.h | |||
diff --git a/include/asm-xtensa/smp.h b/arch/xtensa/include/asm/smp.h index 83c569e3bdbd..83c569e3bdbd 100644 --- a/include/asm-xtensa/smp.h +++ b/arch/xtensa/include/asm/smp.h | |||
diff --git a/include/asm-xtensa/socket.h b/arch/xtensa/include/asm/socket.h index 6100682b1da2..6100682b1da2 100644 --- a/include/asm-xtensa/socket.h +++ b/arch/xtensa/include/asm/socket.h | |||
diff --git a/include/asm-xtensa/sockios.h b/arch/xtensa/include/asm/sockios.h index efe0af379f01..efe0af379f01 100644 --- a/include/asm-xtensa/sockios.h +++ b/arch/xtensa/include/asm/sockios.h | |||
diff --git a/include/asm-xtensa/spinlock.h b/arch/xtensa/include/asm/spinlock.h index 8ff23649581b..8ff23649581b 100644 --- a/include/asm-xtensa/spinlock.h +++ b/arch/xtensa/include/asm/spinlock.h | |||
diff --git a/include/asm-xtensa/stat.h b/arch/xtensa/include/asm/stat.h index c4992038cee0..c4992038cee0 100644 --- a/include/asm-xtensa/stat.h +++ b/arch/xtensa/include/asm/stat.h | |||
diff --git a/include/asm-xtensa/statfs.h b/arch/xtensa/include/asm/statfs.h index 9c3d1a213136..9c3d1a213136 100644 --- a/include/asm-xtensa/statfs.h +++ b/arch/xtensa/include/asm/statfs.h | |||
diff --git a/include/asm-xtensa/string.h b/arch/xtensa/include/asm/string.h index 5fb8c27cbef5..5fb8c27cbef5 100644 --- a/include/asm-xtensa/string.h +++ b/arch/xtensa/include/asm/string.h | |||
diff --git a/include/asm-xtensa/syscall.h b/arch/xtensa/include/asm/syscall.h index 05cebf8f62b1..05cebf8f62b1 100644 --- a/include/asm-xtensa/syscall.h +++ b/arch/xtensa/include/asm/syscall.h | |||
diff --git a/include/asm-xtensa/system.h b/arch/xtensa/include/asm/system.h index 62b1e8f3c13c..62b1e8f3c13c 100644 --- a/include/asm-xtensa/system.h +++ b/arch/xtensa/include/asm/system.h | |||
diff --git a/include/asm-xtensa/termbits.h b/arch/xtensa/include/asm/termbits.h index 85aa6a3c0b6e..85aa6a3c0b6e 100644 --- a/include/asm-xtensa/termbits.h +++ b/arch/xtensa/include/asm/termbits.h | |||
diff --git a/include/asm-xtensa/termios.h b/arch/xtensa/include/asm/termios.h index 4673f42f88a7..4673f42f88a7 100644 --- a/include/asm-xtensa/termios.h +++ b/arch/xtensa/include/asm/termios.h | |||
diff --git a/include/asm-xtensa/thread_info.h b/arch/xtensa/include/asm/thread_info.h index 0f4fe1faf9ba..0f4fe1faf9ba 100644 --- a/include/asm-xtensa/thread_info.h +++ b/arch/xtensa/include/asm/thread_info.h | |||
diff --git a/include/asm-xtensa/timex.h b/arch/xtensa/include/asm/timex.h index b83a8181d448..b83a8181d448 100644 --- a/include/asm-xtensa/timex.h +++ b/arch/xtensa/include/asm/timex.h | |||
diff --git a/include/asm-xtensa/tlb.h b/arch/xtensa/include/asm/tlb.h index 31c220faca02..31c220faca02 100644 --- a/include/asm-xtensa/tlb.h +++ b/arch/xtensa/include/asm/tlb.h | |||
diff --git a/include/asm-xtensa/tlbflush.h b/arch/xtensa/include/asm/tlbflush.h index 46d240074f74..46d240074f74 100644 --- a/include/asm-xtensa/tlbflush.h +++ b/arch/xtensa/include/asm/tlbflush.h | |||
diff --git a/include/asm-xtensa/topology.h b/arch/xtensa/include/asm/topology.h index 7309e38a0ccb..7309e38a0ccb 100644 --- a/include/asm-xtensa/topology.h +++ b/arch/xtensa/include/asm/topology.h | |||
diff --git a/include/asm-xtensa/types.h b/arch/xtensa/include/asm/types.h index c89569a8da0c..c89569a8da0c 100644 --- a/include/asm-xtensa/types.h +++ b/arch/xtensa/include/asm/types.h | |||
diff --git a/include/asm-xtensa/uaccess.h b/arch/xtensa/include/asm/uaccess.h index b8528426ab1f..b8528426ab1f 100644 --- a/include/asm-xtensa/uaccess.h +++ b/arch/xtensa/include/asm/uaccess.h | |||
diff --git a/include/asm-xtensa/ucontext.h b/arch/xtensa/include/asm/ucontext.h index 94c94ed3e00a..94c94ed3e00a 100644 --- a/include/asm-xtensa/ucontext.h +++ b/arch/xtensa/include/asm/ucontext.h | |||
diff --git a/include/asm-xtensa/unaligned.h b/arch/xtensa/include/asm/unaligned.h index 8f3424fc5d18..8e7ed046bfed 100644 --- a/include/asm-xtensa/unaligned.h +++ b/arch/xtensa/include/asm/unaligned.h | |||
@@ -10,20 +10,20 @@ | |||
10 | #ifndef _ASM_XTENSA_UNALIGNED_H | 10 | #ifndef _ASM_XTENSA_UNALIGNED_H |
11 | #define _ASM_XTENSA_UNALIGNED_H | 11 | #define _ASM_XTENSA_UNALIGNED_H |
12 | 12 | ||
13 | #ifdef __XTENSA_EL__ | 13 | #include <asm/byteorder.h> |
14 | # include <linux/unaligned/le_memmove.h> | 14 | |
15 | #ifdef __LITTLE_ENDIAN | ||
16 | # include <linux/unaligned/le_struct.h> | ||
15 | # include <linux/unaligned/be_byteshift.h> | 17 | # include <linux/unaligned/be_byteshift.h> |
16 | # include <linux/unaligned/generic.h> | 18 | # include <linux/unaligned/generic.h> |
17 | # define get_unaligned __get_unaligned_le | 19 | # define get_unaligned __get_unaligned_le |
18 | # define put_unaligned __put_unaligned_le | 20 | # define put_unaligned __put_unaligned_le |
19 | #elif defined(__XTENSA_EB__) | 21 | #else |
20 | # include <linux/unaligned/be_memmove.h> | 22 | # include <linux/unaligned/be_struct.h> |
21 | # include <linux/unaligned/le_byteshift.h> | 23 | # include <linux/unaligned/le_byteshift.h> |
22 | # include <linux/unaligned/generic.h> | 24 | # include <linux/unaligned/generic.h> |
23 | # define get_unaligned __get_unaligned_be | 25 | # define get_unaligned __get_unaligned_be |
24 | # define put_unaligned __put_unaligned_be | 26 | # define put_unaligned __put_unaligned_be |
25 | #else | ||
26 | # error processor byte order undefined! | ||
27 | #endif | 27 | #endif |
28 | 28 | ||
29 | #endif /* _ASM_XTENSA_UNALIGNED_H */ | 29 | #endif /* _ASM_XTENSA_UNALIGNED_H */ |
diff --git a/include/asm-xtensa/unistd.h b/arch/xtensa/include/asm/unistd.h index c092c8fbb2cf..c092c8fbb2cf 100644 --- a/include/asm-xtensa/unistd.h +++ b/arch/xtensa/include/asm/unistd.h | |||
diff --git a/include/asm-xtensa/user.h b/arch/xtensa/include/asm/user.h index 2c3ed23354a8..2c3ed23354a8 100644 --- a/include/asm-xtensa/user.h +++ b/arch/xtensa/include/asm/user.h | |||
diff --git a/include/asm-xtensa/vga.h b/arch/xtensa/include/asm/vga.h index 1fd8cab3a297..1fd8cab3a297 100644 --- a/include/asm-xtensa/vga.h +++ b/arch/xtensa/include/asm/vga.h | |||
diff --git a/include/asm-xtensa/xor.h b/arch/xtensa/include/asm/xor.h index e7b1f083991d..e7b1f083991d 100644 --- a/include/asm-xtensa/xor.h +++ b/arch/xtensa/include/asm/xor.h | |||
diff --git a/arch/xtensa/kernel/entry.S b/arch/xtensa/kernel/entry.S index dfd35dcc1cb5..a51d36a27389 100644 --- a/arch/xtensa/kernel/entry.S +++ b/arch/xtensa/kernel/entry.S | |||
@@ -25,7 +25,7 @@ | |||
25 | #include <asm/page.h> | 25 | #include <asm/page.h> |
26 | #include <asm/signal.h> | 26 | #include <asm/signal.h> |
27 | #include <asm/tlbflush.h> | 27 | #include <asm/tlbflush.h> |
28 | #include <asm/variant/tie-asm.h> | 28 | #include <variant/tie-asm.h> |
29 | 29 | ||
30 | /* Unimplemented features. */ | 30 | /* Unimplemented features. */ |
31 | 31 | ||
diff --git a/arch/xtensa/kernel/vmlinux.lds.S b/arch/xtensa/kernel/vmlinux.lds.S index 51f4fb6f16f9..d506774f4b05 100644 --- a/arch/xtensa/kernel/vmlinux.lds.S +++ b/arch/xtensa/kernel/vmlinux.lds.S | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include <asm-generic/vmlinux.lds.h> | 17 | #include <asm-generic/vmlinux.lds.h> |
18 | 18 | ||
19 | #include <asm/variant/core.h> | 19 | #include <variant/core.h> |
20 | OUTPUT_ARCH(xtensa) | 20 | OUTPUT_ARCH(xtensa) |
21 | ENTRY(_start) | 21 | ENTRY(_start) |
22 | 22 | ||
diff --git a/arch/xtensa/lib/checksum.S b/arch/xtensa/lib/checksum.S index 9d9cd990afa6..df397f932d0e 100644 --- a/arch/xtensa/lib/checksum.S +++ b/arch/xtensa/lib/checksum.S | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include <asm/errno.h> | 17 | #include <asm/errno.h> |
18 | #include <linux/linkage.h> | 18 | #include <linux/linkage.h> |
19 | #include <asm/variant/core.h> | 19 | #include <variant/core.h> |
20 | 20 | ||
21 | /* | 21 | /* |
22 | * computes a partial checksum, e.g. for TCP/UDP fragments | 22 | * computes a partial checksum, e.g. for TCP/UDP fragments |
diff --git a/arch/xtensa/lib/memcopy.S b/arch/xtensa/lib/memcopy.S index ddda8f4bc862..ea59dcd03866 100644 --- a/arch/xtensa/lib/memcopy.S +++ b/arch/xtensa/lib/memcopy.S | |||
@@ -9,7 +9,7 @@ | |||
9 | * Copyright (C) 2002 - 2005 Tensilica Inc. | 9 | * Copyright (C) 2002 - 2005 Tensilica Inc. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <asm/variant/core.h> | 12 | #include <variant/core.h> |
13 | 13 | ||
14 | .macro src_b r, w0, w1 | 14 | .macro src_b r, w0, w1 |
15 | #ifdef __XTENSA_EB__ | 15 | #ifdef __XTENSA_EB__ |
diff --git a/arch/xtensa/lib/memset.S b/arch/xtensa/lib/memset.S index 56a17495b2db..10b8c400f175 100644 --- a/arch/xtensa/lib/memset.S +++ b/arch/xtensa/lib/memset.S | |||
@@ -11,7 +11,7 @@ | |||
11 | * Copyright (C) 2002 Tensilica Inc. | 11 | * Copyright (C) 2002 Tensilica Inc. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <asm/variant/core.h> | 14 | #include <variant/core.h> |
15 | 15 | ||
16 | /* | 16 | /* |
17 | * void *memset(void *dst, int c, size_t length) | 17 | * void *memset(void *dst, int c, size_t length) |
diff --git a/arch/xtensa/lib/strncpy_user.S b/arch/xtensa/lib/strncpy_user.S index b2655d94558d..9f603cdaaa68 100644 --- a/arch/xtensa/lib/strncpy_user.S +++ b/arch/xtensa/lib/strncpy_user.S | |||
@@ -11,7 +11,7 @@ | |||
11 | * Copyright (C) 2002 Tensilica Inc. | 11 | * Copyright (C) 2002 Tensilica Inc. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <asm/variant/core.h> | 14 | #include <variant/core.h> |
15 | #include <linux/errno.h> | 15 | #include <linux/errno.h> |
16 | 16 | ||
17 | /* Load or store instructions that may cause exceptions use the EX macro. */ | 17 | /* Load or store instructions that may cause exceptions use the EX macro. */ |
diff --git a/arch/xtensa/lib/strnlen_user.S b/arch/xtensa/lib/strnlen_user.S index ad3f616322ca..23f2a89816a1 100644 --- a/arch/xtensa/lib/strnlen_user.S +++ b/arch/xtensa/lib/strnlen_user.S | |||
@@ -11,7 +11,7 @@ | |||
11 | * Copyright (C) 2002 Tensilica Inc. | 11 | * Copyright (C) 2002 Tensilica Inc. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <asm/variant/core.h> | 14 | #include <variant/core.h> |
15 | 15 | ||
16 | /* Load or store instructions that may cause exceptions use the EX macro. */ | 16 | /* Load or store instructions that may cause exceptions use the EX macro. */ |
17 | 17 | ||
diff --git a/arch/xtensa/lib/usercopy.S b/arch/xtensa/lib/usercopy.S index a8ab1d4fe0ae..46d60314bb16 100644 --- a/arch/xtensa/lib/usercopy.S +++ b/arch/xtensa/lib/usercopy.S | |||
@@ -53,7 +53,7 @@ | |||
53 | * a11/ original length | 53 | * a11/ original length |
54 | */ | 54 | */ |
55 | 55 | ||
56 | #include <asm/variant/core.h> | 56 | #include <variant/core.h> |
57 | 57 | ||
58 | #ifdef __XTENSA_EB__ | 58 | #ifdef __XTENSA_EB__ |
59 | #define ALIGN(R, W0, W1) src R, W0, W1 | 59 | #define ALIGN(R, W0, W1) src R, W0, W1 |
diff --git a/arch/xtensa/platforms/iss/console.c b/arch/xtensa/platforms/iss/console.c index 9141e3690731..efed8897bef3 100644 --- a/arch/xtensa/platforms/iss/console.c +++ b/arch/xtensa/platforms/iss/console.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * arch/xtensa/platform-iss/console.c | 2 | * arch/xtensa/platforms/iss/console.c |
3 | * | 3 | * |
4 | * This file is subject to the terms and conditions of the GNU General Public | 4 | * This file is subject to the terms and conditions of the GNU General Public |
5 | * License. See the file "COPYING" in the main directory of this archive | 5 | * License. See the file "COPYING" in the main directory of this archive |
@@ -24,7 +24,7 @@ | |||
24 | #include <asm/uaccess.h> | 24 | #include <asm/uaccess.h> |
25 | #include <asm/irq.h> | 25 | #include <asm/irq.h> |
26 | 26 | ||
27 | #include <asm/platform/simcall.h> | 27 | #include <platform/simcall.h> |
28 | 28 | ||
29 | #include <linux/tty.h> | 29 | #include <linux/tty.h> |
30 | #include <linux/tty_flip.h> | 30 | #include <linux/tty_flip.h> |
diff --git a/include/asm-xtensa/platform-iss/hardware.h b/arch/xtensa/platforms/iss/include/platform/hardware.h index 6930c12adc16..6930c12adc16 100644 --- a/include/asm-xtensa/platform-iss/hardware.h +++ b/arch/xtensa/platforms/iss/include/platform/hardware.h | |||
diff --git a/include/asm-xtensa/platform-iss/simcall.h b/arch/xtensa/platforms/iss/include/platform/simcall.h index b7952c06a2b7..b7952c06a2b7 100644 --- a/include/asm-xtensa/platform-iss/simcall.h +++ b/arch/xtensa/platforms/iss/include/platform/simcall.h | |||
diff --git a/arch/xtensa/platforms/iss/io.c b/arch/xtensa/platforms/iss/io.c index 5b161a5cb65f..571d0b24f895 100644 --- a/arch/xtensa/platforms/iss/io.c +++ b/arch/xtensa/platforms/iss/io.c | |||
@@ -3,7 +3,7 @@ | |||
3 | #if 0 | 3 | #if 0 |
4 | 4 | ||
5 | #include <asm/io.h> | 5 | #include <asm/io.h> |
6 | #include <xtensa/simcall.h> | 6 | #include <platform/platform-iss/simcall.h> |
7 | 7 | ||
8 | extern int __simc (); | 8 | extern int __simc (); |
9 | 9 | ||
diff --git a/arch/xtensa/platforms/iss/network.c b/arch/xtensa/platforms/iss/network.c index 64f057d89e73..edad4156d89a 100644 --- a/arch/xtensa/platforms/iss/network.c +++ b/arch/xtensa/platforms/iss/network.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * | 2 | * |
3 | * arch/xtensa/platform-iss/network.c | 3 | * arch/xtensa/platforms/iss/network.c |
4 | * | 4 | * |
5 | * Platform specific initialization. | 5 | * Platform specific initialization. |
6 | * | 6 | * |
@@ -33,7 +33,7 @@ | |||
33 | #include <linux/rtnetlink.h> | 33 | #include <linux/rtnetlink.h> |
34 | #include <linux/platform_device.h> | 34 | #include <linux/platform_device.h> |
35 | 35 | ||
36 | #include <asm/platform/simcall.h> | 36 | #include <platform/simcall.h> |
37 | 37 | ||
38 | #define DRIVER_NAME "iss-netdev" | 38 | #define DRIVER_NAME "iss-netdev" |
39 | #define ETH_MAX_PACKET 1500 | 39 | #define ETH_MAX_PACKET 1500 |
diff --git a/arch/xtensa/platforms/xt2000/Makefile b/arch/xtensa/platforms/xt2000/Makefile new file mode 100644 index 000000000000..54d018e45bfc --- /dev/null +++ b/arch/xtensa/platforms/xt2000/Makefile | |||
@@ -0,0 +1,5 @@ | |||
1 | # | ||
2 | # Makefile for the Tensilica XT2000 Emulation Board | ||
3 | # | ||
4 | |||
5 | obj-y = setup.o | ||
diff --git a/arch/xtensa/platforms/xt2000/include/platform/hardware.h b/arch/xtensa/platforms/xt2000/include/platform/hardware.h new file mode 100644 index 000000000000..41459ad07766 --- /dev/null +++ b/arch/xtensa/platforms/xt2000/include/platform/hardware.h | |||
@@ -0,0 +1,55 @@ | |||
1 | /* | ||
2 | * platform/hardware.h | ||
3 | * | ||
4 | * This file is subject to the terms and conditions of the GNU General Public | ||
5 | * License. See the file "COPYING" in the main directory of this archive | ||
6 | * for more details. | ||
7 | * | ||
8 | * Copyright (C) 2001 Tensilica Inc. | ||
9 | */ | ||
10 | |||
11 | /* | ||
12 | * This file contains the hardware configuration of the XT2000 board. | ||
13 | */ | ||
14 | |||
15 | #ifndef _XTENSA_XT2000_HARDWARE_H | ||
16 | #define _XTENSA_XT2000_HARDWARE_H | ||
17 | |||
18 | #include <variant/core.h> | ||
19 | #include <asm/io.h> | ||
20 | |||
21 | /* | ||
22 | * Memory configuration. | ||
23 | */ | ||
24 | |||
25 | #define PLATFORM_DEFAULT_MEM_START 0x00000000 | ||
26 | #define PLATFORM_DEFAULT_MEM_SIZE 0x08000000 | ||
27 | |||
28 | /* | ||
29 | * Number of platform IRQs | ||
30 | */ | ||
31 | #define PLATFORM_NR_IRQS 3 | ||
32 | /* | ||
33 | * On-board components. | ||
34 | */ | ||
35 | |||
36 | #define SONIC83934_INTNUM XCHAL_EXTINT3_NUM | ||
37 | #define SONIC83934_ADDR IOADDR(0x0d030000) | ||
38 | |||
39 | /* | ||
40 | * V3-PCI | ||
41 | */ | ||
42 | |||
43 | /* The XT2000 uses the V3 as a cascaded interrupt controller for the PCI bus */ | ||
44 | |||
45 | #define IRQ_PCI_A (XCHAL_NUM_INTERRUPTS + 0) | ||
46 | #define IRQ_PCI_B (XCHAL_NUM_INTERRUPTS + 1) | ||
47 | #define IRQ_PCI_C (XCHAL_NUM_INTERRUPTS + 2) | ||
48 | |||
49 | /* | ||
50 | * Various other components. | ||
51 | */ | ||
52 | |||
53 | #define XT2000_LED_ADDR IOADDR(0x0d040000) | ||
54 | |||
55 | #endif /* _XTENSA_XT2000_HARDWARE_H */ | ||
diff --git a/arch/xtensa/platforms/xt2000/include/platform/serial.h b/arch/xtensa/platforms/xt2000/include/platform/serial.h new file mode 100644 index 000000000000..7226cf732b47 --- /dev/null +++ b/arch/xtensa/platforms/xt2000/include/platform/serial.h | |||
@@ -0,0 +1,28 @@ | |||
1 | /* | ||
2 | * platform/serial.h | ||
3 | * | ||
4 | * This file is subject to the terms and conditions of the GNU General Public | ||
5 | * License. See the file "COPYING" in the main directory of this archive | ||
6 | * for more details. | ||
7 | * | ||
8 | * Copyright (C) 2001 Tensilica Inc. | ||
9 | */ | ||
10 | |||
11 | #ifndef _XTENSA_XT2000_SERIAL_H | ||
12 | #define _XTENSA_XT2000_SERIAL_H | ||
13 | |||
14 | #include <variant/core.h> | ||
15 | #include <asm/io.h> | ||
16 | |||
17 | /* National-Semi PC16552D DUART: */ | ||
18 | |||
19 | #define DUART16552_1_INTNUM XCHAL_EXTINT4_NUM | ||
20 | #define DUART16552_2_INTNUM XCHAL_EXTINT5_NUM | ||
21 | |||
22 | #define DUART16552_1_ADDR IOADDR(0x0d050020) /* channel 1 */ | ||
23 | #define DUART16552_2_ADDR IOADDR(0x0d050000) /* channel 2 */ | ||
24 | |||
25 | #define DUART16552_XTAL_FREQ 18432000 /* crystal frequency in Hz */ | ||
26 | #define BASE_BAUD ( DUART16552_XTAL_FREQ / 16 ) | ||
27 | |||
28 | #endif /* _XTENSA_XT2000_SERIAL_H */ | ||
diff --git a/arch/xtensa/platforms/xt2000/setup.c b/arch/xtensa/platforms/xt2000/setup.c new file mode 100644 index 000000000000..9e83940ac265 --- /dev/null +++ b/arch/xtensa/platforms/xt2000/setup.c | |||
@@ -0,0 +1,181 @@ | |||
1 | /* | ||
2 | * arch/xtensa/platforms/xt2000/setup.c | ||
3 | * | ||
4 | * Platform specific functions for the XT2000 board. | ||
5 | * | ||
6 | * Authors: Chris Zankel <chris@zankel.net> | ||
7 | * Joe Taylor <joe@tensilica.com> | ||
8 | * | ||
9 | * Copyright 2001 - 2004 Tensilica Inc. | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify it | ||
12 | * under the terms of the GNU General Public License as published by the | ||
13 | * Free Software Foundation; either version 2 of the License, or (at your | ||
14 | * option) any later version. | ||
15 | * | ||
16 | */ | ||
17 | #include <linux/stddef.h> | ||
18 | #include <linux/kernel.h> | ||
19 | #include <linux/init.h> | ||
20 | #include <linux/errno.h> | ||
21 | #include <linux/reboot.h> | ||
22 | #include <linux/kdev_t.h> | ||
23 | #include <linux/types.h> | ||
24 | #include <linux/major.h> | ||
25 | #include <linux/console.h> | ||
26 | #include <linux/delay.h> | ||
27 | #include <linux/stringify.h> | ||
28 | #include <linux/platform_device.h> | ||
29 | #include <linux/serial.h> | ||
30 | #include <linux/serial_8250.h> | ||
31 | |||
32 | #include <asm/processor.h> | ||
33 | #include <asm/platform.h> | ||
34 | #include <asm/bootparam.h> | ||
35 | #include <platform/hardware.h> | ||
36 | #include <platform/serial.h> | ||
37 | |||
38 | /* Assumes s points to an 8-chr string. No checking for NULL. */ | ||
39 | |||
40 | static void led_print (int f, char *s) | ||
41 | { | ||
42 | unsigned long* led_addr = (unsigned long*) (XT2000_LED_ADDR + 0xE0) + f; | ||
43 | int i; | ||
44 | for (i = f; i < 8; i++) | ||
45 | if ((*led_addr++ = *s++) == 0) | ||
46 | break; | ||
47 | } | ||
48 | |||
49 | void platform_halt(void) | ||
50 | { | ||
51 | led_print (0, " HALT "); | ||
52 | local_irq_disable(); | ||
53 | while (1); | ||
54 | } | ||
55 | |||
56 | void platform_power_off(void) | ||
57 | { | ||
58 | led_print (0, "POWEROFF"); | ||
59 | local_irq_disable(); | ||
60 | while (1); | ||
61 | } | ||
62 | |||
63 | void platform_restart(void) | ||
64 | { | ||
65 | /* Flush and reset the mmu, simulate a processor reset, and | ||
66 | * jump to the reset vector. */ | ||
67 | |||
68 | __asm__ __volatile__ ("movi a2, 15\n\t" | ||
69 | "wsr a2, " __stringify(ICOUNTLEVEL) "\n\t" | ||
70 | "movi a2, 0\n\t" | ||
71 | "wsr a2, " __stringify(ICOUNT) "\n\t" | ||
72 | "wsr a2, " __stringify(IBREAKENABLE) "\n\t" | ||
73 | "wsr a2, " __stringify(LCOUNT) "\n\t" | ||
74 | "movi a2, 0x1f\n\t" | ||
75 | "wsr a2, " __stringify(PS) "\n\t" | ||
76 | "isync\n\t" | ||
77 | "jx %0\n\t" | ||
78 | : | ||
79 | : "a" (XCHAL_RESET_VECTOR_VADDR) | ||
80 | : "a2" | ||
81 | ); | ||
82 | |||
83 | /* control never gets here */ | ||
84 | } | ||
85 | |||
86 | void __init platform_setup(char** cmdline) | ||
87 | { | ||
88 | led_print (0, "LINUX "); | ||
89 | } | ||
90 | |||
91 | /* early initialization */ | ||
92 | |||
93 | extern sysmem_info_t __initdata sysmem; | ||
94 | |||
95 | void platform_init(bp_tag_t* first) | ||
96 | { | ||
97 | /* Set default memory block if not provided by the bootloader. */ | ||
98 | |||
99 | if (sysmem.nr_banks == 0) { | ||
100 | sysmem.nr_banks = 1; | ||
101 | sysmem.bank[0].start = PLATFORM_DEFAULT_MEM_START; | ||
102 | sysmem.bank[0].end = PLATFORM_DEFAULT_MEM_START | ||
103 | + PLATFORM_DEFAULT_MEM_SIZE; | ||
104 | } | ||
105 | } | ||
106 | |||
107 | /* Heartbeat. Let the LED blink. */ | ||
108 | |||
109 | void platform_heartbeat(void) | ||
110 | { | ||
111 | static int i=0, t = 0; | ||
112 | |||
113 | if (--t < 0) | ||
114 | { | ||
115 | t = 59; | ||
116 | led_print(7, i ? ".": " "); | ||
117 | i ^= 1; | ||
118 | } | ||
119 | } | ||
120 | |||
121 | //#define RS_TABLE_SIZE 2 | ||
122 | //#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST) | ||
123 | |||
124 | #define _SERIAL_PORT(_base,_irq) \ | ||
125 | { \ | ||
126 | .mapbase = (_base), \ | ||
127 | .membase = (void*)(_base), \ | ||
128 | .irq = (_irq), \ | ||
129 | .uartclk = DUART16552_XTAL_FREQ, \ | ||
130 | .iotype = UPIO_MEM, \ | ||
131 | .flags = UPF_BOOT_AUTOCONF, \ | ||
132 | .regshift = 2, \ | ||
133 | } | ||
134 | |||
135 | static struct plat_serial8250_port xt2000_serial_data[] = { | ||
136 | #if XCHAL_HAVE_BE | ||
137 | _SERIAL_PORT(DUART16552_1_ADDR + 3, DUART16552_1_INTNUM), | ||
138 | _SERIAL_PORT(DUART16552_2_ADDR + 3, DUART16552_2_INTNUM), | ||
139 | #else | ||
140 | _SERIAL_PORT(DUART16552_1_ADDR, DUART16552_1_INTNUM), | ||
141 | _SERIAL_PORT(DUART16552_2_ADDR, DUART16552_2_INTNUM), | ||
142 | #endif | ||
143 | { } | ||
144 | }; | ||
145 | |||
146 | static struct platform_device xt2000_serial8250_device = { | ||
147 | .name = "serial8250", | ||
148 | .id = PLAT8250_DEV_PLATFORM, | ||
149 | .dev = { | ||
150 | .platform_data = xt2000_serial_data, | ||
151 | }, | ||
152 | }; | ||
153 | |||
154 | static struct resource xt2000_sonic_res[] = { | ||
155 | { | ||
156 | .start = SONIC83934_ADDR, | ||
157 | .end = SONIC83934_ADDR + 0xff, | ||
158 | .flags = IORESOURCE_MEM, | ||
159 | }, | ||
160 | { | ||
161 | .start = SONIC83934_INTNUM, | ||
162 | .end = SONIC83934_INTNUM, | ||
163 | .flags = IORESOURCE_IRQ, | ||
164 | }, | ||
165 | }; | ||
166 | |||
167 | static struct platform_device xt2000_sonic_device = { | ||
168 | .name = "xtsonic", | ||
169 | .num_resources = ARRAY_SIZE(xt2000_sonic_res), | ||
170 | .resource = xt2000_sonic_res, | ||
171 | }; | ||
172 | |||
173 | static int __init xt2000_setup_devinit(void) | ||
174 | { | ||
175 | platform_device_register(&xt2000_serial8250_device); | ||
176 | platform_device_register(&xt2000_sonic_device); | ||
177 | |||
178 | return 0; | ||
179 | } | ||
180 | |||
181 | device_initcall(xt2000_setup_devinit); | ||
diff --git a/include/asm-xtensa/variant-dc232b/core.h b/arch/xtensa/variants/dc232b/include/variant/core.h index 525bd3d90154..525bd3d90154 100644 --- a/include/asm-xtensa/variant-dc232b/core.h +++ b/arch/xtensa/variants/dc232b/include/variant/core.h | |||
diff --git a/include/asm-xtensa/variant-dc232b/tie-asm.h b/arch/xtensa/variants/dc232b/include/variant/tie-asm.h index ed4f53f529db..ed4f53f529db 100644 --- a/include/asm-xtensa/variant-dc232b/tie-asm.h +++ b/arch/xtensa/variants/dc232b/include/variant/tie-asm.h | |||
diff --git a/include/asm-xtensa/variant-dc232b/tie.h b/arch/xtensa/variants/dc232b/include/variant/tie.h index 018e81af4393..018e81af4393 100644 --- a/include/asm-xtensa/variant-dc232b/tie.h +++ b/arch/xtensa/variants/dc232b/include/variant/tie.h | |||
diff --git a/include/asm-xtensa/variant-fsf/core.h b/arch/xtensa/variants/fsf/include/variant/core.h index 2f337605c744..2f337605c744 100644 --- a/include/asm-xtensa/variant-fsf/core.h +++ b/arch/xtensa/variants/fsf/include/variant/core.h | |||
diff --git a/include/asm-xtensa/variant-fsf/tie-asm.h b/arch/xtensa/variants/fsf/include/variant/tie-asm.h index 68a73bf4ffc5..68a73bf4ffc5 100644 --- a/include/asm-xtensa/variant-fsf/tie-asm.h +++ b/arch/xtensa/variants/fsf/include/variant/tie-asm.h | |||
diff --git a/include/asm-xtensa/variant-fsf/tie.h b/arch/xtensa/variants/fsf/include/variant/tie.h index bf4020116df5..bf4020116df5 100644 --- a/include/asm-xtensa/variant-fsf/tie.h +++ b/arch/xtensa/variants/fsf/include/variant/tie.h | |||