Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250023
b: refs/heads/master
c: 6f9ec44
h: refs/heads/master
i:
  250021: f75189c
  250019: 85d7e07
  250015: f735970
v: v3
  • Loading branch information
Fabio Estevam authored and Sascha Hauer committed May 19, 2011
1 parent 34b6fac commit fd4bb79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2d95378b043f082192a11f8476e3f63291c3477b
refs/heads/master: 6f9ec442a07701e0ef241854862fdf2540be1bdb
12 changes: 5 additions & 7 deletions trunk/arch/arm/mach-mx5/board-mx51_babbage.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,18 +208,16 @@ static inline void babbage_usbhub_reset(void)
{
int ret;

/* Bring USB hub out of reset */
ret = gpio_request(BABBAGE_USB_HUB_RESET, "GPIO1_7");
/* Reset USB hub */
ret = gpio_request_one(BABBAGE_USB_HUB_RESET,
GPIOF_OUT_INIT_LOW, "GPIO1_7");
if (ret) {
printk(KERN_ERR"failed to get GPIO_USB_HUB_RESET: %d\n", ret);
return;
}
gpio_direction_output(BABBAGE_USB_HUB_RESET, 0);

/* USB HUB RESET - De-assert USB HUB RESET_N */
msleep(1);
gpio_set_value(BABBAGE_USB_HUB_RESET, 0);
msleep(1);
msleep(2);
/* Deassert reset */
gpio_set_value(BABBAGE_USB_HUB_RESET, 1);
}

Expand Down

0 comments on commit fd4bb79

Please sign in to comment.