summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2019-08-22 07:42:38 +0000
committerStefano Babic <[email protected]>2019-10-08 16:35:58 +0200
commitdd7d0911e0048e4ddb8a4084d2221242aed8c62b (patch)
tree3bb3362a6d3702c53f191daef32776391dc94933 /include
parent7b86cd4274e66e0336b6da1399a0e7a7a4a1581e (diff)
spl: mmc: support loading i.MX container format file
i.MX8 only support AHAB secure boot with Container format image, we could not use FIT to support secure boot, so introduce container support to let SPL could load container images. Cc: Simon Goldschmidt <[email protected]> Cc: Tien Fong Chee <[email protected]> Cc: York Sun <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Alex Kiernan <[email protected]> Cc: Simon Glass <[email protected]> Cc: Philipp Tomsich <[email protected]> Cc: Kever Yang <[email protected]> Cc: Heiko Schocher <[email protected]> Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/spl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index fd4747b44e4..f9c674d33bf 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -134,6 +134,18 @@ int spl_load_simple_fit(struct spl_image_info *spl_image,
#define SPL_COPY_PAYLOAD_ONLY 1
#define SPL_FIT_FOUND 2
+/**
+ * spl_load_imx_container() - Loads a imx container image from a device.
+ * @spl_image: Image description to set up
+ * @info: Structure containing the information required to load data.
+ * @sector: Sector number where container image is located in the device
+ *
+ * Reads the container image @sector in the device. Loads u-boot image to
+ * specified load address.
+ */
+int spl_load_imx_container(struct spl_image_info *spl_image,
+ struct spl_load_info *info, ulong sector);
+
/* SPL common functions */
void preloader_console_init(void);
u32 spl_boot_device(void);