diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-03-31 08:40:20 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-03-31 08:40:20 +0000 |
commit | 9f3d673dbc8c4de38c4223cad0aff12d72ae5253 (patch) | |
tree | 4bf036eba9557f26094c8b0a3146a614ed16a045 /target/linux/ramips/files/arch/mips/ralink/rt288x/devices.c | |
parent | 717dc9942749474f74de2dc3f3aa7ff480e4b7a2 (diff) | |
download | master-31e0f0ae-9f3d673dbc8c4de38c4223cad0aff12d72ae5253.tar.gz master-31e0f0ae-9f3d673dbc8c4de38c4223cad0aff12d72ae5253.tar.bz2 master-31e0f0ae-9f3d673dbc8c4de38c4223cad0aff12d72ae5253.zip |
ramips: add wifi device for the RT2880 as well
SVN-Revision: 20624
Diffstat (limited to 'target/linux/ramips/files/arch/mips/ralink/rt288x/devices.c')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt288x/devices.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/devices.c b/target/linux/ramips/files/arch/mips/ralink/rt288x/devices.c index 64ce0a9e6e..086d9a999f 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt288x/devices.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/devices.c @@ -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); +} |