VoltServer / uboot-bootcount

Read and reset the u-boot 'bootcount' register on various ARM platforms
GNU General Public License v3.0
2 stars 5 forks source link

Support IMX93 platform #11

Open ridethepenguin opened 1 month ago

ridethepenguin commented 1 month ago

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).