u-boot/arch/arm/mach-imx
Fedor Ross 71c2faeca7 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>
2023-10-17 23:55:10 +02:00
..
imx8 common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
imx8m ARM: imx: Use correct U-Boot offset in case of secondary boot from eMMC 2023-10-17 23:55:10 +02:00
imx8ulp event: Convert existing spy records to simple 2023-08-31 13:16:54 -04:00
imx9 Merge branch 'next' 2023-10-02 10:55:44 -04:00
imxrt imx: imxrt1170-evk: Add support for the NXP i.MXRT1170-EVK 2022-09-18 20:42:56 +02:00
mx3 arm: Remove mx31pdk board 2020-07-09 20:58:06 +05:30
mx5 global: Remove extraneous DM_ETH imply/select 2022-12-07 16:04:16 -05:00
mx6 arm: mx6: module_fuse: fix build failure due to wrong argument name 2023-07-11 14:40:02 +02:00
mx7 Revert "arm: imx: mx7: Move CONFIG_OPTEE_TZDRAM_SIZE from lib/optee" 2023-08-28 15:59:22 -04:00
mx7ulp global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
mxs mxs: Kconfig: Remove TARGET_XFI3 symbol 2023-10-16 18:52:19 +02:00
cache.c imx: Enable ACTLR.SMP in SPL for i.MX6/7 2022-02-05 13:38:39 +01:00
cmd_bmode.c ARM: imx: Add support for reading out the primary/secondary bmode 2020-08-17 17:55:17 +02:00
cmd_dek.c imx: cmd_dek: add ELE DEK Blob generation support 2023-07-13 11:29:40 +02:00
cmd_hdmidet.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
cmd_mfgprot.c global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
cmd_nandbcb.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
cpu.c ARM: imx: Add weak default reset_cpu() 2023-06-24 13:46:58 -04:00
ddrmc-vf610-calibration.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ddrmc-vf610-calibration.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
ddrmc-vf610.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ele_ahab.c imx: ele_api: support program secure fuse and return lifecycle 2023-07-13 11:29:40 +02:00
hab.c imx: hab: Explain that ivt_offset is optional 2023-09-23 18:45:34 +02:00
i2c-mxv7.c ARM: imx: imx8mp: Enable support for i2c5 and i2c6 on i.MX8MP 2022-11-07 22:45:05 +01:00
image-container.c spl: mmc: Introduce proper layering for spl_mmc_get_uboot_raw_sector() 2023-10-17 23:55:10 +02:00
imx_bootaux.c imx: imx8: bootaux: Add i.MX8 M4 boot support 2023-07-13 11:29:40 +02:00
init.c ARM: imx: Add support for switching primary/secondary boot mode to bmode 2020-08-17 17:54:01 +02:00
iomux-v3.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig Merge branch 'next' 2023-10-02 10:55:44 -04:00
mac.c arm: mach-imx: Update MAC fuse for i.MX8MP 2021-10-21 13:59:26 +02:00
Makefile arm: mach-imx: Makefile: Extend u-boot-nand.imx padding 2023-10-16 08:46:01 +02:00
misc.c lmb: Remove imx board_lmb_reserve() 2021-09-23 14:15:32 -04:00
mmc_env.c Revert "imx: mmc_env: update runtime SD/MMC boot env device" 2019-10-08 16:36:37 +02:00
mmdc_size.c arm/mach-imx: Fix macros in mmdc_size.c 2021-07-10 16:53:34 +02:00
parse-container.c imx: ahab: Update AHAB for iMX8 and iMX8ULP 2023-07-13 11:29:40 +02:00
priblob.c imx: priblob: Update to use structure 2023-07-13 11:29:40 +02:00
rdc-sema.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
romapi.c imx: fix get_boot_device() for imx8 2023-05-02 10:57:32 +02:00
sata.c arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
speed.c global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
spl.c imx: hab: Use size parameter 2023-10-16 16:25:09 +02:00
spl_imx_romapi.c imx: spl_imx_romapi.c: remove dead code 2023-10-16 08:46:01 +02:00
spl_qspi.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
spl_sd.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
syscounter.c imx: syscounter: allow timer_init for SPL build 2023-10-16 08:46:01 +02:00
timer.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
video.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00