scripts: imx-usb-loader: allow use of unknown USB IDs
Some vendors fuse their devices so that the IMX USB ROM loader
identifies itself with a different Vendor and Product ID on USB
enumeration. Currently, imx-usb-loader will refuse to detect and work
with such devices, so let's teach it.

Because we cannot easily detect the device type from the USB ID in this
case, introduce the new command line parameter -d <type> to specify the
device type to use on the device path specified with -p <path>, even if
the VID/PID pair of that device is unknown. The device name is sourced
from the "name" field of the imx_ids array of known devices at the top
of the file. Using "-d list" will print a list of known device types.
Using -d without -p will not do anything useful, except generate a
warning.

Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 5e176bd commit bcc2df673cdbbf814e6794e124c628c901185b06
@Roland Hieber Roland Hieber authored on 3 Sep 2018
Sascha Hauer committed on 7 Sep 2018
Showing 1 changed file
View
scripts/imx/imx-usb-loader.c