Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281676
b: refs/heads/master
c: 039401f
h: refs/heads/master
v: v3
  • Loading branch information
Igor Grinberg authored and Tony Lindgren committed Dec 13, 2011
1 parent 002f79e commit b085a77
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 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: 19ce643997c5b75df2410e9b632c2c29e6cf8ae2
refs/heads/master: 039401f3efa890cd9974d8921c19359ac2084df3
22 changes: 20 additions & 2 deletions trunk/arch/arm/mach-omap2/board-cm-t35.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
#include "hsmmc.h"
#include "common-board-devices.h"

#define CM_T35_GPIO_PENDOWN 57
#define CM_T35_GPIO_PENDOWN 57
#define SB_T35_USB_HUB_RESET_GPIO 167

#define CM_T35_SMSC911X_CS 5
#define CM_T35_SMSC911X_GPIO 163
Expand Down Expand Up @@ -436,6 +437,23 @@ static struct usbhs_omap_board_data usbhs_bdata __initdata = {
.reset_gpio_port[2] = -EINVAL
};

static void cm_t35_init_usbh(void)
{
int err;

err = gpio_request_one(SB_T35_USB_HUB_RESET_GPIO,
GPIOF_OUT_INIT_LOW, "usb hub rst");
if (err) {
pr_err("SB-T35: usb hub rst gpio request failed: %d\n", err);
} else {
udelay(10);
gpio_set_value(SB_T35_USB_HUB_RESET_GPIO, 1);
msleep(1);
}

usbhs_init(&usbhs_bdata);
}

static int cm_t35_twl_gpio_setup(struct device *dev, unsigned gpio,
unsigned ngpio)
{
Expand Down Expand Up @@ -624,7 +642,7 @@ static void __init cm_t3x_common_init(void)
cm_t35_init_display();

usb_musb_init(NULL);
usbhs_init(&usbhs_bdata);
cm_t35_init_usbh();
}

static void __init cm_t35_init(void)
Expand Down

0 comments on commit b085a77

Please sign in to comment.