Changeset 24964


Ignore:
Timestamp:
2011-01-11T10:12:05+01:00 (7 years ago)
Author:
juhosg
Message:

backfire: ar71xx: add helper function to setup LED pin and GPIO on the AP91 based boards (backport of r24568)

Location:
branches/backfire/target/linux/ar71xx/files/arch/mips/ar71xx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-pci.c

    r24921 r24964  
    9999DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_ATHEROS, PCI_ANY_ID, ap91_pci_fixup); 
    100100 
     101__init void ap91_pci_setup_wmac_led_pin(int pin) 
     102{ 
     103        ap91_wmac_data.led_pin = pin; 
     104} 
     105 
     106__init void ap91_pci_setup_wmac_gpio(u32 mask, u32 val) 
     107{ 
     108        ap91_wmac_data.gpio_mask = mask; 
     109        ap91_wmac_data.gpio_val = val; 
     110} 
     111 
    101112void __init ap91_pci_init(u8 *cal_data, u8 *mac_addr) 
    102113{ 
  • branches/backfire/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-pci.h

    r18931 r24964  
    1414#if defined(CONFIG_AR71XX_DEV_AP91_PCI) 
    1515void ap91_pci_init(u8 *cal_data, u8 *mac_addr) __init; 
     16void ap91_pci_setup_wmac_led_pin(int pin) __init; 
     17void ap91_pci_setup_wmac_gpio(u32 mask, u32 val) __init; 
    1618#else 
    1719static inline void ap91_pci_init(u8 *cal_data, u8 *mac_addr) { } 
     20static inline void ap91_pci_setup_wmac_led(int pin) { } 
     21static inline void ap91_pci_setup_wmac_gpio(u32 mask, u32 gpio) { } 
    1822#endif 
    1923 
Note: See TracChangeset for help on using the changeset viewer.