linux-mips
[Top] [All Lists]

[PATCH] MIPS: JZ4740: reuse UART0 address macro for vmlinuz debug port

To: linux-mips@linux-mips.org
Subject: [PATCH] MIPS: JZ4740: reuse UART0 address macro for vmlinuz debug port
From: Antony Pavlov <antonynpavlov@gmail.com>
Date: Sat, 28 Sep 2013 19:49:34 +0400
Cc: Ralf Baechle <ralf@linux-mips.org>, Lars-Peter Clausen <lars@metafoo.de>, Antony Pavlov <antonynpavlov@gmail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=/d2Vs3oQBsBUgjEcPa4zTH6WoPzIva5hKF1G2UtSGkM=; b=i+nUZsaqQLj2KGFGImjDIN0QLw9CEHnRqxqYHTyiMlppwVTUnGWxLazz8gx2UwOr/j 7WBWY4XBMwzgx1qYD3LN4U0vFcvlHboi3HlS451MJE/teNIgx7I5s36bMEo/3OTaGr0A hDAtGe7yAxCREpp6IfVCUA1vKpXH4nyohD6KzjALYAgfblRp4Jxg2ajnyPzZ2HajqOC3 MzB61ghkW4V10PuMNQAoeKe9cmu8dKa7ZIIWBfkoRQoQTWzC0aXLd+XQnkPPSBQsbz2W TnO5Sx7eizOCwC4fTVfpD6NZy/mOSrFJYB6oq2KIyPEB3/tHSKnkSIeIaTS2szxvTzMI THpg==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 arch/mips/boot/compressed/uart-16550.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mips/boot/compressed/uart-16550.c 
b/arch/mips/boot/compressed/uart-16550.c
index c01d343..869172d 100644
--- a/arch/mips/boot/compressed/uart-16550.c
+++ b/arch/mips/boot/compressed/uart-16550.c
@@ -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
-- 
1.8.4.rc3


<Prev in Thread] Current Thread [Next in Thread>