mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
[ARM] pxa/poodle: use .gpio_pullup in USB device platform data
Signed-off-by: Eric Miao <eric.miao@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
2b0defd4c1
commit
1730aadffb
1 changed files with 1 additions and 13 deletions
|
@ -280,21 +280,9 @@ static struct pxaficp_platform_data poodle_ficp_platform_data = {
|
||||||
/*
|
/*
|
||||||
* USB Device Controller
|
* USB Device Controller
|
||||||
*/
|
*/
|
||||||
static void poodle_udc_command(int cmd)
|
|
||||||
{
|
|
||||||
switch(cmd) {
|
|
||||||
case PXA2XX_UDC_CMD_CONNECT:
|
|
||||||
GPSR(POODLE_GPIO_USB_PULLUP) = GPIO_bit(POODLE_GPIO_USB_PULLUP);
|
|
||||||
break;
|
|
||||||
case PXA2XX_UDC_CMD_DISCONNECT:
|
|
||||||
GPCR(POODLE_GPIO_USB_PULLUP) = GPIO_bit(POODLE_GPIO_USB_PULLUP);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct pxa2xx_udc_mach_info udc_info __initdata = {
|
static struct pxa2xx_udc_mach_info udc_info __initdata = {
|
||||||
/* no connect GPIO; poodle can't tell connection status */
|
/* no connect GPIO; poodle can't tell connection status */
|
||||||
.udc_command = poodle_udc_command,
|
.gpio_pullup = POODLE_GPIO_USB_PULLUP,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue