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

ar71xx: add ap9x_pci_get_wmac_data helper

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31354 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg
2012-04-19 21:31:42 +00:00
parent 9ec35a5650
commit e25325e131
2 changed files with 19 additions and 0 deletions

View File

@@ -40,6 +40,19 @@ __init void ap9x_pci_setup_wmac_led_pin(unsigned wmac, int pin)
}
}
__init struct ath9k_platform_data *ap9x_pci_get_wmac_data(unsigned wmac)
{
switch (wmac) {
case 0:
return &ap9x_wmac0_data;
case 1:
return &ap9x_wmac1_data;
}
return NULL;
}
__init void ap9x_pci_setup_wmac_gpio(unsigned wmac, u32 mask, u32 val)
{
switch (wmac) {