Changeset 13825


Ignore:
Timestamp:
2009-01-02T19:54:33+01:00 (9 years ago)
Author:
juhosg
Message:

[ar71xx] prepare for ath9k support

Location:
trunk/target/linux/ar71xx/files
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c

    r13769 r13825  
    1818#include <linux/platform_device.h> 
    1919#include <linux/serial_8250.h> 
     20#include <linux/ath9k_platform.h> 
    2021 
    2122#include <asm/mach-ar71xx/ar71xx.h> 
     
    606607}; 
    607608 
     609static struct ath9k_platform_data ar91xx_wmac_data; 
     610 
    608611static struct platform_device ar91xx_wmac_device = { 
    609612        .name           = "ath9k", 
     
    611614        .resource       = ar91xx_wmac_resources, 
    612615        .num_resources  = ARRAY_SIZE(ar91xx_wmac_resources), 
     616        .dev = { 
     617                .platform_data = &ar91xx_wmac_data, 
     618        }, 
    613619}; 
    614620 
    615621void __init ar91xx_add_device_wmac(void) 
    616622{ 
     623        u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000); 
     624 
     625        memcpy(ar91xx_wmac_data.eeprom_data, ee, 
     626               sizeof(ar91xx_wmac_data.eeprom_data)); 
     627 
     628        ar71xx_device_stop(RESET_MODULE_AMBA2WMAC); 
     629        mdelay(10); 
     630 
     631        ar71xx_device_start(RESET_MODULE_AMBA2WMAC); 
     632        mdelay(10); 
     633 
    617634        platform_device_register(&ar91xx_wmac_device); 
    618635} 
Note: See TracChangeset for help on using the changeset viewer.