Skip to content
Snippets Groups Projects
Commit 88bd9750 authored by Stefano Babic's avatar Stefano Babic Committed by Jean-Christophe PLAGNIOL-VILLARD
Browse files

xscale: fix USB initialization for Trizepsiv module


Due to change in the usb_board_init() prototype, the USB for
the TrizepsIV was not correctly initialized.
Removed dummy print from usb_board_stop().

Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
parent 0b785ddd
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ extern struct serial_device serial_stuart_device; ...@@ -50,7 +50,7 @@ extern struct serial_device serial_stuart_device;
* Miscelaneous platform dependent initialisations * Miscelaneous platform dependent initialisations
*/ */
void usb_board_init(void) int usb_board_init(void)
{ {
UHCHR = (UHCHR | UHCHR_PCPL | UHCHR_PSPL) & UHCHR = (UHCHR | UHCHR_PCPL | UHCHR_PSPL) &
~(UHCHR_SSEP0 | UHCHR_SSEP1 | UHCHR_SSEP2 | UHCHR_SSE); ~(UHCHR_SSEP0 | UHCHR_SSEP1 | UHCHR_SSEP2 | UHCHR_SSE);
...@@ -71,6 +71,8 @@ void usb_board_init(void) ...@@ -71,6 +71,8 @@ void usb_board_init(void)
/* Set port power control mask bits, only 3 ports. */ /* Set port power control mask bits, only 3 ports. */
UHCRHDB |= (0x7<<17); UHCRHDB |= (0x7<<17);
return 0;
} }
void usb_board_init_fail(void) void usb_board_init_fail(void)
...@@ -89,7 +91,6 @@ void usb_board_stop(void) ...@@ -89,7 +91,6 @@ void usb_board_stop(void)
CKEN &= ~CKEN10_USBHOST; CKEN &= ~CKEN10_USBHOST;
puts("Called USB STOP\n");
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment