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

Fabio Estevam festevam at gmail.com
Tue Sep 5 16:18:43 UTC 2017


On Tue, Sep 5, 2017 at 1:05 PM, Stefan Agner <stefan at agner.ch> wrote:

> 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.

What I meant is that the is_boot_from_usb() macro is also defined for
MX7 and MX7ULP:

http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/arch/arm/include/asm/arch-mx7/imx-regs.h?h=imx_v2016.03_4.1.33_7ulp_beta#n1209

http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/arch/arm/include/asm/arch-mx7ulp/imx-regs.h?h=imx_v2016.03_4.1.33_7ulp_beta#n1207


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

No, we don't have it currently.


More information about the U-Boot mailing list