summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCyril Chemparathy <cyril@ti.com>2010-09-15 10:11:24 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2010-09-24 07:40:30 -0700
commit5d69e0076a726588265af040b21ac3f8266856d1 (patch)
tree8267790f6468ab07c232c147dec3f9a2ad88dee9 /include
parent433cdb0ac4c4660e98412e441589a7a712010325 (diff)
downloadlinux-stable-5d69e0076a726588265af040b21ac3f8266856d1.tar.gz
linux-stable-5d69e0076a726588265af040b21ac3f8266856d1.tar.bz2
linux-stable-5d69e0076a726588265af040b21ac3f8266856d1.zip
net: davinci_emac: switch to new mdio
This patch switches the emac implementation over to the newly separated MDIO driver. With this, the mdio bus frequency defaults to a safe 2.2MHz. Boards may optionally specify a bus frequency via platform data. The phy identification scheme has been modified to use a phy bus id instead of a mask. This largely serves to eliminate the "phy search" code in emac init. Signed-off-by: Cyril Chemparathy <cyril@ti.com> Acked-by: David S. Miller <davem@davemloft.net> Tested-by: Michael Williamson <michael.williamson@criticallink.com> Tested-by: Caglar Akyuz <caglarakyuz@gmail.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/davinci_emac.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/davinci_emac.h b/include/linux/davinci_emac.h
index a04fd8c9fbdf..46a759f0c082 100644
--- a/include/linux/davinci_emac.h
+++ b/include/linux/davinci_emac.h
@@ -28,6 +28,15 @@ struct emac_platform_data {
u32 ctrl_ram_size;
u32 phy_mask;
u32 mdio_max_freq;
+
+ /*
+ * phy_id can be one of the following:
+ * - NULL : use the first phy on the bus,
+ * - "" : force to 100/full, no mdio control
+ * - "<bus>:<addr>" : use the specified bus and phy
+ */
+ const char *phy_id;
+
u8 rmii_en;
u8 version;
void (*interrupt_enable) (void);