Skip to content

Commit f9c9aff

Browse files
viricralfbaechle
authored andcommitted
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>
1 parent ea3952e commit f9c9aff

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ config MACH_JZ4740
209209
select SYS_HAS_CPU_MIPS32_R1
210210
select SYS_SUPPORTS_32BIT_KERNEL
211211
select SYS_SUPPORTS_LITTLE_ENDIAN
212+
select SYS_SUPPORTS_ZBOOT_UART16550
212213
select DMA_NONCOHERENT
213214
select IRQ_CPU
214215
select GENERIC_GPIO

‎arch/mips/boot/compressed/Makefile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ $(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.bin.z FORCE
5858
# Calculate the load address of the compressed kernel image
5959
hostprogs-y := calc_vmlinuz_load_addr
6060

61+
ifeq ($(CONFIG_MACH_JZ4740),y)
62+
VMLINUZ_LOAD_ADDRESS := 0x80600000
63+
else
6164
VMLINUZ_LOAD_ADDRESS = $(shell $(obj)/calc_vmlinuz_load_addr \
6265
$(obj)/vmlinux.bin $(VMLINUX_LOAD_ADDRESS))
66+
endif
6367

6468
vmlinuzobjs-y += $(obj)/piggy.o
6569

‎arch/mips/boot/compressed/uart-16550.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
#define PORT(offset) (CKSEG1ADDR(AR7_REGS_UART0) + (4 * offset))
1919
#endif
2020

21+
#ifdef CONFIG_MACH_JZ4740
22+
#define UART0_BASE 0xB0030000
23+
#define PORT(offset) (UART0_BASE + (4 * offset))
24+
#endif
25+
2126
#ifndef PORT
2227
#error please define the serial port address for your own machine
2328
#endif

0 commit comments

Comments
 (0)