source: trunk/target/linux/ar71xx/patches-3.3/126-MIPS-ath79-add-AR934X-specific-glue-to-ath79_device_.patch @ 31602

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

ar71xx: update 3.3 patches

File size: 2.1 KB
  • arch/mips/ath79/common.c

    From 98bfbb0b3f126d93076377fcd9553a493e45e304 Mon Sep 17 00:00:00 2001
    From: Gabor Juhos <juhosg@openwrt.org>
    Date: Wed, 14 Mar 2012 10:45:26 +0100
    Subject: [PATCH 31/47] MIPS: ath79: add AR934X specific glue to ath79_device_reset_{clear,set}
    
    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/3511/
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ---
     arch/mips/ath79/common.c                       |    9 ++++++++-
     arch/mips/include/asm/mach-ath79/ar71xx_regs.h |    1 +
     2 files changed, 9 insertions(+), 1 deletions(-)
    
    a b  
    11/* 
    22 *  Atheros AR71XX/AR724X/AR913X common routines 
    33 * 
    4  *  Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org> 
     4 *  Copyright (C) 2010-2011 Jaiganesh Narayanan <jnarayanan@atheros.com> 
     5 *  Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org> 
    56 *  Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org> 
    67 * 
     8 *  Parts of this file are based on Atheros' 2.6.15/2.6.31 BSP 
     9 * 
    710 *  This program is free software; you can redistribute it and/or modify it 
    811 *  under the terms of the GNU General Public License version 2 as published 
    912 *  by the Free Software Foundation. 
    void ath79_device_reset_set(u32 mask) 
    6770                reg = AR913X_RESET_REG_RESET_MODULE; 
    6871        else if (soc_is_ar933x()) 
    6972                reg = AR933X_RESET_REG_RESET_MODULE; 
     73        else if (soc_is_ar934x()) 
     74                reg = AR934X_RESET_REG_RESET_MODULE; 
    7075        else 
    7176                BUG(); 
    7277 
    void ath79_device_reset_clear(u32 mask) 
    9196                reg = AR913X_RESET_REG_RESET_MODULE; 
    9297        else if (soc_is_ar933x()) 
    9398                reg = AR933X_RESET_REG_RESET_MODULE; 
     99        else if (soc_is_ar934x()) 
     100                reg = AR934X_RESET_REG_RESET_MODULE; 
    94101        else 
    95102                BUG(); 
    96103 
  • arch/mips/include/asm/mach-ath79/ar71xx_regs.h

    a b  
    227227#define AR933X_RESET_REG_RESET_MODULE           0x1c 
    228228#define AR933X_RESET_REG_BOOTSTRAP              0xac 
    229229 
     230#define AR934X_RESET_REG_RESET_MODULE           0x1c 
    230231#define AR934X_RESET_REG_BOOTSTRAP              0xb0 
    231232#define AR934X_RESET_REG_PCIE_WMAC_INT_STATUS   0xac 
    232233 
Note: See TracBrowser for help on using the repository browser.