Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Unnamed
Sunday, February 24th, 2008 at 7:59:16pm UTC 

  1. Index: firmware/target/arm/usb-fw-pp502x.c
  2. ===================================================================
  3. --- firmware/target/arm/usb-fw-pp502x.c (revision 16396)
  4. +++ firmware/target/arm/usb-fw-pp502x.c (working copy)
  5. @@ -180,20 +180,26 @@
  6.          /* Disable USB devices */
  7.          DEV_EN &=~ DEV_USB0;
  8.          DEV_EN &=~ DEV_USB1;
  9. -#if CONFIG_CPU == PP5020
  10.          DEV_INIT2 &=~ INIT_USB;
  11. -#endif
  12.  
  13.          return status;
  14. +
  15.      } else {
  16. -        /* if USB is detected, re-enable the USB-devices, otherwise make sure it's disabled */
  17. +        /* if USB is detected, re-enable the USB-devices */
  18.          DEV_EN |= DEV_USB0;
  19. +        DEV_EN |= DEV_USB1;
  20. +       
  21. +        /* reset both USBs */
  22. +        DEV_RS |= DEV_USB0;
  23.          DEV_RS &=~DEV_USB0;
  24. -        DEV_EN |= DEV_USB1;
  25. +        DEV_RS |= DEV_USB1;
  26.          DEV_RS &=~DEV_USB1;
  27. -#if CONFIG_CPU == PP5020
  28. +       
  29.          DEV_INIT2 |= INIT_USB;
  30. -#endif
  31. +       
  32. +        while ((inl(0x70000028) & 0x80) == 0);
  33. +        outl(inl(0x70000028) | 0x2, 0x70000028);
  34. +        udelay(0x186A0);
  35.      }
  36.  
  37.      /* Run the USB stack to request full bus power */

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right