MLK-20559-6 f_sdp: Support searching and loading FIT or container image
authorYe Li <ye.li@nxp.com>
Thu, 3 Jan 2019 08:50:24 +0000 (00:50 -0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 10:38:53 +0000 (03:38 -0700)
commit519354f9c47f88ba325c08ea861d2a139a6be8aa
treedf991801361f69c722d67620e07ec1deb8d61238
parenta3ed6467a4efb7acaa15281ec2c37e7f051b00db
MLK-20559-6 f_sdp: Support searching and loading FIT or container image

Add support to f_sdp to search and load iMX8 container image or iMX8M
FIT image by new UUU command SDPV.

When using the SDPV, the uuu will continue to send out data after first
level boot loader used by ROM. This means uuu won't skip to the offset
of the second boot loader, and the padding data before second boot loader
will be sent out. So we have to search the FIT header or container header
in the buffer that SDP received.

The new BCD value is used by uuu to distinguish if the SPL supports the
SDPV.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit cddb0fde374769dccff44275a5072c5e28e41446)
arch/arm/mach-imx/imx8/parser.c
arch/arm/mach-imx/spl.c
drivers/usb/gadget/f_sdp.c