diff options
author | Heiko Stübner <heiko@sntech.de> | 2014-04-25 10:06:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-27 19:46:17 -0400 |
commit | 88154c96ee2dab84ae78ad41562b4a3a23d83788 (patch) | |
tree | 8b5892907536e3d31a325ce0587e3e1a6e416535 /drivers/net/ethernet/arc/emac.h | |
parent | 796bec1efbbd3be98d84cd68279c6ec03a4782f9 (diff) | |
download | op-kernel-dev-88154c96ee2dab84ae78ad41562b4a3a23d83788.zip op-kernel-dev-88154c96ee2dab84ae78ad41562b4a3a23d83788.tar.gz |
arc_emac: add clock handling
This adds ability for the arc_emac to really handle its supplying clock.
To get the needed clock-frequency either a real clock or the previous
clock-frequency property must be provided.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Max Schwarz <max.schwarz@online.de>
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/arc/emac.h b/drivers/net/ethernet/arc/emac.h index 928fac6..53f85bf 100644 --- a/drivers/net/ethernet/arc/emac.h +++ b/drivers/net/ethernet/arc/emac.h @@ -11,6 +11,7 @@ #include <linux/dma-mapping.h> #include <linux/netdevice.h> #include <linux/phy.h> +#include <linux/clk.h> /* STATUS and ENABLE Register bit masks */ #define TXINT_MASK (1<<0) /* Transmit interrupt */ @@ -131,6 +132,7 @@ struct arc_emac_priv { struct mii_bus *bus; void __iomem *regs; + struct clk *clk; struct napi_struct napi; struct net_device_stats stats; |