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

2017-09-05 Thread Fabio Estevam
On Tue, Sep 5, 2017 at 1:26 PM, Stefan Agner wrote: > 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... Correct, and I did not suggest this either :-) ___

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

2017-09-05 Thread Stefan Agner
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. >>

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

2017-09-05 Thread Fabio Estevam
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. >

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

2017-09-05 Thread Stefan Agner
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

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

2017-09-05 Thread Stefan Agner
On 2017-09-05 04:13, Fabio Estevam wrote: > Hi Stefan, > > On Mon, Sep 4, 2017 at 10:21 PM, Stefan Agner wrote: >> From: Stefan Agner >> >> This macro allows to detect whether the boot ROM initialized USB >> already (serial downloader). This is helpful

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

2017-09-05 Thread Stefano Babic
Hi Eric, On 05/09/2017 15:49, Eric Nelson wrote: > Hi Stefano, > > On 09/05/2017 04:16 AM, Stefano Babic wrote: >> Hi Stefan, >> On 05/09/2017 03:21, Stefan Agner wrote: >>> From: Stefan Agner >>> >>> This macro allows to detect whether the boot ROM initialized USB >>>

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

2017-09-05 Thread Eric Nelson
Hi Stefano, On 09/05/2017 04:16 AM, Stefano Babic wrote: Hi Stefan, On 05/09/2017 03:21, Stefan Agner wrote: From: Stefan Agner This macro allows to detect whether the boot ROM initialized USB already (serial downloader). This is helpful to reliably detect if the

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

2017-09-05 Thread Fabio Estevam
Hi Stefan, On Tue, Sep 5, 2017 at 1:50 AM, Stefan Agner wrote: > Note this idea is borrowed from NXP downstream and seems to work here: > 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.15_2.0.0_ga#n1204

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

2017-09-05 Thread Fabio Estevam
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

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

2017-09-05 Thread Eric Nelson
Hi Stefan, On 09/04/2017 09:50 PM, Stefan Agner wrote: On 2017-09-04 19:57, Eric Nelson wrote: On 09/04/2017 06:21 PM, Stefan Agner wrote: + +/* + * If ROM fell back to USB recover mode, USBPH0_PWD will be clear to use USB + * If boot from the other mode, USB0_PWD will keep reset value +

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

2017-09-05 Thread Stefano Babic
Hi Stefan, Eric, On 05/09/2017 06:50, Stefan Agner wrote: > On 2017-09-04 19:57, Eric Nelson wrote: >> Hi Stefan, >> >> On 09/04/2017 06:21 PM, Stefan Agner wrote: >>> From: Stefan Agner >>> >>> This macro allows to detect whether the boot ROM initialized USB >>>

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

2017-09-05 Thread Stefano Babic
Hi Stefan, On 05/09/2017 03:21, Stefan Agner wrote: > From: Stefan Agner > > This macro allows to detect whether the boot ROM initialized USB > already (serial downloader). This is helpful to reliably detect > if the system has been recovered via USB serial downloader.

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

2017-09-05 Thread Fabio Estevam
Hi Stefan, On Mon, Sep 4, 2017 at 10:21 PM, Stefan Agner wrote: > From: Stefan Agner > > This macro allows to detect whether the boot ROM initialized USB > already (serial downloader). This is helpful to reliably detect > if the system has been

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

2017-09-04 Thread Stefan Agner
On 2017-09-04 19:57, Eric Nelson wrote: > Hi Stefan, > > On 09/04/2017 06:21 PM, Stefan Agner wrote: >> From: Stefan Agner >> >> This macro allows to detect whether the boot ROM initialized USB >> already (serial downloader). This is helpful to reliably detect >> if the

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

2017-09-04 Thread Eric Nelson
Hi Stefan, On 09/04/2017 06:21 PM, Stefan Agner wrote: From: Stefan Agner This macro allows to detect whether the boot ROM initialized USB already (serial downloader). This is helpful to reliably detect if the system has been recovered via USB serial downloader.

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

2017-09-04 Thread Stefan Agner
From: Stefan Agner This macro allows to detect whether the boot ROM initialized USB already (serial downloader). This is helpful to reliably detect if the system has been recovered via USB serial downloader. Signed-off-by: Stefan Agner