1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

ramips: add wifi device for the RT2880 as well

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20624 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg
2010-03-31 08:40:20 +00:00
parent 1371c8b712
commit c03509e141
2 changed files with 27 additions and 0 deletions

View File

@@ -96,3 +96,29 @@ void __init rt288x_register_flash(unsigned int id,
platform_device_register(pdev);
rt288x_flash_instance++;
}
static struct resource rt288x_wifi_resources[] = {
{
.start = RT2880_WMAC_BASE,
.end = RT2880_WMAC_BASE + 0x3FFFF,
.flags = IORESOURCE_MEM,
}, {
.start = RT288X_CPU_IRQ_WNIC,
.end = RT288X_CPU_IRQ_WNIC,
.flags = IORESOURCE_IRQ,
},
};
static struct platform_device rt288x_wifi_device = {
.name = "rt2800_wmac",
.resource = rt288x_wifi_resources,
.num_resources = ARRAY_SIZE(rt288x_wifi_resources),
.dev = {
.platform_data = NULL,
}
};
void __init rt288x_register_wifi(void)
{
platform_device_register(&rt288x_wifi_device);
}