scripts: imx-usb-loader: cleanup DCD v2 processing
Re-Implement the DCD v2 processing.
Processing for the DCD write command went into a separate function enabling
the over-all DCD processing to handle check, nop and unlock commands as well.
The trivial NOP command is supported right away.
Further changes: put in some data consistancy checks and error handling, do
structured member access and proper endianess handling and direct error
messages to stderr.

Signed-off-by: Alexander Kurz <akurz@blala.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d30d0e4 commit c973b3adbf5a9575e4d186877c3a47ea602acf35
@Alexander Kurz Alexander Kurz authored on 2 Sep 2016
Sascha Hauer committed on 5 Sep 2016
Showing 2 changed files
View
scripts/imx/imx-usb-loader.c
View
scripts/imx/imx.h