aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-09-27 14:53:49 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-09-27 14:53:49 +0000
commitcda8655910dec1ce4944dcf3b8827915602db6c6 (patch)
tree5d58586ef62d813b3ac55271c203debc1c612580 /target/linux/ar71xx/files
parentb445943cdf967696f5c61b4e19aa3b984c8ffb15 (diff)
downloadupstream-cda8655910dec1ce4944dcf3b8827915602db6c6.tar.gz
upstream-cda8655910dec1ce4944dcf3b8827915602db6c6.tar.bz2
upstream-cda8655910dec1ce4944dcf3b8827915602db6c6.zip
ar71xx: use the MDIO interface of the 2nd MAC on the ar7241
SVN-Revision: 23132
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/devices.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c b/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c
index 8879448ac1..45300d7bfa 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c
@@ -86,7 +86,13 @@ void __init ar71xx_add_device_mdio(u32 phy_mask)
{
switch (ar71xx_soc) {
case AR71XX_SOC_AR7240:
+ ar71xx_mdio_data.is_ar7240 = 1;
+ break;
case AR71XX_SOC_AR7241:
+ ar71xx_mdio_data.is_ar7240 = 1;
+ ar71xx_mdio_resources[0].start = AR71XX_GE1_BASE;
+ ar71xx_mdio_resources[0].end = AR71XX_GE1_BASE + 0x200 - 1;
+ break;
case AR71XX_SOC_AR7242:
ar71xx_mdio_data.is_ar7240 = 1;
break;