1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

Add support for loading u-boot FIT images over the USB SDP protocol in
the SPL

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
[Various build fixes]
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Tested-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Lukasz Majewski <lukma@denx.de>
This commit is contained in:
Frieder Schrempf
2019-06-04 21:56:29 +02:00
committed by Stefano Babic
parent 77f6e2dd05
commit 2c72ead738
3 changed files with 63 additions and 11 deletions

View File

@@ -10,6 +10,13 @@
#define __SDP_H_
int sdp_init(int controller_index);
void sdp_handle(int controller_index);
#ifdef CONFIG_SPL_BUILD
#include <spl.h>
int spl_sdp_handle(int controller_index, struct spl_image_info *spl_image);
#else
int sdp_handle(int controller_index);
#endif
#endif /* __SDP_H_ */