summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCyril Chemparathy <cyril@ti.com>2010-09-15 16:11:21 +0200
committerKevin Hilman <khilman@deeprootsystems.com>2010-09-24 16:40:29 +0200
commitf20136eb03a1dbdfb04f3c62fd11c0d02d02b726 (patch)
tree69c5ffafd16d723dc365f4bec5454cdce8b36f84 /include
parentdavinci: Add I2C0 devices to MityDSP-L138/MityARM-1808 platform (diff)
downloadlinux-f20136eb03a1dbdfb04f3c62fd11c0d02d02b726.tar.xz
linux-f20136eb03a1dbdfb04f3c62fd11c0d02d02b726.zip
net: davinci_emac: separate out davinci mdio
Davinci's MDIO controller is present on other TI devices, without an accompanying EMAC. For example, on tnetv107x, the same MDIO module is used in conjunction with a 3-port switch hardware. By separating the MDIO controller code into its own platform driver, this patch allows common logic to be reused on such platforms. Signed-off-by: Cyril Chemparathy <cyril@ti.com> 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/davinci_emac.h b/include/linux/davinci_emac.h
index 7c930dba477c..a04fd8c9fbdf 100644
--- a/include/linux/davinci_emac.h
+++ b/include/linux/davinci_emac.h
@@ -14,6 +14,10 @@
#include <linux/if_ether.h>
#include <linux/memory.h>
+struct mdio_platform_data {
+ unsigned long bus_freq;
+};
+
struct emac_platform_data {
char mac_addr[ETH_ALEN];
u32 ctrl_reg_offset;