summaryrefslogtreecommitdiff
path: root/drivers/net/designware.h
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2017-11-29 09:06:11 +0100
committerJoe Hershberger <joe.hershberger@ni.com>2018-01-15 12:05:20 -0600
commitba1f966725223c605ed504b09446c52a3f201c2b (patch)
treed93b30b3e122747996272273f635e54a3e5de7b0 /drivers/net/designware.h
parentea8cd652a791db47bf7b77a6af2a63fe35954ea2 (diff)
net: designware: add clock support
This implementation manages several clocks, disable and free all of them in case of error during probe and in remove callback. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/designware.h')
-rw-r--r--drivers/net/designware.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/designware.h b/drivers/net/designware.h
index 7992d0ebee..252cd24f1a 100644
--- a/drivers/net/designware.h
+++ b/drivers/net/designware.h
@@ -239,6 +239,10 @@ struct dw_eth_dev {
#ifdef CONFIG_DM_GPIO
struct gpio_desc reset_gpio;
#endif
+#ifdef CONFIG_CLK
+ struct clk *clocks; /* clock list */
+ int clock_count; /* number of clock in clock list */
+#endif
struct phy_device *phydev;
struct mii_dev *bus;