ar71xx: fixup allowed PHY interface types for QCA9558
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34851 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
c301f74b61
commit
4f5e30c1b8
|
@ -605,7 +605,6 @@ static int __init ath79_setup_phy_if_mode(unsigned int id,
|
|||
case ATH79_SOC_AR9341:
|
||||
case ATH79_SOC_AR9342:
|
||||
case ATH79_SOC_AR9344:
|
||||
case ATH79_SOC_QCA9558:
|
||||
switch (pdata->phy_if_mode) {
|
||||
case PHY_INTERFACE_MODE_MII:
|
||||
case PHY_INTERFACE_MODE_GMII:
|
||||
|
@ -617,6 +616,17 @@ static int __init ath79_setup_phy_if_mode(unsigned int id,
|
|||
}
|
||||
break;
|
||||
|
||||
case ATH79_SOC_QCA9558:
|
||||
switch (pdata->phy_if_mode) {
|
||||
case PHY_INTERFACE_MODE_MII:
|
||||
case PHY_INTERFACE_MODE_RGMII:
|
||||
case PHY_INTERFACE_MODE_SGMII:
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
BUG();
|
||||
}
|
||||
|
@ -654,7 +664,6 @@ static int __init ath79_setup_phy_if_mode(unsigned int id,
|
|||
case ATH79_SOC_AR9341:
|
||||
case ATH79_SOC_AR9342:
|
||||
case ATH79_SOC_AR9344:
|
||||
case ATH79_SOC_QCA9558:
|
||||
switch (pdata->phy_if_mode) {
|
||||
case PHY_INTERFACE_MODE_MII:
|
||||
case PHY_INTERFACE_MODE_GMII:
|
||||
|
@ -664,6 +673,17 @@ static int __init ath79_setup_phy_if_mode(unsigned int id,
|
|||
}
|
||||
break;
|
||||
|
||||
case ATH79_SOC_QCA9558:
|
||||
switch (pdata->phy_if_mode) {
|
||||
case PHY_INTERFACE_MODE_MII:
|
||||
case PHY_INTERFACE_MODE_RGMII:
|
||||
case PHY_INTERFACE_MODE_SGMII:
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
BUG();
|
||||
}
|
||||
|
@ -921,6 +941,7 @@ void __init ath79_register_eth(unsigned int id)
|
|||
switch (pdata->phy_if_mode) {
|
||||
case PHY_INTERFACE_MODE_GMII:
|
||||
case PHY_INTERFACE_MODE_RGMII:
|
||||
case PHY_INTERFACE_MODE_SGMII:
|
||||
if (!pdata->has_gbit) {
|
||||
printk(KERN_ERR "ar71xx: no gbit available on eth%d\n",
|
||||
id);
|
||||
|
|
Loading…
Reference in New Issue