[U-Boot] [PATCH] imx: mx6: add is_boot_from_usb define
Fabio Estevam
festevam at gmail.com
Tue Apr 24 12:13:51 UTC 2018
Hi Sean,
On Tue, Apr 24, 2018 at 9:05 AM, Sean Nyekjaer <sean.nyekjaer at prevas.dk> wrote:
> This enables us to detect if the i.MX6 SoC
> is booting from USB.
>
> Signed-off-by: Sean Nyekjaer <sean.nyekjaer at prevas.dk>
Could you use is_usbotg_phy_active() for this purpose?
Please see:
commit 7d289d6239b29171bf9503869f1a92c084cf1c35
Author: Stefan Agner <stefan.agner at toradex.com>
Date: Wed Sep 13 14:29:44 2017 -0700
imx: add macro to detect whether USB PHY is active
This macro allows to detect whether the USB PHY is active. This
is helpful to detect if the boot ROM has previously started the
USB serial downloader.
The idea is taken from the mfgtool support in the NXP U-Boot:
http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/commit/?h=imx_v2016.03_4.1.15_2.0.0_ga&id=a352ed3c5184b95c4c9f7468f5fbb5f43de5e412
Signed-off-by: Stefan Agner <stefan.agner at toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
Tested-by: Fabio Estevam <fabio.estevam at nxp.com>
Reviewed-by: Eric Nelson <eric at nelint.com>
More information about the U-Boot
mailing list