diff options
author | Jayachandran C <jayachandranc@netlogicmicro.com> | 2011-11-15 19:21:28 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-12-07 17:04:56 -0500 |
commit | 65040e224e5b214a93fa0c790add5d69b054ecae (patch) | |
tree | 3d6b02575e61c04ad48535662398eae195f26ee1 /arch/mips/netlogic/common/earlycons.c | |
parent | a3d4fb2d2a4c52b22cde90049a78e323cde187e5 (diff) |
MIPS: Netlogic: Add XLP platform files for XLP SoC
- Update common files to support XLP.
- Add arch/mips/include/asm/netlogic/xlp-hal for register definitions
and access macros
- Add arch/mips/netlogic/xlp/ for XLP specific files.
Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2967/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/netlogic/common/earlycons.c')
-rw-r--r-- | arch/mips/netlogic/common/earlycons.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mips/netlogic/common/earlycons.c b/arch/mips/netlogic/common/earlycons.c index 28c8fa7a8503..f193f7b3bd81 100644 --- a/arch/mips/netlogic/common/earlycons.c +++ b/arch/mips/netlogic/common/earlycons.c | |||
@@ -38,13 +38,22 @@ | |||
38 | #include <asm/mipsregs.h> | 38 | #include <asm/mipsregs.h> |
39 | #include <asm/netlogic/haldefs.h> | 39 | #include <asm/netlogic/haldefs.h> |
40 | 40 | ||
41 | #if defined(CONFIG_CPU_XLP) | ||
42 | #include <asm/netlogic/xlp-hal/iomap.h> | ||
43 | #include <asm/netlogic/xlp-hal/uart.h> | ||
44 | #elif defined(CONFIG_CPU_XLR) | ||
41 | #include <asm/netlogic/xlr/iomap.h> | 45 | #include <asm/netlogic/xlr/iomap.h> |
46 | #endif | ||
42 | 47 | ||
43 | void prom_putchar(char c) | 48 | void prom_putchar(char c) |
44 | { | 49 | { |
45 | uint64_t uartbase; | 50 | uint64_t uartbase; |
46 | 51 | ||
52 | #if defined(CONFIG_CPU_XLP) | ||
53 | uartbase = nlm_get_uart_regbase(0, 0); | ||
54 | #elif defined(CONFIG_CPU_XLR) | ||
47 | uartbase = nlm_mmio_base(NETLOGIC_IO_UART_0_OFFSET); | 55 | uartbase = nlm_mmio_base(NETLOGIC_IO_UART_0_OFFSET); |
56 | #endif | ||
48 | while (nlm_read_reg(uartbase, UART_LSR) == 0) | 57 | while (nlm_read_reg(uartbase, UART_LSR) == 0) |
49 | ; | 58 | ; |
50 | nlm_write_reg(uartbase, UART_TX, c); | 59 | nlm_write_reg(uartbase, UART_TX, c); |