From 2eaba1f7c436437c8427dce946a57cef056bcfa0 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Mon, 27 Sep 2010 14:53:49 +0000 Subject: [PATCH] ar71xx: use the MDIO interface of the 2nd MAC on the ar7241 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23132 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/files/arch/mips/ar71xx/devices.c | 6 ++++++ 1 file changed, 6 insertions(+) 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;