summaryrefslogtreecommitdiff
path: root/drivers/net/designware.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-07-06 15:55:21 -0400
committerTom Rini <trini@konsulko.com>2016-07-06 15:55:21 -0400
commit246fa47840f2b9aecc7308f140680dd00545c6a9 (patch)
tree9454f496ad3ac560dc7bee85c7ba58c643ffb14f /drivers/net/designware.h
parent70c440e5bdca097915b71170f9532ae4faad735a (diff)
parent4c64c4db3b87818318ed8b4cd6907c508aaf04ce (diff)
downloadu-boot-imx-246fa47840f2b9aecc7308f140680dd00545c6a9.zip
u-boot-imx-246fa47840f2b9aecc7308f140680dd00545c6a9.tar.gz
u-boot-imx-246fa47840f2b9aecc7308f140680dd00545c6a9.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'drivers/net/designware.h')
-rw-r--r--drivers/net/designware.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/designware.h b/drivers/net/designware.h
index 51ba769..d345c5b 100644
--- a/drivers/net/designware.h
+++ b/drivers/net/designware.h
@@ -8,7 +8,9 @@
#ifndef _DW_ETH_H
#define _DW_ETH_H
-#include <asm/gpio.h>
+#ifdef CONFIG_DM_GPIO
+#include <asm-generic/gpio.h>
+#endif
#define CONFIG_TX_DESCR_NUM 16
#define CONFIG_RX_DESCR_NUM 16
@@ -234,7 +236,10 @@ struct dw_eth_dev {
#ifndef CONFIG_DM_ETH
struct eth_device *dev;
#endif
+#ifdef CONFIG_DM_GPIO
struct gpio_desc reset_gpio;
+#endif
+
struct phy_device *phydev;
struct mii_dev *bus;
};