diff options
author | Paul Cercueil <paul@crapouillou.net> | 2021-05-30 19:17:56 +0200 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2021-06-01 11:44:47 +0200 |
commit | f92a05b9c0be58156de8727cc30f74eec00dc74f (patch) | |
tree | 101c889ff4fb0b465efa297b706ffbd7305f91e7 /arch/mips/boot/compressed | |
parent | MIPS: mm: XBurst CPU requires sync after DMA (diff) | |
download | linux-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.c | 4 |
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 |