mips: ralink: mt7621: add zboot debug console
Subsystems (2)
PATCH 1/1 mips: ralink: mt7621: add zboot debug console
uartlite0 at 0x1e000c00 is a 16550 compatible uart controller. It's usually used for debug console and is already configured by u-boot. Add ZBOOT_UART16550 and related definitions in uart-16550.c for zboot debug output.
Signed-off-by Chuanhong Guo <[email protected]>
--- arch/mips/boot/compressed/uart-16550.c | 6 ++++++ arch/mips/ralink/Kconfig | 1 + 2 files changed, 7 insertions(+)
arch/mips/boot/compressed/uart-16550.c +6 -0
@@ -35,6 +35,12 @@#define IOTYPE unsigned int#endif +#ifdef CONFIG_SOC_MT7621 +#define UART0_BASE 0x1e000c00 +#define PORT (offset) (CKSEG1ADDR(UART0_BASE) + (4 * offset)) +#define IOTYPE unsigned int +#endif +#ifndef IOTYPE #define IOTYPE char#endif
arch/mips/ralink/Kconfig +1 -0
@@ -52,6 +52,7 @@ choice select SYS_SUPPORTS_SMP select SYS_SUPPORTS_MIPS_CPS select SYS_SUPPORTS_HIGHMEM + select SYS_SUPPORTS_ZBOOT_UART16550 select MIPS_GIC select COMMON_CLK select CLKSRC_MIPS_GIC
Signature · 1 line
2.26.2