Skip to content

Make mv_udc work for i.mx6

Troy Kisky u-boot 8 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest10 patches 0 repliesNew
  2. v5 posting 3/30 of 18 patches 0 repliesSuperseded
  3. v5 posting 2/30 of 18 patches 0 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v5 posting 1/318 patches0 repliesSuperseded
v417 patches0 repliesSuperseded
v320 patches0 repliesSuperseded
v220 patches0 repliesSuperseded
v1 RFC0 of 18 patches0 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10usb: rename board_usb_init_type to usb_init_typeboard/amcc/canyonlands/canyonlands.c board/balloon3/balloon3.c board/esd/apc405/apc405.c +8 more+31 -310 replies
2/10usb: add enum usb_init_type parameter to usb_lowlevel_initarch/mips/cpu/mips32/au1x00/au1x00_usb_ohci.c arch/powerpc/cpu/mpc5xxx/usb_ohci.c arch/powerpc/cpu/ppc4xx/usb_ohci.c +14 more+17 -170 replies
3/10usb: ehci-hcd: add enum usb_init_type parameter to ehci_hcd_init.board/compulab/cm_t35/cm_t35.c board/htkw/mcx/mcx.c board/technexion/twister/twister.c +23 more+60 -321 reply
4/10usb: gadget: mv_udc: don't check CONFIG_USB_MAX_CONTROLLER_COUNTdrivers/usb/gadget/mv_udc.c+0 -40 replies
5/10usb: ehci-mx6: add support for otg portdrivers/usb/host/ehci-mx6.c include/configs/mx6qsabreauto.h include/configs/nitrogen6x.h+95 -420 replies
6/10usb: gadget: mv_udc: fix full speed connectionsdrivers/usb/gadget/mv_udc.c+34 -140 replies
7/10usb: gadget: mv_udc: optimize bouncedrivers/usb/gadget/mv_udc.c+16 -210 replies
8/10usb: gadget: mv_udc: optimize ep_enabledrivers/usb/gadget/mv_udc.c+2 -20 replies
9/10usb: gadget: mv_udc: split mv_udc.h filedrivers/usb/gadget/mv_udc.c drivers/usb/gadget/mv_udc.h include/usb/mv_udc.h+121 -1180 replies
10/10usb: udc: add udc.h include filedrivers/serial/usbtty.h drivers/usb/gadget/designware_udc.c drivers/usb/gadget/mpc8xx_udc.c +9 more+68 -1420 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [U-Boot] [PATCH V6 00/10] Make mv_udc work for i.mx6

Hi Marek

This series is based on u-boot-usb/next branch.
After this series, nitrogen6x works with tftpboot to transfer files over usb, and will recognize a usb stick in the OTG port.

This V6 has been rebased to the latest u-boot-usb/next branch and changed to address Marek comments.

The most noticeable change is the addition of patches to use enum usb_init_type.

Tested on a Nitrogen6x board with the following commands when connected to a USB2.0 hub and a USB1.1 hub

setenv ipaddr 10.0.0.2 && setenv netmask 255.255.255.0 && setenv serverip 10.0.0.1 setenv usbnet_devaddr 00:11:22:33:44:55 && setenv usbnet_hostaddr 00:aa:bb:cc:dd:ee setenv ethprime usb_ether && setenv ethact usb_ether && setenv ncip 10.0.0.1 tftpboot 10800000 10.0.0.1:uImage6w

The USB1.1 had a transfer rate of 687.5 KiB/s, the USB2.0 hub had a transfer rate of 5.4 MiB/s.

And by recognizing a usb stick in each port.

