]> git.dujemihanovic.xyz Git - u-boot.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)
commitac803d9cae483d309ce1b0441cb4495a7cc9daba
treed514a859da4a2e9b9d61c716ee2118b7ec9efd41
parent666b1a712d81560c8081bd7704f1252130bf72f1
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