diff options
author | Jayachandran C <jchandra@broadcom.com> | 2013-12-21 06:22:24 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-01-24 16:39:48 -0500 |
commit | 61673de131f9bf1bace63a5e58ab683a0e5313fd (patch) | |
tree | bee21a73f460ad8a3ed527ca379521d5160336f9 | |
parent | 861c056953dc4354414881a5e1d382297ef4ea53 (diff) |
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/
-rw-r--r-- | arch/mips/include/asm/netlogic/xlp-hal/uart.h | 3 | ||||
-rw-r--r-- | arch/mips/netlogic/common/earlycons.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/include/asm/netlogic/xlp-hal/uart.h b/arch/mips/include/asm/netlogic/xlp-hal/uart.h index 86d16e1e6072..a6c54424dd95 100644 --- a/arch/mips/include/asm/netlogic/xlp-hal/uart.h +++ b/arch/mips/include/asm/netlogic/xlp-hal/uart.h | |||
@@ -94,7 +94,8 @@ | |||
94 | #define nlm_read_uart_reg(b, r) nlm_read_reg(b, r) | 94 | #define nlm_read_uart_reg(b, r) nlm_read_reg(b, r) |
95 | #define nlm_write_uart_reg(b, r, v) nlm_write_reg(b, r, v) | 95 | #define nlm_write_uart_reg(b, r, v) nlm_write_reg(b, r, v) |
96 | #define nlm_get_uart_pcibase(node, inst) \ | 96 | #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)) | ||
98 | #define nlm_get_uart_regbase(node, inst) \ | 99 | #define nlm_get_uart_regbase(node, inst) \ |
99 | (nlm_get_uart_pcibase(node, inst) + XLP_IO_PCI_HDRSZ) | 100 | (nlm_get_uart_pcibase(node, inst) + XLP_IO_PCI_HDRSZ) |
100 | 101 | ||
diff --git a/arch/mips/netlogic/common/earlycons.c b/arch/mips/netlogic/common/earlycons.c index 1902fa22d277..769f93032c53 100644 --- a/arch/mips/netlogic/common/earlycons.c +++ b/arch/mips/netlogic/common/earlycons.c | |||
@@ -37,9 +37,11 @@ | |||
37 | 37 | ||
38 | #include <asm/mipsregs.h> | 38 | #include <asm/mipsregs.h> |
39 | #include <asm/netlogic/haldefs.h> | 39 | #include <asm/netlogic/haldefs.h> |
40 | #include <asm/netlogic/common.h> | ||
40 | 41 | ||
41 | #if defined(CONFIG_CPU_XLP) | 42 | #if defined(CONFIG_CPU_XLP) |
42 | #include <asm/netlogic/xlp-hal/iomap.h> | 43 | #include <asm/netlogic/xlp-hal/iomap.h> |
44 | #include <asm/netlogic/xlp-hal/xlp.h> | ||
43 | #include <asm/netlogic/xlp-hal/uart.h> | 45 | #include <asm/netlogic/xlp-hal/uart.h> |
44 | #elif defined(CONFIG_CPU_XLR) | 46 | #elif defined(CONFIG_CPU_XLR) |
45 | #include <asm/netlogic/xlr/iomap.h> | 47 | #include <asm/netlogic/xlr/iomap.h> |