source: trunk/target/linux/ar71xx/patches-3.3/121-MIPS-ath79-add-early_printk-support-for-AR934X.patch @ 30410

Last change on this file since 30410 was 30410, checked in by juhosg, 4 years ago

ar71xx: add preliminary support for 3.3

File size: 1.9 KB
  • arch/mips/ath79/early_printk.c

    From f60aed87f838ecfa4033ff1f63f97d05359b3b51 Mon Sep 17 00:00:00 2001
    From: Gabor Juhos <juhosg@openwrt.org>
    Date: Sun, 11 Dec 2011 17:36:08 +0100
    Subject: [PATCH 21/35] 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>
    ---
     arch/mips/ath79/early_printk.c                 |    3 +++
     arch/mips/include/asm/mach-ath79/ar71xx_regs.h |    6 +++++-
     2 files changed, 8 insertions(+), 1 deletions(-)
    
    a b 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

    a b  
    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 
     
    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 
Note: See TracBrowser for help on using the repository browser.