Root/target/linux/ar71xx/patches-3.3/119-MIPS-ath79-add-early_printk-support-for-AR934X.patch

1From 5c1f1041309ede56d48eb3c665025e87c9824a64 Mon Sep 17 00:00:00 2001
2From: Gabor Juhos <juhosg@openwrt.org>
3Date: Wed, 14 Mar 2012 10:45:19 +0100
4Subject: [PATCH 24/47] MIPS: ath79: add early_printk support for AR934X
5
6The patch allows to see kernel messages on AR934X SoCs in
7early boot stage.
8
9Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
10Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
11Cc: linux-mips@linux-mips.org
12Cc: mcgrof@infradead.org
13Patchwork: https://patchwork.linux-mips.org/patch/3504/
14Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
15---
16 arch/mips/ath79/early_printk.c | 3 +++
17 arch/mips/include/asm/mach-ath79/ar71xx_regs.h | 6 +++++-
18 2 files changed, 8 insertions(+), 1 deletions(-)
19
20--- a/arch/mips/ath79/early_printk.c
21+++ b/arch/mips/ath79/early_printk.c
22@@ -71,6 +71,9 @@ static void prom_putchar_init(void)
23     case REV_ID_MAJOR_AR7241:
24     case REV_ID_MAJOR_AR7242:
25     case REV_ID_MAJOR_AR913X:
26+ case REV_ID_MAJOR_AR9341:
27+ case REV_ID_MAJOR_AR9342:
28+ case REV_ID_MAJOR_AR9344:
29         _prom_putchar = prom_putchar_ar71xx;
30         break;
31 
32--- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
33+++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
34@@ -1,10 +1,11 @@
35 /*
36  * Atheros AR71XX/AR724X/AR913X SoC register definitions
37  *
38+ * Copyright (C) 2010-2011 Jaiganesh Narayanan <jnarayanan@atheros.com>
39  * Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org>
40  * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
41  *
42- * Parts of this file are based on Atheros' 2.6.15 BSP
43+ * Parts of this file are based on Atheros' 2.6.15/2.6.31 BSP
44  *
45  * This program is free software; you can redistribute it and/or modify it
46  * under the terms of the GNU General Public License version 2 as published
47@@ -249,6 +250,9 @@
48 #define REV_ID_MAJOR_AR7242 0x1100
49 #define REV_ID_MAJOR_AR9330 0x0110
50 #define REV_ID_MAJOR_AR9331 0x1110
51+#define REV_ID_MAJOR_AR9341 0x0120
52+#define REV_ID_MAJOR_AR9342 0x1120
53+#define REV_ID_MAJOR_AR9344 0x2120
54 
55 #define AR71XX_REV_ID_MINOR_MASK 0x3
56 #define AR71XX_REV_ID_MINOR_AR7130 0x0
57

Archive Download this file



interactive