summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/smsc/smc91x.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2014-10-30 17:59:27 +0100
committerDavid S. Miller <davem@davemloft.net>2014-10-31 20:54:18 +0100
commit7d2911c4381555b31ef0bcae42a0dbf9ade7426e (patch)
tree2baef674f3a88ad52943fade77b0129f188ab1c8 /drivers/net/ethernet/smsc/smc91x.h
parentmpls: Allow mpls_gso to be built as module (diff)
downloadlinux-7d2911c4381555b31ef0bcae42a0dbf9ade7426e.tar.xz
linux-7d2911c4381555b31ef0bcae42a0dbf9ade7426e.zip
net: smc91x: Fix gpios for device tree based booting
With legacy booting, the platform init code was taking care of the configuring of GPIOs. With device tree based booting, things may or may not work depending what bootloader has configured or if the legacy platform code gets called. Let's add support for the pwrdn and reset GPIOs to the smc91x driver to fix the issues of smc91x not working properly when booted in device tree mode. And let's change n900 to use these settings as some versions of the bootloader do not configure things properly causing errors. Reported-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/smsc/smc91x.h')
-rw-r--r--drivers/net/ethernet/smsc/smc91x.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/smsc/smc91x.h b/drivers/net/ethernet/smsc/smc91x.h
index 47dce918eb0f..2a38dacbbd27 100644
--- a/drivers/net/ethernet/smsc/smc91x.h
+++ b/drivers/net/ethernet/smsc/smc91x.h
@@ -298,6 +298,9 @@ struct smc_local {
struct sk_buff *pending_tx_skb;
struct tasklet_struct tx_task;
+ struct gpio_desc *power_gpio;
+ struct gpio_desc *reset_gpio;
+
/* version/revision of the SMC91x chip */
int version;