Changeset 24568


Ignore:
Timestamp:
2010-12-14T19:01:00+01:00 (7 years ago)
Author:
juhosg
Message:

ar71xx: add helper function to setup LED pin and GPIO on the AP91 based boards

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

Legend:

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

    r23975 r24568  
    4343} 
    4444 
     45__init void ap91_pci_setup_wmac_led_pin(int pin) 
     46{ 
     47        ap91_wmac_data.led_pin = pin; 
     48} 
     49 
     50__init void ap91_pci_setup_wmac_gpio(u32 mask, u32 val) 
     51{ 
     52        ap91_wmac_data.gpio_mask = mask; 
     53        ap91_wmac_data.gpio_val = val; 
     54} 
     55 
    4556void __init ap91_pci_init(u8 *cal_data, u8 *mac_addr) 
    4657{ 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-pci.h

    r18931 r24568  
    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.