source: trunk/target/linux/ar71xx/patches-3.3/102-MIPS-ath79-make-ath724x_pcibios_init-visible-for-ext.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: 1.9 KB
  • new file arch/mips/include/asm/mach-ath79/pci.h

    From a9e38566ebe755219db10fa155fa8f0f4efc20d9 Mon Sep 17 00:00:00 2001
    From: Gabor Juhos <juhosg@openwrt.org>
    Date: Wed, 14 Mar 2012 10:29:23 +0100
    Subject: [PATCH 07/47] MIPS: ath79: make ath724x_pcibios_init visible for external code
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    Signed-off-by: René Bolldorf <xsecute@googlemail.com>
    Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/3487/
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ---
     arch/mips/include/asm/mach-ath79/pci.h |   20 ++++++++++++++++++++
     arch/mips/pci/pci-ath724x.c            |    3 ++-
     2 files changed, 22 insertions(+), 1 deletions(-)
     create mode 100644 arch/mips/include/asm/mach-ath79/pci.h
    
    - +  
     1/* 
     2 *  Atheros 724x PCI support 
     3 * 
     4 *  Copyright (C) 2011 René Bolldorf <xsecute@googlemail.com> 
     5 * 
     6 *  This program is free software; you can redistribute it and/or modify it 
     7 *  under the terms of the GNU General Public License version 2 as published 
     8 *  by the Free Software Foundation. 
     9 */ 
     10 
     11#ifndef __ASM_MACH_ATH79_PCI_H 
     12#define __ASM_MACH_ATH79_PCI_H 
     13 
     14#if defined(CONFIG_PCI) && defined(CONFIG_SOC_AR724X) 
     15int ath724x_pcibios_init(void); 
     16#else 
     17static inline int ath724x_pcibios_init(void) { return 0; } 
     18#endif 
     19 
     20#endif /* __ASM_MACH_ATH79_PCI_H */ 
  • arch/mips/pci/pci-ath724x.c

    a b  
    99 */ 
    1010 
    1111#include <linux/pci.h> 
     12#include <asm/mach-ath79/pci.h> 
    1213 
    1314#define reg_read(_phys)         (*(unsigned int *) KSEG1ADDR(_phys)) 
    1415#define reg_write(_phys, _val)  ((*(unsigned int *) KSEG1ADDR(_phys)) = (_val)) 
    static struct pci_controller ath724x_pci 
    130131        .mem_resource   = &ath724x_mem_resource, 
    131132}; 
    132133 
    133 static int __init ath724x_pcibios_init(void) 
     134int __init ath724x_pcibios_init(void) 
    134135{ 
    135136        register_pci_controller(&ath724x_pci_controller); 
    136137 
Note: See TracBrowser for help on using the repository browser.