]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/designware.h
mmc: sdhci: use the generic error number
[u-boot] / drivers / net / designware.h
index 51ba769cfb661cacea06c465d348811d16d882d0..d345c5b0c3ec100bd0715e57f54b8b7c3024621a 100644 (file)
@@ -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;
 };