From: Stefan Agner Date: Tue, 05 Sep 2017 09:26:44 -0700 Subject: [U-Boot] [PATCH v1 1/2] imx: add macro to detect whether USB has been initialized In-Reply-To: References: <20170905012144.4833-1-stefan@agner.ch> <57a8b816-529a-22d3-c981-37468b58244b@denx.de> <76d29ac29e5e4bd76ee7126f372405e0@agner.ch> Message-ID: <9add787fa6b1e923011de21891b0130e@agner.ch> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2017-09-05 09:18, Fabio Estevam wrote: > On Tue, Sep 5, 2017 at 1:05 PM, Stefan Agner 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 > Yes, I understand. I am just saying, I don't see a point to use that macro over i.MX 7's Boot Information structure... > >> Do we have boards using SPL on i.MX 7? > > No, we don't have it currently. Ok. -- Stefan