Skip to content

Commit b3f0a25

Browse files
AlbanBedelralfbaechle
authored andcommitted
MIPS: ath79: Add zboot debug serial support
Reuse the early printk code to support the serial in zboot. We copy early_printk.c instead of referencing it because we need to build a different object file for the normal kernel and zboot. Signed-off-by: Alban Bedel <albeu@free.fr> Cc: Andrew Bresticker <abrestic@chromium.org> Cc: Alex Smith <alex.smith@imgtec.com> Cc: Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/12234/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent ea3a708 commit b3f0a25

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎arch/mips/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ config ATH79
137137
select SYS_SUPPORTS_32BIT_KERNEL
138138
select SYS_SUPPORTS_BIG_ENDIAN
139139
select SYS_SUPPORTS_MIPS16
140-
select SYS_SUPPORTS_ZBOOT
140+
select SYS_SUPPORTS_ZBOOT_UART_PROM
141141
select USE_OF
142142
help
143143
Support for the Atheros AR71XX/AR724X/AR913X SoCs.

‎arch/mips/boot/compressed/Makefile‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ vmlinuzobjs-$(CONFIG_DEBUG_ZBOOT) += $(obj)/dbg.o
3737
vmlinuzobjs-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o
3838
vmlinuzobjs-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART_PROM) += $(obj)/uart-prom.o
3939
vmlinuzobjs-$(CONFIG_MIPS_ALCHEMY) += $(obj)/uart-alchemy.o
40+
vmlinuzobjs-$(CONFIG_ATH79) += $(obj)/uart-ath79.o
4041
endif
4142

43+
extra-y += uart-ath79.c
44+
$(obj)/uart-ath79.c: $(srctree)/arch/mips/ath79/early_printk.c
45+
$(call cmd,shipped)
46+
4247
vmlinuzobjs-$(CONFIG_KERNEL_XZ) += $(obj)/ashldi3.o $(obj)/bswapsi.o
4348

4449
extra-y += ashldi3.c bswapsi.c

0 commit comments

Comments
 (0)