ARM: imx: Use correct U-Boot offset in case of secondary boot from eMMC
PATCH v2 3/4 ARM: imx: Use correct U-Boot offset in case of secondary boot from eMMC
Quoted 12 lines
From: Fedor Ross <[email protected]>
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 fuseIMG_CNTN_SET1_OFFSETof 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 fuseIMG_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
Quoted 2 lines
Signed-off-by Fedor Ross <[email protected]>Signed-off-by Marek Vasut <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================