diff options
author | LluĂs Batlle i Rossell <viric@viric.name> | 2012-03-30 10:48:05 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-07-23 08:56:21 -0400 |
commit | f9c9affc5799b9243d57b86fefda0dffbce3a32e (patch) | |
tree | da0e421ed52a9d4e8420cd931591de54af6c69c0 /arch/mips | |
parent | ea3952e01c47ac76d71857099cbfc2f487f507d2 (diff) |
MIPS: Enable vmlinuz for JZ4740
This patch adds support for building a compressed kernel for the JZ4740
architecture.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3563/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/Kconfig | 1 | ||||
-rw-r--r-- | arch/mips/boot/compressed/Makefile | 4 | ||||
-rw-r--r-- | arch/mips/boot/compressed/uart-16550.c | 5 |
3 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index b3e10fdd3898..debdb6e83409 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -209,6 +209,7 @@ config MACH_JZ4740 | |||
209 | select SYS_HAS_CPU_MIPS32_R1 | 209 | select SYS_HAS_CPU_MIPS32_R1 |
210 | select SYS_SUPPORTS_32BIT_KERNEL | 210 | select SYS_SUPPORTS_32BIT_KERNEL |
211 | select SYS_SUPPORTS_LITTLE_ENDIAN | 211 | select SYS_SUPPORTS_LITTLE_ENDIAN |
212 | select SYS_SUPPORTS_ZBOOT_UART16550 | ||
212 | select DMA_NONCOHERENT | 213 | select DMA_NONCOHERENT |
213 | select IRQ_CPU | 214 | select IRQ_CPU |
214 | select GENERIC_GPIO | 215 | select GENERIC_GPIO |
diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile index 5042d51b0512..c2a3fb0ffc87 100644 --- a/arch/mips/boot/compressed/Makefile +++ b/arch/mips/boot/compressed/Makefile | |||
@@ -58,8 +58,12 @@ $(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.bin.z FORCE | |||
58 | # Calculate the load address of the compressed kernel image | 58 | # Calculate the load address of the compressed kernel image |
59 | hostprogs-y := calc_vmlinuz_load_addr | 59 | hostprogs-y := calc_vmlinuz_load_addr |
60 | 60 | ||
61 | ifeq ($(CONFIG_MACH_JZ4740),y) | ||
62 | VMLINUZ_LOAD_ADDRESS := 0x80600000 | ||
63 | else | ||
61 | VMLINUZ_LOAD_ADDRESS = $(shell $(obj)/calc_vmlinuz_load_addr \ | 64 | VMLINUZ_LOAD_ADDRESS = $(shell $(obj)/calc_vmlinuz_load_addr \ |
62 | $(obj)/vmlinux.bin $(VMLINUX_LOAD_ADDRESS)) | 65 | $(obj)/vmlinux.bin $(VMLINUX_LOAD_ADDRESS)) |
66 | endif | ||
63 | 67 | ||
64 | vmlinuzobjs-y += $(obj)/piggy.o | 68 | vmlinuzobjs-y += $(obj)/piggy.o |
65 | 69 | ||
diff --git a/arch/mips/boot/compressed/uart-16550.c b/arch/mips/boot/compressed/uart-16550.c index c9caaf4fbf60..1c7b739b6a1d 100644 --- a/arch/mips/boot/compressed/uart-16550.c +++ b/arch/mips/boot/compressed/uart-16550.c | |||
@@ -18,6 +18,11 @@ | |||
18 | #define PORT(offset) (CKSEG1ADDR(AR7_REGS_UART0) + (4 * offset)) | 18 | #define PORT(offset) (CKSEG1ADDR(AR7_REGS_UART0) + (4 * offset)) |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | #ifdef CONFIG_MACH_JZ4740 | ||
22 | #define UART0_BASE 0xB0030000 | ||
23 | #define PORT(offset) (UART0_BASE + (4 * offset)) | ||
24 | #endif | ||
25 | |||
21 | #ifndef PORT | 26 | #ifndef PORT |
22 | #error please define the serial port address for your own machine | 27 | #error please define the serial port address for your own machine |
23 | #endif | 28 | #endif |