Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137265
b: refs/heads/master
c: 689b4fe
h: refs/heads/master
i:
  137263: dfd4183
v: v3
  • Loading branch information
Robert Jarzmik authored and Eric Miao committed Mar 13, 2009
1 parent 15c5b54 commit 7f759e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: 3b31fabfe258ecc1ffccd01dd186a534d5c804b3
refs/heads/master: 689b4febeca7e98ad1986cf5b036539649cc1a0c
11 changes: 10 additions & 1 deletion trunk/arch/arm/mach-pxa/mioa701.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <linux/power_supply.h>
#include <linux/wm97xx_batt.h>
#include <linux/mtd/physmap.h>
#include <linux/usb/gpio_vbus.h>

#include <asm/mach-types.h>
#include <asm/mach/arch.h>
Expand Down Expand Up @@ -452,6 +453,12 @@ static void udc_exit(void)
mio_gpio_free(ARRAY_AND_SIZE(udc_gpios));
}

struct gpio_vbus_mach_info gpio_vbus_data = {
.gpio_vbus = GPIO13_nUSB_DETECT,
.gpio_vbus_inverted = 1,
.gpio_pullup = -1,
};

/*
* SDIO/MMC Card controller
*/
Expand Down Expand Up @@ -790,6 +797,7 @@ MIO_SIMPLE_DEV(pxa2xx_ac97, "pxa2xx-ac97", NULL)
MIO_PARENT_DEV(mio_wm9713_codec, "wm9713-codec", &pxa2xx_ac97.dev, NULL)
MIO_SIMPLE_DEV(mioa701_sound, "mioa701-wm9713", NULL)
MIO_SIMPLE_DEV(mioa701_board, "mioa701-board", NULL)
MIO_SIMPLE_DEV(gpio_vbus, "gpio-vbus", &gpio_vbus_data);

static struct platform_device *devices[] __initdata = {
&mioa701_gpio_keys,
Expand All @@ -801,7 +809,8 @@ static struct platform_device *devices[] __initdata = {
&mioa701_sound,
&power_dev,
&strataflash,
&mioa701_board
&gpio_vbus,
&mioa701_board,
};

static void mioa701_machine_exit(void);
Expand Down

0 comments on commit 7f759e7

Please sign in to comment.