Skip to contentSkip to conversation

MIPS: JZ4740: reuse UART0 address macro for vmlinuz debug port

PATCH In review Antony Pavlov 2 participants 2 messages Sep 28, 2013 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: JZ4740: reuse UART0 address macro for vmlinuz debug port

---
 arch/mips/boot/compressed/uart-16550.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/boot/compressed/uart-16550.c +2 -2
index c01d343..869172d 100644
@@ -19,8 +19,8 @@
 #endif
 
 #ifdef CONFIG_MACH_JZ4740
-#define UART0_BASE  0xB0030000
-#define PORT(offset) (UART0_BASE + (4 * offset))
+#include <asm/mach-jz4740/base.h>
+#define PORT(offset) (CKSEG1ADDR(JZ4740_UART0_BASE_ADDR) + (4 * offset))
 #endif
 
 #ifdef CONFIG_CPU_XLR
Signature · 1 line
1.8.4.rc3
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Antony Pavlov

Looks good.

Quoted 20 lines
---
 arch/mips/boot/compressed/uart-16550.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/boot/compressed/uart-16550.c +2 -2
index c01d343..869172d 100644
@@ -19,8 +19,8 @@
 #endif
 
 #ifdef CONFIG_MACH_JZ4740
-#define UART0_BASE  0xB0030000
-#define PORT(offset) (UART0_BASE + (4 * offset))
+#include <asm/mach-jz4740/base.h>
+#define PORT(offset) (CKSEG1ADDR(JZ4740_UART0_BASE_ADDR) + (4 * offset))
 #endif
 
 #ifdef CONFIG_CPU_XLR