summaryrefslogtreecommitdiff
path: root/drivers/net/designware.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-05-27 15:48:53 -0400
committerTom Rini <trini@konsulko.com>2016-05-27 15:48:53 -0400
commit378f9134eba4665ea94a63653393d25418665fda (patch)
treee273a03c52e8261c0f6c401914d44a9eff442684 /drivers/net/designware.h
parent9b77b19178446393fce2e74554815c17454f8da8 (diff)
parent2ed6dc83380ea2f49ec09556c14c6eddd3f5c27a (diff)
downloadu-boot-378f9134eba4665ea94a63653393d25418665fda.tar.gz
Merge git://git.denx.de/u-boot-rockchip
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 d48df7bc59..51ba769cfb 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