1. 19 Oct, 2018 1 commit
  2. 19 Mar, 2018 1 commit
    • Ye Li's avatar
      MLK-17821-1 USB: gadget: Add the cadence USB3 gadget driver · 70514bd0
      Ye Li authored
      Porting the cadence USB3 (CDNS3) driver from kernel to u-boot. We only support
      the gadget (device mode), while the host mode is not supported. Users remains
      to use xhci-imx8 driver for host mode.
      
      Some changes in the CDNS3 driver porting:
      
      1. Add match_ep call back to usb_gadget_ops. The CDNS3 gadget driver replies
         on this operation to bind the usb_ep/usb_ss_ep with the endpoint descriptor
         when function layer uses usb_ep_autoconfig to add endpoint descriptors to gadget.
         So that CDNS3 driver can know the EP information and configure the EP once the
         set configuration request is received.
      
      2. U-boot does not have CMA, so it won't allocate uncached memory. Need to flush
         TRB and its DMA buffer before prime to usb controller and after complete transfer.
      
      3. In core.c, we add functions to hook with u-boot. It needs uplayer like
         to pass the register base address of each part of the USB controller.
      
      4. Force the CDNS3 gadget max speed to HS. The SuperSpeed is not supported by u-boot,
         so disable it in gadget driver. A configuration USB_CDNS3_GADGET_FORCE_HIGHSPEED is
         selected.
      
      5. Added gadget_is_cdns3 checking to provide bcdUSB value in device descriptor.
      
      6. Moved some new fields in usb_ep structure to usb_ss_ep, since u-boot does not have them.
      
      7. Remove host part codes as it is not supported by this driver.
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Acked-by: default avatarPeter Chen <peter.chen@nxp.com>
      70514bd0
  3. 23 Sep, 2016 1 commit
  4. 06 Feb, 2016 1 commit
  5. 14 Apr, 2015 1 commit
  6. 24 Jul, 2013 1 commit
  7. 19 Nov, 2012 1 commit
  8. 20 May, 2012 1 commit
  9. 16 Dec, 2011 1 commit
    • Tom Rini's avatar
      USB: Use (get|put)_unaligned for accessing wMaxPacketSize · b2fb47f1
      Tom Rini authored
      In 97929877 Stefan describes a usecase
      where the previous behavior of leaving wMaxPacketSize be unaligned
      caused fatal problems.  The initial fix for this problem was incomplete
      however as it showed another cases of non-aligned access that previously
      worked implicitly.  This switches to making sure that all access of
      wMaxPacketSize are done via (get|put)_unaligned.
      
      In order to maintain a level of readability to the code in some cases
      we now use a variable for the value of wMaxPacketSize and in others, a
      macro.
      
      Cc: Minkyu Kang <mk7.kang@samsung.com>
      Cc: Remy Bohmer <linux@bohmer.net>
      
      OpenRISC:
      Tested-by: default avatarStefan Kristiansson <stefan.kristiansson@saunalahti.fi>
      
      Beagleboard xM, Pandaboard run-tested, s5p_goni build-tested.
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      b2fb47f1
  10. 27 Oct, 2010 1 commit
  11. 20 Sep, 2010 3 commits