diff options
author | John Crispin <blogic@openwrt.org> | 2008-06-29 14:56:45 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2008-06-29 14:56:45 +0000 |
commit | b443cf01c1fb6333c92ac04a84fafdfb1c7207af (patch) | |
tree | a198d4953a2954d33b5dc318970d4ba3ce997164 /target/linux/ifxmips/files/drivers/net/ifxmips_mii0.c | |
parent | 9e5e864db3996db06355d6021153a51861832ee5 (diff) | |
download | upstream-b443cf01c1fb6333c92ac04a84fafdfb1c7207af.tar.gz upstream-b443cf01c1fb6333c92ac04a84fafdfb1c7207af.tar.bz2 upstream-b443cf01c1fb6333c92ac04a84fafdfb1c7207af.zip |
fixes mdio, adds runtime board configuration for ifxmips
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11609 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ifxmips/files/drivers/net/ifxmips_mii0.c')
-rw-r--r-- | target/linux/ifxmips/files/drivers/net/ifxmips_mii0.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ifxmips/files/drivers/net/ifxmips_mii0.c b/target/linux/ifxmips/files/drivers/net/ifxmips_mii0.c index cd3075c1d6..cc3b9d46a7 100644 --- a/target/linux/ifxmips/files/drivers/net/ifxmips_mii0.c +++ b/target/linux/ifxmips/files/drivers/net/ifxmips_mii0.c @@ -54,6 +54,7 @@ ifxmips_write_mdio(u32 phy_addr, u32 phy_reg, u16 phy_data) while(ifxmips_r32(IFXMIPS_PPE32_MDIO_ACC) & MDIO_ACC_REQUEST); ifxmips_w32(val, IFXMIPS_PPE32_MDIO_ACC); } +EXPORT_SYMBOL(ifxmips_write_mdio); unsigned short ifxmips_read_mdio(u32 phy_addr, u32 phy_reg) @@ -67,6 +68,7 @@ ifxmips_read_mdio(u32 phy_addr, u32 phy_reg) val = ifxmips_r32(IFXMIPS_PPE32_MDIO_ACC) & MDIO_ACC_VAL_MASK; return val; } +EXPORT_SYMBOL(ifxmips_read_mdio); int ifxmips_ifxmips_mii_open(struct net_device *dev) @@ -346,6 +348,7 @@ ifxmips_mii_probe(struct platform_device *dev) ifxmips_mii0_dev->init = ifxmips_mii_dev_init; memcpy(mac_addr, mac->mac, 6); strcpy(ifxmips_mii0_dev->name, "eth%d"); + ifxmips_mii_chip_init(REV_MII_MODE); result = register_netdev(ifxmips_mii0_dev); if (result) { @@ -353,7 +356,6 @@ ifxmips_mii_probe(struct platform_device *dev) goto out; } - ifxmips_mii_chip_init(REV_MII_MODE); printk(KERN_INFO "ifxmips_mii0: driver loaded!\n"); out: |