All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Harvey <tharvey@gateworks.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: Schrempf Frieder <frieder.schrempf@kontron.de>,
	u-boot <u-boot@lists.denx.de>, Peng Fan <Peng.Fan@nxp.com>
Subject: Re: iMX8MM USB support?
Date: Thu, 1 Jul 2021 17:49:00 -0700	[thread overview]
Message-ID: <CAJ+vNU1zQPJ_K7nCDWyP3Dp9rypj0jiez3iNjS-tTc2hAAfA1A@mail.gmail.com> (raw)
In-Reply-To: <CAOMZO5CHW3YeetgUWzfqRagB-_ZTDd6_9LfK4aYroozCnVJWkQ@mail.gmail.com>

On Thu, Jul 1, 2021 at 5:36 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> Hi Tim,
>
> On Thu, Jul 1, 2021 at 8:58 PM Tim Harvey <tharvey@gateworks.com> wrote:
>
> > Fabio,
> >
> > I no longer have the patches/config around and am not sure I even have
> > a working imx8mm-evk anymore.
> >
> > Do you have the patches I submitted to enable USB OTG in general on IMX8MM?
> > usb: ehci-mx6: add IMX8MM and IMX8MN OTG support
> > usb: ehci-mx6: move mode set/detect to probe
>
> Thanks for pointing out these patches. Does "ums 0 mmc 0" work for you?
>

Yes, this works on my board. I just sent a v2 of these patches (cc'd you).

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
(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’
undeclared (first use in this function); did you mean ‘console_start’?
   (controller_spacing * index));
    ^~~~~~~~~~~~~~~~~~
...

The above is resolved with CONFIG_DM_USB=y and CONFIG_SPL_DM_USB=y

After enabling those I just run into other issues with things such as:
WARNING 'mkimage.flash.mkimage' not found, resulting binary is not-functional
 ...
aarch64-linux-ld.bfd: cmd/nvedit.o: in function `env_match':
/usr/src/venice/uboot-master/cmd/nvedit.c:824: undefined reference to
`env_get_char'
aarch64-linux-ld.bfd: /usr/src/venice/uboot-master/cmd/nvedit.c:828:
undefined reference to `env_get_char'
...

What branch were you working with here? I tried the above with v2021.07-rc5

Tim

  reply	other threads:[~2021-07-02  0:49 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-01 17:55 iMX8MM USB support? Tim Harvey
2020-04-01 21:34 ` Igor Opaniuk
2020-04-02  1:02   ` Sherry Sun
2020-04-06  9:43 ` Schrempf Frieder
2020-04-07 17:06   ` Tim Harvey
2020-04-08  7:35     ` Schrempf Frieder
2020-04-08 15:31       ` Tim Harvey
2020-04-09 10:02         ` Schrempf Frieder
2020-04-09 21:45           ` Tim Harvey
2020-04-10 18:37             ` Tim Harvey
2021-07-01 23:15               ` Fabio Estevam
2021-07-01 23:58                 ` Tim Harvey
2021-07-02  0:36                   ` Fabio Estevam
2021-07-02  0:49                     ` Tim Harvey [this message]
2021-07-02  0:56                       ` Fabio Estevam
2021-07-02  1:13                       ` Fabio Estevam
2021-07-02  1:36                         ` Fabio Estevam
2021-07-02 14:50                           ` Fabio Estevam
2021-07-02 21:12                             ` Tim Harvey
2021-07-02 21:32                               ` Fabio Estevam
2022-03-09 10:52               ` Michael Nazzareno Trimarchi
2022-03-09 11:06                 ` Tommaso Merciai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ+vNU1zQPJ_K7nCDWyP3Dp9rypj0jiez3iNjS-tTc2hAAfA1A@mail.gmail.com \
    --to=tharvey@gateworks.com \
    --cc=Peng.Fan@nxp.com \
    --cc=festevam@gmail.com \
    --cc=frieder.schrempf@kontron.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.