iMX8MM USB support?

Fabio Estevam festevam at gmail.com
Fri Jul 2 03:36:18 CEST 2021


Tim,

On Thu, Jul 1, 2021 at 10:13 PM Fabio Estevam <festevam at gmail.com> wrote:
>
> On Thu, Jul 1, 2021 at 9:49 PM Tim Harvey <tharvey at gateworks.com> wrote:
>
> > By the way, I took a quick stab at enabling SDP on
> > imx8mm-venice-gw73xx-0x and found compile issues so I configured for
> > an imx8mm_evk using your diffs and hit the same issues.
> >
> > drivers/usb/host/ehci-mx6.c: In function ‘ehci_hcd_init’:
> > drivers/usb/host/ehci-mx6.c:360:46: error: ‘USB_BASE_ADDR’ undeclared
>
> Ah, now that I try to enable SDP I see these errors too. To fix this
> error we need:
> https://git.kontron-electronics.de/linux/u-boot/-/commit/975e36c71164483a7c690e81126f77f6de482378.patch
>
> This one is also needed:
> https://git.kontron-electronics.de/linux/u-boot/-/commit/344c83522650ef8d8ea6c12c6a8209e54f0f31e6.patch
>
>
> > (first use in this function); did you mean ‘SRC_BASE_ADDR’?
> >   struct usb_ehci *ehci = (struct usb_ehci *)(USB_BASE_ADDR +
> >                                               ^~~~~~~~~~~~~
> >                                               SRC_BASE_ADDR
> > drivers/usb/host/ehci-mx6.c:360:46: note: each undeclared identifier
> > is reported only once for each function it appears in
> > drivers/usb/host/ehci-mx6.c:361:4: error: ‘controller_spacing’
>
> I need to check on this one.

Attached is a diff with all the changes that allow building SDP
support for imx8mm_evk.

But I still get:

U-Boot SPL 2021.07-rc5-00002-g5f269bf8bd14-dirty (Jul 01 2021 - 22:28:29 -0300)
WDT:   Not starting
SPL: Unsupported Boot Device!
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

Please let me know if you get any progress with SDP.

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-imx8mmgadgetsdp.patch
Type: text/x-patch
Size: 7939 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210701/ffa80f4c/attachment.bin>


More information about the U-Boot mailing list