summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
index e6a507601..9cd6e37ef 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
@@ -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: