aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.10/0503-MIPS-ralink-add-MT7621-early_printk-support.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-12-13 10:53:34 +0000
committerJohn Crispin <blogic@openwrt.org>2013-12-13 10:53:34 +0000
commit490134a16728228ee67880f01402d0f92a823872 (patch)
tree39b2da9ffed609ea19d00804cab95a4cbbf80080 /target/linux/ramips/patches-3.10/0503-MIPS-ralink-add-MT7621-early_printk-support.patch
parentd6864eb56d397a59b4172e2f78cae2a243ece1c0 (diff)
downloadmaster-187ad058-490134a16728228ee67880f01402d0f92a823872.tar.gz
master-187ad058-490134a16728228ee67880f01402d0f92a823872.tar.bz2
master-187ad058-490134a16728228ee67880f01402d0f92a823872.zip
ralink: add mt7621 support
there are still various missing pieces for full support. Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39040 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/patches-3.10/0503-MIPS-ralink-add-MT7621-early_printk-support.patch')
-rw-r--r--target/linux/ramips/patches-3.10/0503-MIPS-ralink-add-MT7621-early_printk-support.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.10/0503-MIPS-ralink-add-MT7621-early_printk-support.patch b/target/linux/ramips/patches-3.10/0503-MIPS-ralink-add-MT7621-early_printk-support.patch
new file mode 100644
index 0000000000..455fb1d10e
--- /dev/null
+++ b/target/linux/ramips/patches-3.10/0503-MIPS-ralink-add-MT7621-early_printk-support.patch
@@ -0,0 +1,39 @@
+From 643e61b22155cd95ae6e18e57da50acd120da091 Mon Sep 17 00:00:00 2001
+From: John Crispin <blogic@openwrt.org>
+Date: Mon, 2 Dec 2013 16:11:33 +0100
+Subject: [PATCH 503/507] MIPS: ralink: add MT7621 early_printk support
+
+Signed-off-by: John Crispin <blogic@openwrt.org>
+---
+ arch/mips/ralink/early_printk.c | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+Index: linux-3.10.21/arch/mips/ralink/early_printk.c
+===================================================================
+--- linux-3.10.21.orig/arch/mips/ralink/early_printk.c 2013-11-29 20:12:03.000000000 +0100
++++ linux-3.10.21/arch/mips/ralink/early_printk.c 2013-12-09 20:11:51.600704498 +0100
+@@ -13,6 +13,8 @@
+
+ #ifdef CONFIG_SOC_RT288X
+ #define EARLY_UART_BASE 0x300c00
++#elif defined(CONFIG_SOC_MT7621)
++#define EARLY_UART_BASE 0x1E000c00
+ #else
+ #define EARLY_UART_BASE 0x10000c00
+ #endif
+@@ -40,9 +42,13 @@
+
+ void prom_putchar(unsigned char ch)
+ {
+- while ((uart_r32(UART_REG_LSR) & UART_LSR_THRE) == 0)
++#ifdef CONFIG_SOC_MT7621
++ uart_w32(ch, UART_TX);
++ while ((uart_r32(0x14) & UART_LSR_THRE) == 0)
+ ;
+- uart_w32(ch, UART_REG_TX);
++#else
+ while ((uart_r32(UART_REG_LSR) & UART_LSR_THRE) == 0)
+ ;
++ uart_w32(ch, UART_REG_TX);
++#endif
+ }