Skip to content

Commit 61673de

Browse files
jchandra-brcmralfbaechle
authored andcommitted
MIPS: Netlogic: XLP9XX UART offset
Update IO offset of the early console UART. Signed-off-by: Jayachandran C <jchandra@broadcom.com> Signed-off-by: John Crispin <blogic@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/6281/
1 parent 861c056 commit 61673de

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎arch/mips/include/asm/netlogic/xlp-hal/uart.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@
9494
#define nlm_read_uart_reg(b, r) nlm_read_reg(b, r)
9595
#define nlm_write_uart_reg(b, r, v) nlm_write_reg(b, r, v)
9696
#define nlm_get_uart_pcibase(node, inst) \
97-
nlm_pcicfg_base(XLP_IO_UART_OFFSET(node, inst))
97+
nlm_pcicfg_base(cpu_is_xlp9xx() ? XLP9XX_IO_UART_OFFSET(node) : \
98+
XLP_IO_UART_OFFSET(node, inst))
9899
#define nlm_get_uart_regbase(node, inst) \
99100
(nlm_get_uart_pcibase(node, inst) + XLP_IO_PCI_HDRSZ)
100101

‎arch/mips/netlogic/common/earlycons.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@
3737

3838
#include <asm/mipsregs.h>
3939
#include <asm/netlogic/haldefs.h>
40+
#include <asm/netlogic/common.h>
4041

4142
#if defined(CONFIG_CPU_XLP)
4243
#include <asm/netlogic/xlp-hal/iomap.h>
44+
#include <asm/netlogic/xlp-hal/xlp.h>
4345
#include <asm/netlogic/xlp-hal/uart.h>
4446
#elif defined(CONFIG_CPU_XLR)
4547
#include <asm/netlogic/xlr/iomap.h>

0 commit comments

Comments
 (0)