projects
/
openwrt
/
staging
/
rmilecki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e859629
)
ar71xx: only allow RGMII mode on the 2nd ethernet MAC of the AR7240
author
Gabor Juhos
<
[email protected]
>
Mon, 27 Aug 2012 14:55:26 +0000
(14:55 +0000)
committer
Gabor Juhos
<
[email protected]
>
Mon, 27 Aug 2012 14:55:26 +0000
(14:55 +0000)
Signed-off-by: Daniel Golle <
[email protected]
>
SVN-Revision: 33280
target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
patch
|
blob
|
history
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 e6a50760193accd44ab5c8c9afb1b88f0a5e6485..9cd6e37efce599f0b55933c2e7f34374083683d2 100644
(file)
--- 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: