diff options
author | Frieder Schrempf <frieder.schrempf@kontron.de> | 2019-06-04 21:56:29 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-06-27 13:50:28 +0200 |
commit | 2c72ead7387404eba16c556d2f204c52c36c27f9 (patch) | |
tree | efc335707cfcf133857db93717f6ed03fef594fe /include/sdp.h | |
parent | 77f6e2dd0551d8a825bab391a1bd6b838874bcd4 (diff) | |
download | u-boot-2c72ead7387404eba16c556d2f204c52c36c27f9.tar.gz u-boot-2c72ead7387404eba16c556d2f204c52c36c27f9.tar.bz2 u-boot-2c72ead7387404eba16c556d2f204c52c36c27f9.zip |
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>
Diffstat (limited to 'include/sdp.h')
-rw-r--r-- | include/sdp.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/sdp.h b/include/sdp.h index f6252d027f..6ac64fb1f3 100644 --- a/include/sdp.h +++ b/include/sdp.h @@ -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_ */ |