Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144588
b: refs/heads/master
c: f293501
h: refs/heads/master
v: v3
  • Loading branch information
Steve Glendinning authored and David S. Miller committed May 1, 2009
1 parent f1cb7c9 commit 68c7c3d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2382b15bcc39228572ccf1d9a1185dcabb84c833
refs/heads/master: f293501c61c50b014ad2347661c6acd951c80fed
10 changes: 10 additions & 0 deletions trunk/drivers/net/usb/smsc95xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,16 @@ static int smsc95xx_reset(struct usbnet *dev)
if (netif_msg_ifup(dev))
devdbg(dev, "ID_REV = 0x%08x", read_buf);

/* Configure GPIO pins as LED outputs */
write_buf = LED_GPIO_CFG_SPD_LED | LED_GPIO_CFG_LNK_LED |
LED_GPIO_CFG_FDX_LED;
ret = smsc95xx_write_reg(dev, LED_GPIO_CFG, write_buf);
if (ret < 0) {
devwarn(dev, "Failed to write LED_GPIO_CFG register, ret=%d",
ret);
return ret;
}

/* Init Tx */
write_buf = 0;
ret = smsc95xx_write_reg(dev, FLOW, write_buf);
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/net/usb/smsc95xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 68c7c3d

Please sign in to comment.