summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/arc/emac.h
diff options
context:
space:
mode:
authorRomain Perier <romain.perier@gmail.com>2014-09-08 17:14:47 +0000
committerDavid S. Miller <davem@davemloft.net>2014-09-09 17:29:59 -0700
commit6eacf31139bf9638c62eb7853ee37f70da1ad28c (patch)
tree607c1c2f61ada0e61a2089e5a8b583b23a143343 /drivers/net/ethernet/arc/emac.h
parent60005c60b1ea807013bcbbfe9309fc924a3881f0 (diff)
downloadlinux-6eacf31139bf9638c62eb7853ee37f70da1ad28c.tar.gz
linux-6eacf31139bf9638c62eb7853ee37f70da1ad28c.tar.bz2
linux-6eacf31139bf9638c62eb7853ee37f70da1ad28c.zip
ethernet: arc: Add support for Rockchip SoC layer device tree bindings
This patch defines a platform glue layer for Rockchip SoCs which support arc-emac driver. It ensures that regulator for the rmii is on before trying to connect to the ethernet controller. It applies right speed and mode changes to the grf when ethernet settings change. Signed-off-by: Romain Perier <romain.perier@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/arc/emac.h')
-rw-r--r--drivers/net/ethernet/arc/emac.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/arc/emac.h b/drivers/net/ethernet/arc/emac.h
index eb2ba67ac711..dae1ac300a49 100644
--- a/drivers/net/ethernet/arc/emac.h
+++ b/drivers/net/ethernet/arc/emac.h
@@ -123,9 +123,11 @@ struct buffer_state {
* @speed: PHY's last set speed.
*/
struct arc_emac_priv {
- /* Devices */
const char *drv_name;
const char *drv_version;
+ void (*set_mac_speed)(void *priv, unsigned int speed);
+
+ /* Devices */
struct device *dev;
struct phy_device *phy_dev;
struct mii_bus *bus;