Changeset 20599 for trunk


Ignore:
Timestamp:
2010-03-30T14:04:05+02:00 (6 years ago)
Author:
blogic
Message:

The ralink rt305x board has a wireless card that can be used with the rt2800pci driver (it does not work yet but basically should). Hence, register the appropriate platform device to allow developing/testing the rt2800pci driver. Signed-off-by: Helmut Schaa <helmut.schaa@…>

Location:
trunk/target/linux/ramips/files/arch/mips/ralink/rt305x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c

    r19462 r20599  
    137137        platform_device_register(&rt305x_eth_device); 
    138138} 
     139 
     140static struct resource rt305x_wifi_resources[] = { 
     141        { 
     142                .start  = RT305X_WMAC_BASE, 
     143                .end    = RT305X_WMAC_BASE + 0x3FFFF, 
     144                .flags  = IORESOURCE_MEM, 
     145        }, { 
     146                .start  = RT305X_CPU_IRQ_WNIC, 
     147                .end    = RT305X_CPU_IRQ_WNIC, 
     148                .flags  = IORESOURCE_IRQ, 
     149        }, 
     150}; 
     151 
     152static struct platform_device rt305x_wifi_device = { 
     153        .name                   = "rt2800_wmac", 
     154        .resource               = rt305x_wifi_resources, 
     155        .num_resources  = ARRAY_SIZE(rt305x_wifi_resources), 
     156        .dev = { 
     157                .platform_data = NULL, 
     158        } 
     159}; 
     160 
     161void __init rt305x_register_wifi(void) 
     162{ 
     163        platform_device_register(&rt305x_wifi_device); 
     164} 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.h

    r18135 r20599  
    1717                                  struct physmap_flash_data *pdata) __init; 
    1818extern void rt305x_register_ethernet(void); 
     19extern void rt305x_register_wifi(void); 
    1920 
    2021#endif  /* __RT305X_DEVICES_H */ 
Note: See TracChangeset for help on using the changeset viewer.