ramips: sync kernel patches with the mips-next tree
[openwrt.git] / target / linux / ramips / patches-3.8 / 0106-MIPS-ralink-make-early_printk-work-on-RT2880.patch
1 From d83e83a544258b68b4411232a31ccce134244a19 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Tue, 9 Apr 2013 18:31:15 +0200
4 Subject: [PATCH 106/137] MIPS: ralink: make early_printk work on RT2880
5
6 RT2880 has a different location for the early serial port.
7
8 Signed-off-by: John Crispin <blogic@openwrt.org>
9 Acked-by: Gabor Juhos <juhosg@openwrt.org>
10 Patchwork: http://patchwork.linux-mips.org/patch/5170/
11 ---
12  arch/mips/ralink/early_printk.c |    4 ++++
13  1 file changed, 4 insertions(+)
14
15 --- a/arch/mips/ralink/early_printk.c
16 +++ b/arch/mips/ralink/early_printk.c
17 @@ -11,7 +11,11 @@
18  
19  #include <asm/addrspace.h>
20  
21 +#ifdef CONFIG_SOC_RT288X
22 +#define EARLY_UART_BASE         0x300c00
23 +#else
24  #define EARLY_UART_BASE         0x10000c00
25 +#endif
26  
27  #define UART_REG_RX             0x00
28  #define UART_REG_TX             0x04