ar71xx: use backported QCA955x patches
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.8 / 028-MIPS-ath79-add-early-printk-support-for-the-QCA955X-.patch
1 From 8a4de56e3b7a6fbb777c78f87142bafc22c32ac2 Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Fri, 15 Feb 2013 13:38:15 +0000
4 Subject: [PATCH] MIPS: ath79: add early printk support for the QCA955X SoCs
5
6 commit 908987797076b848f01b32c21d61d0e152efc236 upstream.
7
8 The patch allows to see kernel messages on the
9 QCA955X SoCs in early boot stage.
10
11 Cc: Rodriguez, Luis <rodrigue@qca.qualcomm.com>
12 Cc: Giori, Kathy <kgiori@qca.qualcomm.com>
13 Cc: QCA Linux Team <qca-linux-team@qca.qualcomm.com>
14 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
15 Patchwork: http://patchwork.linux-mips.org/patch/4944/
16 Signed-off-by: John Crispin <blogic@openwrt.org>
17 ---
18 arch/mips/ath79/early_printk.c | 2 ++
19 arch/mips/include/asm/mach-ath79/ar71xx_regs.h | 2 ++
20 2 files changed, 4 insertions(+)
21
22 --- a/arch/mips/ath79/early_printk.c
23 +++ b/arch/mips/ath79/early_printk.c
24 @@ -74,6 +74,8 @@ static void prom_putchar_init(void)
25 case REV_ID_MAJOR_AR9341:
26 case REV_ID_MAJOR_AR9342:
27 case REV_ID_MAJOR_AR9344:
28 + case REV_ID_MAJOR_QCA9556:
29 + case REV_ID_MAJOR_QCA9558:
30 _prom_putchar = prom_putchar_ar71xx;
31 break;
32
33 --- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
34 +++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
35 @@ -370,6 +370,8 @@
36 #define REV_ID_MAJOR_AR9341 0x0120
37 #define REV_ID_MAJOR_AR9342 0x1120
38 #define REV_ID_MAJOR_AR9344 0x2120
39 +#define REV_ID_MAJOR_QCA9556 0x0130
40 +#define REV_ID_MAJOR_QCA9558 0x1130
41
42 #define AR71XX_REV_ID_MINOR_MASK 0x3
43 #define AR71XX_REV_ID_MINOR_AR7130 0x0