aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/davinci_emac.h
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 10:40:30 -0400
commit5d69e0076a726588265af040b21ac3f8266856d1 (patch)
tree8267790f6468ab07c232c147dec3f9a2ad88dee9 /include/linux/davinci_emac.h
parent433cdb0ac4c4660e98412e441589a7a712010325 (diff)
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/linux/davinci_emac.h')
-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 {
28 u32 ctrl_ram_size; 28 u32 ctrl_ram_size;
29 u32 phy_mask; 29 u32 phy_mask;
30 u32 mdio_max_freq; 30 u32 mdio_max_freq;
31
32 /*
33 * phy_id can be one of the following:
34 * - NULL : use the first phy on the bus,
35 * - "" : force to 100/full, no mdio control
36 * - "<bus>:<addr>" : use the specified bus and phy
37 */
38 const char *phy_id;
39
31 u8 rmii_en; 40 u8 rmii_en;
32 u8 version; 41 u8 version;
33 void (*interrupt_enable) (void); 42 void (*interrupt_enable) (void);