summaryrefslogtreecommitdiff
path: root/drivers/net/designware.h
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2016-02-28 22:24:55 +0100
committerSimon Glass <sjg@chromium.org>2016-05-27 09:00:48 -0600
commit90b7fc924adfe7f1745dcf6a1dabb9e77aa762a7 (patch)
tree32909f2f1853af4f8553d713a6fedd41a5a2d8d0 /drivers/net/designware.h
parent6523dbf7cce8d8c903346f756e0e41e46ce6d6b9 (diff)
downloadu-boot-imx-90b7fc924adfe7f1745dcf6a1dabb9e77aa762a7.zip
u-boot-imx-90b7fc924adfe7f1745dcf6a1dabb9e77aa762a7.tar.gz
u-boot-imx-90b7fc924adfe7f1745dcf6a1dabb9e77aa762a7.tar.bz2
net: designware: support phy reset device-tree bindings
Add support for the snps,reset-gpio, snps,reset-active-low (optional) and snps,reset-delays-us device-tree bindings. The combination of these three define how the PHY should be reset to ensure it's in a sane state. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/net/designware.h')
-rw-r--r--drivers/net/designware.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/designware.h b/drivers/net/designware.h
index ed6344c..04a45e0 100644
--- a/drivers/net/designware.h
+++ b/drivers/net/designware.h
@@ -8,6 +8,8 @@
#ifndef _DW_ETH_H
#define _DW_ETH_H
+#include <asm/gpio.h>
+
#define CONFIG_TX_DESCR_NUM 16
#define CONFIG_RX_DESCR_NUM 16
#define CONFIG_ETH_BUFSIZE 2048
@@ -232,8 +234,16 @@ struct dw_eth_dev {
#ifndef CONFIG_DM_ETH
struct eth_device *dev;
#endif
+ struct gpio_desc reset_gpio;
struct phy_device *phydev;
struct mii_dev *bus;
};
+#ifdef CONFIG_DM_ETH
+struct dw_eth_pdata {
+ struct eth_pdata eth_pdata;
+ u32 reset_delays[3];
+};
+#endif
+
#endif