Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243461
b: refs/heads/master
c: d19f4cb
h: refs/heads/master
i:
  243459: 09a01c9
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Eric Miao committed Mar 16, 2011
1 parent 7c5f258 commit 755718f
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 133dce0687b4c38184609fa921d060a54dff93e9
refs/heads/master: d19f4cbd4ba08d32d5e5d0cbc98f920fcc225448
13 changes: 11 additions & 2 deletions trunk/arch/arm/mach-pxa/gumstix.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/gpio.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/usb/gpio_vbus.h>

#include <asm/setup.h>
#include <asm/memory.h>
Expand Down Expand Up @@ -106,14 +107,22 @@ static void __init gumstix_mmc_init(void)
#endif

#ifdef CONFIG_USB_GADGET_PXA25X
static struct pxa2xx_udc_mach_info gumstix_udc_info __initdata = {
static struct gpio_vbus_mach_info gumstix_udc_info = {
.gpio_vbus = GPIO_GUMSTIX_USB_GPIOn,
.gpio_pullup = GPIO_GUMSTIX_USB_GPIOx,
};

static struct platform_device gumstix_gpio_vbus = {
.name = "gpio-vbus",
.id = -1,
.dev = {
.platform_data = &gumstix_udc_info,
},
};

static void __init gumstix_udc_init(void)
{
pxa_set_udc_info(&gumstix_udc_info);
platform_device_register(&gumstix_gpio_vbus);
}
#else
static void gumstix_udc_init(void)
Expand Down

0 comments on commit 755718f

Please sign in to comment.