1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-01 00:41:41 +03:00

ar71xx: only allow RGMII mode on the 2nd ethernet MAC of the AR7240

Signed-off-by: Daniel Golle <dgolle@allnet.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33280 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2012-08-27 14:55:26 +00:00
parent ef286ca0dc
commit aec6c8f610

View File

@ -616,7 +616,14 @@ static int __init ath79_setup_phy_if_mode(unsigned int id,
break;
case ATH79_SOC_AR7242:
/* FIXME */
switch (pdata->phy_if_mode) {
case PHY_INTERFACE_MODE_RGMII:
break;
default:
/* Other PHY modes are not tested yet. */
return -EINVAL;
}
break;
case ATH79_SOC_AR9341:
case ATH79_SOC_AR9342: