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

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>

authored by

Alban Bedel and committed by
Ralf Baechle
b3f0a250 ea3a7085

+6 -1
+1 -1
arch/mips/Kconfig
··· 137 137 select SYS_SUPPORTS_32BIT_KERNEL 138 138 select SYS_SUPPORTS_BIG_ENDIAN 139 139 select SYS_SUPPORTS_MIPS16 140 - select SYS_SUPPORTS_ZBOOT 140 + select SYS_SUPPORTS_ZBOOT_UART_PROM 141 141 select USE_OF 142 142 help 143 143 Support for the Atheros AR71XX/AR724X/AR913X SoCs.
+5
arch/mips/boot/compressed/Makefile
··· 37 37 vmlinuzobjs-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o 38 38 vmlinuzobjs-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART_PROM) += $(obj)/uart-prom.o 39 39 vmlinuzobjs-$(CONFIG_MIPS_ALCHEMY) += $(obj)/uart-alchemy.o 40 + vmlinuzobjs-$(CONFIG_ATH79) += $(obj)/uart-ath79.o 40 41 endif 42 + 43 + extra-y += uart-ath79.c 44 + $(obj)/uart-ath79.c: $(srctree)/arch/mips/ath79/early_printk.c 45 + $(call cmd,shipped) 41 46 42 47 vmlinuzobjs-$(CONFIG_KERNEL_XZ) += $(obj)/ashldi3.o $(obj)/bswapsi.o 43 48