Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272821
b: refs/heads/master
c: 1fcaea7
h: refs/heads/master
i:
  272819: f8764c3
v: v3
  • Loading branch information
Thomas Petazzoni authored and Arnd Bergmann committed Sep 10, 2011
1 parent abd3682 commit 4a9ad65
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa6e52a35d388e730f4df0ec2ec48294590cc459
refs/heads/master: 1fcaea7e4c932b2bcc2612fafec6e1917944d192
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-at91/at91cap9_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ void __init at91_add_device_usbh(struct at91_usbh_data *data)
at91_set_gpio_output(data->vbus_pin[i], 0);
}

/* Enable overcurrent notification */
for (i = 0; i < data->ports; i++) {
if (data->overcurrent_pin[i])
at91_set_gpio_input(data->overcurrent_pin[i], 1);
}

usbh_data = *data;
platform_device_register(&at91_usbh_device);
}
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/arm/mach-at91/at91rm9200_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,17 @@ static struct platform_device at91rm9200_usbh_device = {

void __init at91_add_device_usbh(struct at91_usbh_data *data)
{
int i;

if (!data)
return;

/* Enable overcurrent notification */
for (i = 0; i < data->ports; i++) {
if (data->overcurrent_pin[i])
at91_set_gpio_input(data->overcurrent_pin[i], 1);
}

usbh_data = *data;
platform_device_register(&at91rm9200_usbh_device);
}
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/arm/mach-at91/at91sam9260_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,17 @@ static struct platform_device at91_usbh_device = {

void __init at91_add_device_usbh(struct at91_usbh_data *data)
{
int i;

if (!data)
return;

/* Enable overcurrent notification */
for (i = 0; i < data->ports; i++) {
if (data->overcurrent_pin[i])
at91_set_gpio_input(data->overcurrent_pin[i], 1);
}

usbh_data = *data;
platform_device_register(&at91_usbh_device);
}
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/arm/mach-at91/at91sam9261_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,17 @@ static struct platform_device at91sam9261_usbh_device = {

void __init at91_add_device_usbh(struct at91_usbh_data *data)
{
int i;

if (!data)
return;

/* Enable overcurrent notification */
for (i = 0; i < data->ports; i++) {
if (data->overcurrent_pin[i])
at91_set_gpio_input(data->overcurrent_pin[i], 1);
}

usbh_data = *data;
platform_device_register(&at91sam9261_usbh_device);
}
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-at91/at91sam9263_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ void __init at91_add_device_usbh(struct at91_usbh_data *data)
at91_set_gpio_output(data->vbus_pin[i], 0);
}

/* Enable overcurrent notification */
for (i = 0; i < data->ports; i++) {
if (data->overcurrent_pin[i])
at91_set_gpio_input(data->overcurrent_pin[i], 1);
}

usbh_data = *data;
platform_device_register(&at91_usbh_device);
}
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-at91/at91sam9g45_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ void __init at91_add_device_usbh_ohci(struct at91_usbh_data *data)
at91_set_gpio_output(data->vbus_pin[i], 0);
}

/* Enable overcurrent notification */
for (i = 0; i < data->ports; i++) {
if (data->overcurrent_pin[i])
at91_set_gpio_input(data->overcurrent_pin[i], 1);
}

usbh_ohci_data = *data;
platform_device_register(&at91_usbh_ohci_device);
}
Expand Down

0 comments on commit 4a9ad65

Please sign in to comment.