usb: gadget: fsl_udc: Add PBL image loading support
For boards that do the RAM setup in code we can up to now only download
the PBL part to SRAM. This patch adds support for downloading the rest
of the image after the RAM has been configured.

The ROM is nice enough to leave the USB controller initialized after a
download, so we don't have to reinitialize it, but can simply continue to
use the controller. Like all two-staged loading processes on i.MX this
needs board support, it will only work when a board calls
imx_barebox_load_usb() or one of the SoC specific variants.

This needs the host counterpart in imx-usb-loader which is done in the
next patch.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a58a9fe commit 0a45e20ef44f4e8a5427ac30a31a2d800ff40462
@Sascha Hauer Sascha Hauer authored on 11 Feb 2020
Showing 5 changed files
View
drivers/usb/Makefile
View
drivers/usb/gadget/Kconfig
View
drivers/usb/gadget/Makefile
View
drivers/usb/gadget/fsl_udc_pbl.c 0 → 100644
View
include/soc/fsl/fsl_udc.h