Skip to content

Commit 703327d

Browse files
juhosgralfbaechle
authored andcommitted
MIPS: ath79: add early_printk support for AR934X
The patch allows to see kernel messages on AR934X SoCs in early boot stage. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com> Cc: linux-mips@linux-mips.org Cc: mcgrof@infradead.org Patchwork: https://patchwork.linux-mips.org/patch/3504/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent e9b62e8 commit 703327d

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎arch/mips/ath79/early_printk.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ static void prom_putchar_init(void)
7171
case REV_ID_MAJOR_AR7241:
7272
case REV_ID_MAJOR_AR7242:
7373
case REV_ID_MAJOR_AR913X:
74+
case REV_ID_MAJOR_AR9341:
75+
case REV_ID_MAJOR_AR9342:
76+
case REV_ID_MAJOR_AR9344:
7477
_prom_putchar = prom_putchar_ar71xx;
7578
break;
7679

‎arch/mips/include/asm/mach-ath79/ar71xx_regs.h‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
22
* Atheros AR71XX/AR724X/AR913X SoC register definitions
33
*
4+
* Copyright (C) 2010-2011 Jaiganesh Narayanan <jnarayanan@atheros.com>
45
* Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org>
56
* Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
67
*
7-
* Parts of this file are based on Atheros' 2.6.15 BSP
8+
* Parts of this file are based on Atheros' 2.6.15/2.6.31 BSP
89
*
910
* This program is free software; you can redistribute it and/or modify it
1011
* under the terms of the GNU General Public License version 2 as published
@@ -249,6 +250,9 @@
249250
#define REV_ID_MAJOR_AR7242 0x1100
250251
#define REV_ID_MAJOR_AR9330 0x0110
251252
#define REV_ID_MAJOR_AR9331 0x1110
253+
#define REV_ID_MAJOR_AR9341 0x0120
254+
#define REV_ID_MAJOR_AR9342 0x1120
255+
#define REV_ID_MAJOR_AR9344 0x2120
252256

253257
#define AR71XX_REV_ID_MINOR_MASK 0x3
254258
#define AR71XX_REV_ID_MINOR_AR7130 0x0

0 commit comments

Comments
 (0)