]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: stm32: Add boot counter to DHSOM
authorMarek Vasut <marex@denx.de>
Thu, 27 Oct 2022 21:17:55 +0000 (23:17 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 7 Dec 2022 16:06:26 +0000 (17:06 +0100)
commit141c6bcf288fda0e7b7025cf6485b65b92ad8cb2
treed514a859da4a2e9b9d61c716ee2118b7ec9efd41
parentc27b9c39654de27dd5c4558b50ce3dea8de5876a
ARM: stm32: Add boot counter to DHSOM

Add boot counter to STM32MP15xx DHSOM. This aligns the software with
other upstream DHSOM products which already do enable boot counter.

The boot counter on STM32MP15xx is placed in the TAMP block TAMP_BKPxR
register 19, right past register 17 and 18 used for CM4 resource table
and state by the Linux kernel. The TAMP_BKPxR register block is used
because its contents survives warm reset, but not cold reset.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
configs/stm32mp15_dhcom_basic_defconfig
configs/stm32mp15_dhcor_basic_defconfig