Advertisement
Guest User

Remove_phy_on_Error_USB_gadget.diff

a guest
Dec 11th, 2011
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.98 KB | None | 0 0
  1. --- kernel/linux-2.6.32.17-psp03.01.01.39/drivers/usb/musb/davinci.src.c    2011-12-10 11:13:12.869712697 +0330
  2. +++ kernel/linux-2.6.32.17-psp03.01.01.39/drivers/usb/musb/davinci.c    2011-12-10 11:15:28.617261260 +0330
  3. @@ -65,12 +65,13 @@
  4.     /* power everything up; start the on-chip PHY and its PLL */
  5.     phy_ctrl &= ~(USBPHY_OSCPDWN | USBPHY_OTGPDWN | USBPHY_PHYPDWN);
  6.     phy_ctrl |= USBPHY_SESNDEN | USBPHY_VBDTCTEN | USBPHY_PHYPLLON;
  7. -   if (cpu_is_davinci_dm646x()) {
  8. -       phy_ctrl |= USBPHY_NDATAPOL | USBPHY_SESSION_VBUS;
  9. -       phy_ctrl |= is_peripheral_enabled() ? USBPHY_PERI_USBID :
  10. -                       phy_ctrl;
  11. -       phy_ctrl &= ~USBPHY_VBDTCTEN;
  12. -   }
  13. +   /* Removed by Morteza for Leopard365 */
  14. +   //if (cpu_is_davinci_dm646x()) {
  15. +   //  phy_ctrl |= USBPHY_NDATAPOL | USBPHY_SESSION_VBUS;
  16. +   //  phy_ctrl |= is_peripheral_enabled() ? USBPHY_PERI_USBID :
  17. +   //                  phy_ctrl;
  18. +   //  phy_ctrl &= ~USBPHY_VBDTCTEN;
  19. +   //}  
  20.     if (cpu_is_davinci_dm365()) {
  21.         /*
  22.          * DM365 PHYCLKFREQ field [15:12] is set to 2
  23.  
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement