imx: add macro to detect whether USB has been initialized
authorStefan Agner <stefan.agner@toradex.com>
Wed, 30 May 2018 17:01:45 +0000 (19:01 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 23 Jul 2018 08:12:00 +0000 (10:12 +0200)
commit23eaf4180f9ff6f3898e0199e56cfcb563d2eb74
tree543e269fbff68f65caf11abe12ccbd397d11c105
parentc7f367bc8d6b1b5da79aa430c4449c9f505b9577
imx: add macro to detect whether USB has been initialized

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 <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
arch/arm/include/asm/arch-mx6/imx-regs.h