source: trunk/target/linux/ar71xx/patches-3.3/132-MIPS-ath79-add-PCI_AR724X-Kconfig-symbol.patch @ 30410

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

ar71xx: add preliminary support for 3.3

File size: 1.9 KB
  • arch/mips/ath79/Kconfig

    From f299f36542f81f05cff7cdebb50abde202faf6df Mon Sep 17 00:00:00 2001
    From: Gabor Juhos <juhosg@openwrt.org>
    Date: Sat, 17 Dec 2011 10:04:18 +0100
    Subject: [PATCH 32/35] MIPS: ath79: add PCI_AR724X Kconfig symbol
    
    The AR724X specific PCI code can be used for the
    AR934X SoCs, however it can be selected only if
    SOC_AR724X is set.
    
    Introduce a new Kconfig symbol in order to be able
    to use the code for AR934X as well.
    
    Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
    Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
    ---
     arch/mips/ath79/Kconfig                |    4 ++++
     arch/mips/include/asm/mach-ath79/pci.h |    2 +-
     arch/mips/pci/Makefile                 |    2 +-
     3 files changed, 6 insertions(+), 2 deletions(-)
    
    a b config SOC_AR724X 
    5959        select USB_ARCH_HAS_EHCI 
    6060        select USB_ARCH_HAS_OHCI 
    6161        select HW_HAS_PCI 
     62        select PCI_AR724X if PCI 
    6263        def_bool n 
    6364 
    6465config SOC_AR913X 
    config SOC_AR934X 
    7374        select USB_ARCH_HAS_EHCI 
    7475        def_bool n 
    7576 
     77config PCI_AR724X 
     78        def_bool n 
     79 
    7680config ATH79_DEV_GPIO_BUTTONS 
    7781        def_bool n 
    7882 
  • arch/mips/include/asm/mach-ath79/pci.h

    a b int ar71xx_pcibios_init(void); 
    1919static inline int ar71xx_pcibios_init(void) { return 0 }; 
    2020#endif 
    2121 
    22 #if defined(CONFIG_PCI) && defined(CONFIG_SOC_AR724X) 
     22#if defined(CONFIG_PCI_AR724X) 
    2323int ar724x_pcibios_init(int irq); 
    2424#else 
    2525static inline int ar724x_pcibios_init(int irq) { return 0 }; 
  • arch/mips/pci/Makefile

    a b obj-$(CONFIG_BCM63XX) += pci-bcm63xx.o 
    2020                                        ops-bcm63xx.o 
    2121obj-$(CONFIG_MIPS_ALCHEMY)      += pci-alchemy.o 
    2222obj-$(CONFIG_SOC_AR71XX)        += pci-ar71xx.o 
    23 obj-$(CONFIG_SOC_AR724X)        += pci-ar724x.o 
     23obj-$(CONFIG_PCI_AR724X)        += pci-ar724x.o 
    2424 
    2525# 
    2626# These are still pretty much in the old state, watch, go blind. 
Note: See TracBrowser for help on using the repository browser.