diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-08-27 14:55:26 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-08-27 14:55:26 +0000 |
commit | cca873e8e00097b5c78e1da6b1cc244107a227e8 (patch) | |
tree | c5e0224b2f778d449b3ad0a2bad4d876e44666e7 /target/linux | |
parent | e85962926afac94c74d73a2332a8b7a42d3018a2 (diff) | |
download | upstream-cca873e8e00097b5c78e1da6b1cc244107a227e8.tar.gz upstream-cca873e8e00097b5c78e1da6b1cc244107a227e8.tar.bz2 upstream-cca873e8e00097b5c78e1da6b1cc244107a227e8.zip |
ar71xx: only allow RGMII mode on the 2nd ethernet MAC of the AR7240
Signed-off-by: Daniel Golle <dgolle@allnet.de>
SVN-Revision: 33280
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c | 9 |
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: |