Changeset 30528


Ignore:
Timestamp:
2012-02-14T18:32:44+01:00 (6 years ago)
Author:
juhosg
Message:

ramips: rt3883: enable PCI on the RT-N56U board

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt3883/mach-rt-n56u.c

    r30498 r30528  
    1313#include <linux/rtl8367.h> 
    1414#include <linux/ethtool.h> 
     15#include <linux/pci.h> 
     16#include <linux/rt2x00_platform.h> 
    1517 
    1618#include <asm/mach-ralink/machine.h> 
     
    106108}; 
    107109 
     110static struct rt2x00_platform_data rt_n56u_pci_wlan_data = { 
     111        .eeprom_file_name       = "rt2x00pci_1_0.eeprom", 
     112}; 
     113 
     114static int rt_n56u_pci_plat_dev_init(struct pci_dev *dev) 
     115{ 
     116        if (dev->bus->number == 1 && PCI_SLOT(dev->devfn) == 0) 
     117                dev->dev.platform_data = &rt_n56u_pci_wlan_data; 
     118 
     119        return 0; 
     120} 
     121 
    108122static void __init rt_n56u_init(void) 
    109123{ 
     
    134148        rt3883_register_wdt(false); 
    135149        rt3883_register_usbhost(); 
     150        rt3883_pci_set_plat_dev_init(rt_n56u_pci_plat_dev_init); 
     151        rt3883_pci_init(RT3883_PCI_MODE_PCIE); 
    136152} 
    137153 
Note: See TracChangeset for help on using the changeset viewer.