diff options
author | shubhrajyoti.datta@xilinx.com <shubhrajyoti.datta@xilinx.com> | 2016-08-16 10:14:50 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-18 20:58:42 -0700 |
commit | aead88bd0e990540c03df8108671c93b35354736 (patch) | |
tree | b74ba246bf7717f032439c66b7c773288866f12c /drivers/net/ethernet/cadence/macb.h | |
parent | d52bfbda774a9996e0687511ab7a9cd67d195d05 (diff) | |
download | lwn-aead88bd0e990540c03df8108671c93b35354736.tar.gz lwn-aead88bd0e990540c03df8108671c93b35354736.zip |
net: ethernet: macb: Add support for rx_clk
Some of the platforms like zynqmp ultrascale+ has a
separate clock gate for the rx clock. Add an optional
rx_clk so that the clock can be enabled.
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.h')
-rw-r--r-- | drivers/net/ethernet/cadence/macb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index aa3aeecc3132..8bed4b52fef5 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -772,7 +772,8 @@ struct macb_config { u32 caps; unsigned int dma_burst_length; int (*clk_init)(struct platform_device *pdev, struct clk **pclk, - struct clk **hclk, struct clk **tx_clk); + struct clk **hclk, struct clk **tx_clk, + struct clk **rx_clk); int (*init)(struct platform_device *pdev); int jumbo_max_len; }; @@ -819,6 +820,7 @@ struct macb { struct clk *pclk; struct clk *hclk; struct clk *tx_clk; + struct clk *rx_clk; struct net_device *dev; struct napi_struct napi; struct net_device_stats stats; |