diff options
author | Cyril Chemparathy <cyril@ti.com> | 2010-09-15 10:11:21 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-09-24 07:40:29 -0700 |
commit | f20136eb03a1dbdfb04f3c62fd11c0d02d02b726 (patch) | |
tree | 69c5ffafd16d723dc365f4bec5454cdce8b36f84 /include/linux/davinci_emac.h | |
parent | 8774882394190fe52d1df449b1e1c6cff9c3088c (diff) | |
download | lwn-f20136eb03a1dbdfb04f3c62fd11c0d02d02b726.tar.gz lwn-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/linux/davinci_emac.h')
-rw-r--r-- | include/linux/davinci_emac.h | 4 |
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; |