summaryrefslogtreecommitdiffstats
path: root/arch/mips/boot/compressed
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2021-05-30 19:17:56 +0200
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-06-01 11:44:47 +0200
commitf92a05b9c0be58156de8727cc30f74eec00dc74f (patch)
tree101c889ff4fb0b465efa297b706ffbd7305f91e7 /arch/mips/boot/compressed
parentMIPS: mm: XBurst CPU requires sync after DMA (diff)
downloadlinux-f92a05b9c0be58156de8727cc30f74eec00dc74f.tar.xz
linux-f92a05b9c0be58156de8727cc30f74eec00dc74f.zip
MIPS: boot: Support specifying UART port on Ingenic SoCs
Allow specifying from the config the UART to use on Ingenic SoCs when compressed kernel debugging is enabled. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/boot/compressed')
-rw-r--r--arch/mips/boot/compressed/uart-16550.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/boot/compressed/uart-16550.c b/arch/mips/boot/compressed/uart-16550.c
index aee8d7b8f091..c18d7f72d9d9 100644
--- a/arch/mips/boot/compressed/uart-16550.c
+++ b/arch/mips/boot/compressed/uart-16550.c
@@ -19,8 +19,8 @@
#endif
#ifdef CONFIG_MACH_INGENIC
-#define INGENIC_UART0_BASE_ADDR 0x10030000
-#define PORT(offset) (CKSEG1ADDR(INGENIC_UART0_BASE_ADDR) + (4 * offset))
+#define INGENIC_UART_BASE_ADDR (0x10030000 + 0x1000 * CONFIG_ZBOOT_INGENIC_UART)
+#define PORT(offset) (CKSEG1ADDR(INGENIC_UART_BASE_ADDR) + (4 * offset))
#endif
#ifdef CONFIG_CPU_XLR