kernel: update linux 3.8 to 3.8.7
[openwrt/staging/mkresin.git] / target / linux / ramips / patches-3.8 / 0133-MIPS-ralink-make-early_printk-work-on-RT2880.patch
1 From 3f32be8f012fb5476ea916e583e584cccc632a84 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 V2 08/16] 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 ---
10 arch/mips/ralink/early_printk.c | 4 ++++
11 1 file changed, 4 insertions(+)
12
13 --- a/arch/mips/ralink/early_printk.c
14 +++ b/arch/mips/ralink/early_printk.c
15 @@ -11,7 +11,11 @@
16
17 #include <asm/addrspace.h>
18
19 +#ifdef CONFIG_SOC_RT288X
20 +#define EARLY_UART_BASE 0x300c00
21 +#else
22 #define EARLY_UART_BASE 0x10000c00
23 +#endif
24
25 #define UART_REG_RX 0x00
26 #define UART_REG_TX 0x04