Straightforward implementation of bootcount support for the IMX93 platform.
The only difference with the IMX8M platform is that the non-volatile register used to store the bootcount is BBNSM GPR0 (memory mapped at address 0x44440300) and not SNVS_LP GPR0 (memory mapped at address 0x30370090).
Please note that there is no explicit bootcount support for the IMX93 platform in U-Boot yet (i.e. no defconfig file defining SYS_BOOTCOUNT_ADDR), so the memory address of the register has been taken from the SoC's reference manual.
Finally, code has been tested on an i.MX93 powered SoM by Variscite (product name: VAR-SOM-MX93).
Straightforward implementation of bootcount support for the IMX93 platform.
The only difference with the IMX8M platform is that the non-volatile register used to store the bootcount is BBNSM GPR0 (memory mapped at address
0x44440300
) and not SNVS_LP GPR0 (memory mapped at address0x30370090
).Please note that there is no explicit bootcount support for the IMX93 platform in U-Boot yet (i.e. no defconfig file defining
SYS_BOOTCOUNT_ADDR
), so the memory address of the register has been taken from the SoC's reference manual.Finally, code has been tested on an i.MX93 powered SoM by Variscite (product name: VAR-SOM-MX93).