summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/udbg.h
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-08-23 01:15:01 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2022-09-28 19:22:09 +1000
commitb19448fe846baad689ff51a991ebfc74b4b5e0a8 (patch)
treee3cbb5f13d2ff44608a50a537191bf82ece17da9 /arch/powerpc/include/asm/udbg.h
parentbd7dc90e52e8db7ee0f38c51bc9047bafb54fe43 (diff)
downloadlinux-stable-b19448fe846baad689ff51a991ebfc74b4b5e0a8.tar.gz
linux-stable-b19448fe846baad689ff51a991ebfc74b4b5e0a8.tar.bz2
linux-stable-b19448fe846baad689ff51a991ebfc74b4b5e0a8.zip
powerpc: Add support for early debugging via Serial 16550 console
Currently powerpc early debugging contains lot of platform specific options, but does not support standard UART / serial 16550 console. Later legacy_serial.c code supports registering UART as early debug console from device tree but it is not early during booting, but rather later after machine description code finishes. So for real early debugging via UART is current code unsuitable. Add support for new early debugging option CONFIG_PPC_EARLY_DEBUG_16550 which enable Serial 16550 console on address defined by new option CONFIG_PPC_EARLY_DEBUG_16550_PHYSADDR and by stride by option CONFIG_PPC_EARLY_DEBUG_16550_STRIDE. With this change it is possible to debug powerpc machine descriptor code. For example this early debugging code can print on serial console also "No suitable machine description found" error which is done before legacy_serial.c code. Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220822231501.16827-1-pali@kernel.org
Diffstat (limited to 'arch/powerpc/include/asm/udbg.h')
-rw-r--r--arch/powerpc/include/asm/udbg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/udbg.h b/arch/powerpc/include/asm/udbg.h
index 524c2085070f..88add5593e6f 100644
--- a/arch/powerpc/include/asm/udbg.h
+++ b/arch/powerpc/include/asm/udbg.h
@@ -52,6 +52,7 @@ extern void __init udbg_init_ehv_bc(void);
extern void __init udbg_init_ps3gelic(void);
extern void __init udbg_init_debug_opal_raw(void);
extern void __init udbg_init_debug_opal_hvsi(void);
+extern void __init udbg_init_debug_16550(void);
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_UDBG_H */