From: Stefan Agner Date: Tue, 05 Sep 2017 09:05:40 -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> Message-ID: <76d29ac29e5e4bd76ee7126f372405e0@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 06:45, Fabio Estevam wrote: > Hi Stefano, > > On Tue, Sep 5, 2017 at 8:16 AM, Stefano Babic 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