]> code.ossystems Code Review - bsp/u-boot.git/commit
imx: add macro to detect whether USB PHY is active
authorStefan Agner <stefan.agner@toradex.com>
Wed, 13 Sep 2017 21:29:44 +0000 (14:29 -0700)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 21 Sep 2017 02:32:31 +0000 (23:32 -0300)
commit5615ed083575af89921b084ebccc63986657792c
tree4ad020bb32f6ba0b4f16fc826f23a333eefc71d9
parented4d1d98113f3ce7c0203f266bf57cabad3412cf
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@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Eric Nelson <eric@nelint.com>
(cherry picked from commit 7d289d6239b29171bf9503869f1a92c084cf1c35)
arch/arm/include/asm/arch-mx6/sys_proto.h