[U-Boot] [PATCH v1 1/2] imx: add macro to detect whether USB has been initialized

Stefan Agner stefan at agner.ch
Tue Sep 5 16:05:40 UTC 2017


On 2017-09-05 06:45, Fabio Estevam wrote:
> Hi Stefano,
> 
> On Tue, Sep 5, 2017 at 8:16 AM, Stefano Babic <sbabic at denx.de> wrote:
> 
>> Maybe we get some further info from our "insider" (Fabio, Peng). It will
>> be very interesting to know if we can apply this to all spectrum from
>> i.MX6, or if there is some MX6 variant where the Bootrom is doing
>> something different.
> 
> Looking at NXP U-Boot code I see that this same mechanism applies not
> only to mx6, but it extends to mx7 and mx7ulp, so it seems like a good
> approach.

i.MX 7 has a Boot Information structure which is passed from the Boot
ROM, so we have a much cleaner method there.
http://git.denx.de/?p=u-boot/u-boot-imx.git;a=blob;f=arch/arm/mach-imx/mx7/soc.c;h=87bf105f385d4c12bee6d038c0ba50e2e588124c;hb=HEAD#l392

As far as I can tell this boot information structure is also accurate
when the Boot ROM entered serial downloader as a fallback.

Do we have boards using SPL on i.MX 7?

--
Stefan


More information about the U-Boot mailing list