Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143544
b: refs/heads/master
c: efb12cd
h: refs/heads/master
v: v3
  • Loading branch information
Marek Vasut authored and Eric Miao committed Apr 13, 2009
1 parent ef4fa0d commit db62c7f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 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: 918c71c0ff302637b745104e8ffe6142a64f514c
refs/heads/master: efb12cd20ace78aca03304f356f9c9c0c9ca3f66
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-pxa/include/mach/palmt5.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

/* USB */
#define GPIO_NR_PALMT5_USB_DETECT_N 15
#define GPIO_NR_PALMT5_USB_POWER 95
#define GPIO_NR_PALMT5_USB_PULLUP 93

/* LCD/BACKLIGHT */
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-pxa/include/mach/palmtx.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

/* USB */
#define GPIO_NR_PALMTX_USB_DETECT_N 13
#define GPIO_NR_PALMTX_USB_POWER 95
#define GPIO_NR_PALMTX_USB_PULLUP 93

/* LCD/BACKLIGHT */
Expand Down
11 changes: 6 additions & 5 deletions trunk/arch/arm/mach-pxa/palmt5.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ static unsigned long palmt5_pin_config[] __initdata = {
GPIO29_AC97_SDATA_IN_0,
GPIO30_AC97_SDATA_OUT,
GPIO31_AC97_SYNC,
GPIO95_AC97_nRESET,

/* IrDA */
GPIO40_GPIO, /* ir disable */
Expand All @@ -72,7 +73,7 @@ static unsigned long palmt5_pin_config[] __initdata = {

/* USB */
GPIO15_GPIO, /* usb detect */
GPIO95_GPIO, /* usb power */
GPIO93_GPIO, /* usb power */

/* MATRIX KEYPAD */
GPIO100_KP_MKIN_0 | WAKEUP_ON_LEVEL_HIGH,
Expand Down Expand Up @@ -344,7 +345,7 @@ static struct pxaficp_platform_data palmt5_ficp_platform_data = {
static struct pxa2xx_udc_mach_info palmt5_udc_info __initdata = {
.gpio_vbus = GPIO_NR_PALMT5_USB_DETECT_N,
.gpio_vbus_inverted = 1,
.gpio_pullup = GPIO_NR_PALMT5_USB_POWER,
.gpio_pullup = GPIO_NR_PALMT5_USB_PULLUP,
.gpio_pullup_inverted = 0,
};

Expand Down Expand Up @@ -490,9 +491,9 @@ static struct platform_device *devices[] __initdata = {
/* setup udc GPIOs initial state */
static void __init palmt5_udc_init(void)
{
if (!gpio_request(GPIO_NR_PALMT5_USB_POWER, "UDC Vbus")) {
gpio_direction_output(GPIO_NR_PALMT5_USB_POWER, 1);
gpio_free(GPIO_NR_PALMT5_USB_POWER);
if (!gpio_request(GPIO_NR_PALMT5_USB_PULLUP, "UDC Vbus")) {
gpio_direction_output(GPIO_NR_PALMT5_USB_PULLUP, 1);
gpio_free(GPIO_NR_PALMT5_USB_PULLUP);
}
}

Expand Down
11 changes: 6 additions & 5 deletions trunk/arch/arm/mach-pxa/palmtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ static unsigned long palmtx_pin_config[] __initdata = {
GPIO29_AC97_SDATA_IN_0,
GPIO30_AC97_SDATA_OUT,
GPIO31_AC97_SYNC,
GPIO95_AC97_nRESET,

/* IrDA */
GPIO40_GPIO, /* ir disable */
Expand All @@ -75,7 +76,7 @@ static unsigned long palmtx_pin_config[] __initdata = {

/* USB */
GPIO13_GPIO, /* usb detect */
GPIO95_GPIO, /* usb power */
GPIO93_GPIO, /* usb power */

/* PCMCIA */
GPIO48_nPOE,
Expand Down Expand Up @@ -359,7 +360,7 @@ static struct pxaficp_platform_data palmtx_ficp_platform_data = {
static struct pxa2xx_udc_mach_info palmtx_udc_info __initdata = {
.gpio_vbus = GPIO_NR_PALMTX_USB_DETECT_N,
.gpio_vbus_inverted = 1,
.gpio_pullup = GPIO_NR_PALMTX_USB_POWER,
.gpio_pullup = GPIO_NR_PALMTX_USB_PULLUP,
.gpio_pullup_inverted = 0,
};

Expand Down Expand Up @@ -514,9 +515,9 @@ static void __init palmtx_map_io(void)
/* setup udc GPIOs initial state */
static void __init palmtx_udc_init(void)
{
if (!gpio_request(GPIO_NR_PALMTX_USB_POWER, "UDC Vbus")) {
gpio_direction_output(GPIO_NR_PALMTX_USB_POWER, 1);
gpio_free(GPIO_NR_PALMTX_USB_POWER);
if (!gpio_request(GPIO_NR_PALMTX_USB_PULLUP, "UDC Vbus")) {
gpio_direction_output(GPIO_NR_PALMTX_USB_PULLUP, 1);
gpio_free(GPIO_NR_PALMTX_USB_PULLUP);
}
}

Expand Down

0 comments on commit db62c7f

Please sign in to comment.