summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/smsc95xx.h
diff options
context:
space:
mode:
authorSteve Glendinning <steve.glendinning@smsc.com>2009-05-01 07:46:51 +0200
committerDavid S. Miller <davem@davemloft.net>2009-05-02 00:27:02 +0200
commitf293501c61c50b014ad2347661c6acd951c80fed (patch)
tree8b6327749d50bd2fdf2fb15e2bd54e1f3d028e70 /drivers/net/usb/smsc95xx.h
parentnetconsole: take care of NETDEV_UNREGISTER event (diff)
downloadlinux-f293501c61c50b014ad2347661c6acd951c80fed.tar.xz
linux-f293501c61c50b014ad2347661c6acd951c80fed.zip
smsc95xx: configure LED outputs
SMSC LAN9500 has dual purpose GPIO/LED pins, and by default at power-on these are configured as GPIOs. This means that if LEDs are fitted they won't ever light. This patch sets them to be LED outputs for speed, duplex and link/activity. Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/smsc95xx.h')
-rw-r--r--drivers/net/usb/smsc95xx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/usb/smsc95xx.h b/drivers/net/usb/smsc95xx.h
index 66b5c84f302e..86bc44977fbd 100644
--- a/drivers/net/usb/smsc95xx.h
+++ b/drivers/net/usb/smsc95xx.h
@@ -99,6 +99,9 @@
#define PM_CTL_WUPS_MULTI_ (0x00000003)
#define LED_GPIO_CFG (0x24)
+#define LED_GPIO_CFG_SPD_LED (0x01000000)
+#define LED_GPIO_CFG_LNK_LED (0x00100000)
+#define LED_GPIO_CFG_FDX_LED (0x00010000)
#define GPIO_CFG (0x28)