aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-08-27 14:55:26 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-08-27 14:55:26 +0000
commitf4fbd75f87b782d58f949dff9521d4f89d5d54b3 (patch)
tree09ac117ad46ccf38bfd963d71cc3313c482ba5d0
parent1d7992a51601cae18b95856ec8eb989f5dd9fb91 (diff)
downloadmaster-187ad058-f4fbd75f87b782d58f949dff9521d4f89d5d54b3.tar.gz
master-187ad058-f4fbd75f87b782d58f949dff9521d4f89d5d54b3.tar.bz2
master-187ad058-f4fbd75f87b782d58f949dff9521d4f89d5d54b3.zip
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
-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 e6a5076019..9cd6e37efc 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: