diff options
| author | Peng Fan <[email protected]> | 2019-08-22 07:42:38 +0000 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2019-10-08 16:35:58 +0200 |
| commit | dd7d0911e0048e4ddb8a4084d2221242aed8c62b (patch) | |
| tree | 3bb3362a6d3702c53f191daef32776391dc94933 /common | |
| parent | 7b86cd4274e66e0336b6da1399a0e7a7a4a1581e (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 'common')
| -rw-r--r-- | common/spl/spl_mmc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index b3619889f79..6c6eaf4ec87 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -79,6 +79,16 @@ int mmc_load_image_raw_sector(struct spl_image_info *spl_image, load.bl_len = mmc->read_bl_len; load.read = h_spl_load_read; ret = spl_load_simple_fit(spl_image, &load, sector, header); + } else if (IS_ENABLED(CONFIG_SPL_LOAD_IMX_CONTAINER)) { + struct spl_load_info load; + + load.dev = mmc; + load.priv = NULL; + load.filename = NULL; + load.bl_len = mmc->read_bl_len; + load.read = h_spl_load_read; + + ret = spl_load_imx_container(spl_image, &load, sector); } else { ret = mmc_load_legacy(spl_image, mmc, sector, header); } |
