diff options
author | Fedor Ross <fedor.ross@ifm.com> | 2023-10-16 18:16:14 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2023-10-17 23:55:10 +0200 |
commit | 71c2faeca74cfc1ad7e14c15105fe7c54c89aa96 (patch) | |
tree | 5361ad25b01d4b35964017abb7e58d1a9d8dcdd7 /lib/image-sparse.c | |
parent | 6c97153b04da053d255e09ea78a417c49fe7c70a (diff) |
ARM: imx: Use correct U-Boot offset in case of secondary boot from eMMC
In case of a secondary image boot from the user area of an eMMC device,
the correct offset must be calculated. The offset is fused in the fuse
IMG_CNTN_SET1_OFFSET of the i.MX8M Nano and Plus. The calculation of the
offset is described in the reference manual (IMX8MNRM Rev. 2, 07/2022
and IMX8MPRM Rev. 1, 06/2021):
The fuse IMG_CNTN_SET1_OFFSET (0x490[22:19]) is defined as follows:
* Secondary boot is disabled if fuse value is bigger than 10,
n = fuse value bigger than 10.
* n == 0: Offset = 4MB
* n == 2: Offset = 1MB
* Others & n <= 10 : Offset = 1MB*2^n
Signed-off-by: Fedor Ross <fedor.ross@ifm.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'lib/image-sparse.c')
0 files changed, 0 insertions, 0 deletions