]> git.sur5r.net Git - u-boot/commitdiff
xscale: fix USB initialization for Trizepsiv module
authorStefano Babic <sbabic@denx.de>
Wed, 1 Jul 2009 02:33:56 +0000 (04:33 +0200)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Mon, 6 Jul 2009 19:52:55 +0000 (21:52 +0200)
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: Stefano Babic <sbabic@denx.de>
board/trizepsiv/conxs.c

index 5c0eb41d4b52e838c8d26ce028e4bcf2d80ea0cb..53b6e0014e30c47264cdf107b3fa3c892acfeab7 100644 (file)
@@ -50,7 +50,7 @@ extern struct serial_device serial_stuart_device;
  * Miscelaneous platform dependent initialisations
  */
 
-void usb_board_init(void)
+int usb_board_init(void)
 {
        UHCHR = (UHCHR | UHCHR_PCPL | UHCHR_PSPL) &
                ~(UHCHR_SSEP0 | UHCHR_SSEP1 | UHCHR_SSEP2 | UHCHR_SSE);
@@ -71,6 +71,8 @@ void usb_board_init(void)
 
        /* Set port power control mask bits, only 3 ports. */
        UHCRHDB |= (0x7<<17);
+
+       return 0;
 }
 
 void usb_board_init_fail(void)
@@ -89,7 +91,6 @@ void usb_board_stop(void)
 
        CKEN &= ~CKEN10_USBHOST;
 
-       puts("Called USB STOP\n");
        return;
 }