diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-12-08 10:29:27 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-12-08 10:29:27 +0000 |
commit | 18867965f79a4dc13db50cdc529c102373da64a8 (patch) | |
tree | 1d3d6f37ea72c8c2eac475a7536614f4f5cfba10 /target/linux/ar71xx/files/arch | |
parent | 0e79007faf77c93d1ac7c3eba19c09df025e9528 (diff) | |
download | upstream-18867965f79a4dc13db50cdc529c102373da64a8.tar.gz upstream-18867965f79a4dc13db50cdc529c102373da64a8.tar.bz2 upstream-18867965f79a4dc13db50cdc529c102373da64a8.zip |
ar71xx: add support for external mii_bus
SVN-Revision: 18692
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/devices.c | 3 | ||||
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h | 1 |
2 files changed, 4 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 bed23938ea..43212ed3bf 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c @@ -628,6 +628,9 @@ void __init ar71xx_add_device_eth(unsigned int id) ar71xx_eth_instance); } + if (pdata->mii_bus_dev == NULL) + pdata->mii_bus_dev = &ar71xx_mdio_device.dev; + /* Reset the device */ ar71xx_device_stop(pdata->reset_bit); mdelay(100); diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h index baded8b8b9..145e79fcea 100644 --- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h +++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h @@ -25,6 +25,7 @@ struct ag71xx_platform_data { u32 reset_bit; u32 mii_if; u8 mac_addr[ETH_ALEN]; + struct device *mii_bus_dev; u8 has_gbit:1; u8 is_ar91xx:1; |