Changeset 27081


Ignore:
Timestamp:
2011-06-01T15:12:27+02:00 (7 years ago)
Author:
juhosg
Message:

ar71xx: init get_mac_revision on AR9330 rev 1

File:
1 edited

Legend:

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

    r27064 r27081  
    6464} 
    6565 
     66static int ar933x_r1_get_wmac_revision(void) 
     67{ 
     68        return ar71xx_soc_rev; 
     69} 
     70 
    6671static void ar933x_wmac_init(void) 
    6772{ 
     
    7176        if (ar71xx_ref_freq == MHZ_25) 
    7277                ar9xxx_wmac_data.is_clk_25mhz = true; 
     78 
     79        if (ar71xx_soc_rev == 1) 
     80                ar9xxx_wmac_data.get_mac_revision = ar933x_r1_get_wmac_revision; 
    7381} 
    7482 
Note: See TracChangeset for help on using the changeset viewer.