Skip to content

Commit

Permalink
[ARM] 4738/1: at91sam9261: Remove udc pullup enabling in board initia…
Browse files Browse the repository at this point in the history
…lisation

Currently the udc pullup is enabled by default on boot. If the device
is connected to a host at this time, the host starts the negotiation
before the udc/gadget driver is ready to handle it.

Signed-off-by: Christian Glindkamp <christian.glindkamp@taskit.de>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Christian Glindkamp authored and Russell King committed Jan 26, 2008
1 parent 1b41bdf commit da7a42d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/arm/mach-at91/at91sam9261_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ static struct platform_device at91sam9261_udc_device = {

void __init at91_add_device_udc(struct at91_udc_data *data)
{
unsigned long x;

if (!data)
return;

Expand All @@ -117,9 +115,7 @@ void __init at91_add_device_udc(struct at91_udc_data *data)
at91_set_deglitch(data->vbus_pin, 1);
}

/* Pullup pin is handled internally */
x = at91_sys_read(AT91_MATRIX_USBPUCR);
at91_sys_write(AT91_MATRIX_USBPUCR, x | AT91_MATRIX_USBPUCR_PUON);
/* Pullup pin is handled internally by USB device peripheral */

udc_data = *data;
platform_device_register(&at91sam9261_udc_device);
Expand Down

0 comments on commit da7a42d

Please sign in to comment.