2013-06-23 15:50:49 +00:00
|
|
|
From 9ed190912864c8b96d888af2cb66efcf1dc5562a Mon Sep 17 00:00:00 2001
|
2013-04-12 18:56:53 +00:00
|
|
|
From: John Crispin <blogic@openwrt.org>
|
|
|
|
Date: Tue, 9 Apr 2013 18:31:15 +0200
|
2013-06-23 15:50:49 +00:00
|
|
|
Subject: [PATCH 22/79] MIPS: ralink: make early_printk work on RT2880
|
2013-04-12 18:56:53 +00:00
|
|
|
|
|
|
|
RT2880 has a different location for the early serial port.
|
|
|
|
|
|
|
|
Signed-off-by: John Crispin <blogic@openwrt.org>
|
2013-04-25 19:02:42 +00:00
|
|
|
Acked-by: Gabor Juhos <juhosg@openwrt.org>
|
|
|
|
Patchwork: http://patchwork.linux-mips.org/patch/5170/
|
2013-04-12 18:56:53 +00:00
|
|
|
---
|
|
|
|
arch/mips/ralink/early_printk.c | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
2013-06-23 15:50:49 +00:00
|
|
|
diff --git a/arch/mips/ralink/early_printk.c b/arch/mips/ralink/early_printk.c
|
|
|
|
index c4ae47e..b46d041 100644
|
2013-04-12 18:56:53 +00:00
|
|
|
--- a/arch/mips/ralink/early_printk.c
|
|
|
|
+++ b/arch/mips/ralink/early_printk.c
|
|
|
|
@@ -11,7 +11,11 @@
|
|
|
|
|
|
|
|
#include <asm/addrspace.h>
|
|
|
|
|
|
|
|
+#ifdef CONFIG_SOC_RT288X
|
|
|
|
+#define EARLY_UART_BASE 0x300c00
|
|
|
|
+#else
|
|
|
|
#define EARLY_UART_BASE 0x10000c00
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#define UART_REG_RX 0x00
|
|
|
|
#define UART_REG_TX 0x04
|
2013-06-23 15:50:49 +00:00
|
|
|
--
|
|
|
|
1.7.10.4
|
|
|
|
|