summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/image-container.c
AgeCommit message (Collapse)Author
2022-08-03LFU-377-1 imx: container: Skip container set check for ROM APIYe Li
Skip the container check for platforms using ROM API. It causes always printing primary container set used Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2022-04-18MA-17390 Clean build warnings for androidJi Luo
This commit eliminate the annoying build warning logs. Test: builds with buildman. Signed-off-by: Ji Luo <ji.luo@nxp.com> Change-Id: Ia335dafe3f4c0eab08e011215b9de5d2974b8d0c (cherry picked from commit 85e0d429d19b8f9a62369a5f20e088644c488b1e) (cherry picked from commit 52471735760a8d3a410f88c144910a07a161028d) (cherry picked from commit c0ed4a68aecf0cf67d61c72c273fcd655682366f)
2022-04-06MLK-25612 arm: imx: Fix container header checkingYe Li
Checking container header tag and version is wrong, it causes to fail to bypass invalid container Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit b93279dcbb4175f7e5c2935c13fac41d8340ad14) (cherry picked from commit 1dbd8c2a4597dc3a829969fc3fe229942e7cc332)
2022-04-06MLK-25504-7 imx: Support loading container image from RAM deviceYe Li
For some debug case, we have preloaded the full boot image to RAM device. Add the support that SPL can load the u-boot-atf container from the RAM device. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit d2c4568802708366b3157ce790bfe23a23a96cc2) (cherry picked from commit 1f2609289289f1bc9b6249e7d6f746d2d459cbb5)
2022-04-06MLK-24254-3 imx8: spl: Support booting from secondary container setYe Li
Add the support for loading image from secondary container set on iMX8QM B0, iMX8QXP C0, iMX8DXL A0. Using the SCFW API to get container set index, if it is the secondary boot, get the offset from fuse and apply to offset of current container set beginning for loading. Also override the emmc boot partition to check secondary boot and switch to the other boot part. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 81d51fad8522cad8f05be4d16855ea250312ef27) (cherry picked from commit 80a57293e9a06fb7e9b12cbcbf1494f695c206f7) (cherry picked from commit c81124f224c38602eb221ab84f3128574ccbf163)
2022-04-06MLK-23279-3 imx: Add support for i.MX8DXL SoCTeo Hall
Add soc id in cpu codes and conditionals. Also add support for v2x container on 8DXL. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Teo Hall <teo.hall@nxp.com> (cherry picked from commit 35691a6b85c3240b0e3b9f9a8da9fc6328bf92d8) (cherry picked from commit f1f546d03dec535774f0583ae95b02875dfcf72c) (cherry picked from commit 09800a15fd8573ace396346f0f615300785b686e) (cherry picked from commit e8439682e7c9feb53fd16dea0dc2ab9f03d2b6d3)
2021-09-04mmc: Rename MMC_SUPPORT to MMCSimon Glass
Rename these options so that CONFIG_IS_ENABLED can be used with them. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com> [trini: Fixup some incorrect renames] Signed-off-by: Tom Rini <trini@konsulko.com>
2021-08-09imx8ulp: Add workaround for eMMC bootYe Li
When booting from boot part1/2, the image offset should be 0, but ROM has a bug to return 0x8000. Has to workaround the issue before ROM fix it. Use a ROM function to know boot from emmc boot part or user part So we can set the image offset accordingly. Signed-off-by: Ye Li <ye.li@nxp.com>
2021-08-09arm: imx8ulp: add container supportYe Li
i.MX8ULP support using ROM API to load container image, it use same ROM API as i.MX8MN/MP, and use same container format as i.MX8QM/QXP. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
2021-08-09arm: imx8: Move container image header file to mach-imxYe Li
Since the container is shared among i.MX platforms, move its header file to mach-imx Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
2021-08-09arm: imx8: Move container parser and image to mach-imx common folderYe Li
Since we will re-use the container parser on imx8ulp, move the codes to mach-imx Signed-off-by: Ye Li <ye.li@nxp.com>