Ignore:
Timestamp:
2011-06-01T00:53:39+02:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: add WMAC initialization code for the AR933X SoCs

File:
1 edited

Legend:

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

    r27045 r27064  
    6464} 
    6565 
     66static void ar933x_wmac_init(void) 
     67{ 
     68        ar9xxx_wmac_device.name = "ar933x_wmac"; 
     69        ar9xxx_wmac_resources[0].start = AR933X_WMAC_BASE; 
     70        ar9xxx_wmac_resources[0].end = AR933X_WMAC_BASE + AR933X_WMAC_SIZE - 1; 
     71        if (ar71xx_ref_freq == MHZ_25) 
     72                ar9xxx_wmac_data.is_clk_25mhz = true; 
     73} 
     74 
    6675static void ar934x_wmac_init(void) 
    6776{ 
     
    7988        case AR71XX_SOC_AR9132: 
    8089                ar913x_wmac_init(); 
     90                break; 
     91 
     92        case AR71XX_SOC_AR9330: 
     93        case AR71XX_SOC_AR9331: 
     94                ar933x_wmac_init(); 
    8195                break; 
    8296 
Note: See TracChangeset for help on using the changeset viewer.