Troy Kisky (10):
usb: rename board_usb_init_type to usb_init_type
usb: add enum usb_init_type parameter to usb_lowlevel_init
usb: ehci-hcd: add enum usb_init_type parameter to ehci_hcd_init.
usb: gadget: mv_udc: don't check CONFIG_USB_MAX_CONTROLLER_COUNT
usb: ehci-mx6: add support for otg port
usb: gadget: mv_udc: fix full speed connections
usb: gadget: mv_udc: optimize bounce
usb: gadget: mv_udc: optimize ep_enable
usb: gadget: mv_udc: split mv_udc.h file
usb: udc: add udc.h include file

 arch/mips/cpu/mips32/au1x00/au1x00_usb_ohci.c |   2 +-
 arch/powerpc/cpu/mpc5xxx/usb_ohci.c           |   2 +-
 arch/powerpc/cpu/ppc4xx/usb_ohci.c            |   2 +-
 arch/sparc/cpu/leon3/usb_uhci.c               |   2 +-
 board/amcc/canyonlands/canyonlands.c          |   4 +-
 board/balloon3/balloon3.c                     |   4 +-
 board/compulab/cm_t35/cm_t35.c                |   3 +-
 board/esd/apc405/apc405.c                     |   4 +-
 board/esd/pmc440/pmc440.c                     |   4 +-
 board/htkw/mcx/mcx.c                          |   3 +-
 board/icpdas/lp8x4x/lp8x4x.c                  |   4 +-
 board/mpl/common/usb_uhci.c                   |   2 +-
 board/samsung/trats/trats.c                   |   2 +-
 board/technexion/twister/twister.c            |   3 +-
 board/teejet/mt_ventoux/mt_ventoux.c          |   3 +-
 board/ti/beagle/beagle.c                      |   3 +-
 board/ti/omap5_uevm/evm.c                     |   3 +-
 board/ti/panda/panda.c                        |   3 +-
 board/toradex/colibri_pxa270/colibri_pxa270.c |   4 +-
 board/trizepsiv/conxs.c                       |   4 +-
 board/vpac270/vpac270.c                       |   4 +-
 common/usb.c                                  |   4 +-
 drivers/serial/usbtty.h                       |   3 +-
 drivers/usb/gadget/designware_udc.c           |   1 +
 drivers/usb/gadget/mpc8xx_udc.c               |   1 +
 drivers/usb/gadget/mv_udc.c                   | 101 +++++++++++--------
 drivers/usb/gadget/mv_udc.h                   | 115 ++++++++++++++++++++++
 drivers/usb/gadget/omap1510_udc.c             |   1 +
 drivers/usb/gadget/pxa27x_udc.c               |   1 +
 drivers/usb/host/ehci-armada100.c             |   3 +-
 drivers/usb/host/ehci-atmel.c                 |   3 +-
 drivers/usb/host/ehci-exynos.c                |   3 +-
 drivers/usb/host/ehci-faraday.c               |   4 +-
 drivers/usb/host/ehci-fsl.c                   |   3 +-
 drivers/usb/host/ehci-hcd.c                   |  17 ++--
 drivers/usb/host/ehci-ixp4xx.c                |   3 +-
 drivers/usb/host/ehci-marvell.c               |   3 +-
 drivers/usb/host/ehci-mpc512x.c               |   3 +-
 drivers/usb/host/ehci-mx5.c                   |   3 +-
 drivers/usb/host/ehci-mx6.c                   | 134 ++++++++++++++++++--------
 drivers/usb/host/ehci-mxc.c                   |   3 +-
 drivers/usb/host/ehci-mxs.c                   |   3 +-
 drivers/usb/host/ehci-pci.c                   |   4 +-
 drivers/usb/host/ehci-ppc4xx.c                |   3 +-
 drivers/usb/host/ehci-spear.c                 |   3 +-
 drivers/usb/host/ehci-tegra.c                 |   3 +-
 drivers/usb/host/ehci-vct.c                   |   3 +-
 drivers/usb/host/ehci.h                       |   3 +-
 drivers/usb/host/isp116x-hcd.c                |   2 +-
 drivers/usb/host/ohci-hcd.c                   |   2 +-
 drivers/usb/host/ohci-s3c24xx.c               |   2 +-
 drivers/usb/host/r8a66597-hcd.c               |   2 +-
 drivers/usb/host/sl811-hcd.c                  |   2 +-
 drivers/usb/host/xhci.c                       |   2 +-
 drivers/usb/musb-new/musb_uboot.c             |   2 +-
 drivers/usb/musb/musb_hcd.c                   |   2 +-
 drivers/usb/musb/musb_udc.c                   |   3 +-
 include/configs/mx6qsabreauto.h               |   3 +-
 include/configs/nitrogen6x.h                  |   3 +-
 include/usb.h                                 |  28 +++---
 include/usb/designware_udc.h                  |  31 ------
 include/usb/mpc8xx_udc.h                      |  19 +---
 include/usb/musb_udc.h                        |  40 --------
 include/usb/mv_udc.h                          | 118 -----------------------
 include/usb/omap1510_udc.h                    |  31 ++----
 include/usb/pxa27x_udc.h                      |  26 +----
 include/usb/udc.h                             |  53 ++++++++++
 67 files changed, 444 insertions(+), 423 deletions(-)
 create mode 100644 drivers/usb/gadget/mv_udc.h
 delete mode 100644 include/usb/musb_udc.h
 create mode 100644 include/usb/udc.h
Signature · 1 line
1.8.1.2