MIPS: JZ4740: reuse UART0 address macro for vmlinuz debug port
authorAntony Pavlov <antonynpavlov@gmail.com>
Sat, 28 Sep 2013 15:49:34 +0000 (19:49 +0400)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 23 Jan 2014 12:02:34 +0000 (13:02 +0100)
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/5927/

arch/mips/boot/compressed/uart-16550.c

index c01d343ce6add9d6049cdcabae281c9d03d401b5..869172d0a5acf6a99c515f734ba90c5fe41fcf74 100644 (file)
@@ -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