Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lluís Batlle i Rossell and committed by
Ralf Baechle
f9c9affc ea3952e0

+10
+1
arch/mips/Kconfig
··· 209 209 select SYS_HAS_CPU_MIPS32_R1 210 210 select SYS_SUPPORTS_32BIT_KERNEL 211 211 select SYS_SUPPORTS_LITTLE_ENDIAN 212 + select SYS_SUPPORTS_ZBOOT_UART16550 212 213 select DMA_NONCOHERENT 213 214 select IRQ_CPU 214 215 select GENERIC_GPIO
+4
arch/mips/boot/compressed/Makefile
··· 58 58 # Calculate the load address of the compressed kernel image 59 59 hostprogs-y := calc_vmlinuz_load_addr 60 60 61 + ifeq ($(CONFIG_MACH_JZ4740),y) 62 + VMLINUZ_LOAD_ADDRESS := 0x80600000 63 + else 61 64 VMLINUZ_LOAD_ADDRESS = $(shell $(obj)/calc_vmlinuz_load_addr \ 62 65 $(obj)/vmlinux.bin $(VMLINUX_LOAD_ADDRESS)) 66 + endif 63 67 64 68 vmlinuzobjs-y += $(obj)/piggy.o 65 69
+5
arch/mips/boot/compressed/uart-16550.c
··· 18 18 #define PORT(offset) (CKSEG1ADDR(AR7_REGS_UART0) + (4 * offset)) 19 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 26 #ifndef PORT 22 27 #error please define the serial port address for your own machine 23 28 #endif