stm32mp: correct the dependency for bootcount configs
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 7 Dec 2021 09:05:59 +0000 (10:05 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Mon, 24 Jan 2022 09:56:45 +0000 (10:56 +0100)
commit5c68904fe1890c00baaa455bcd336fa9c92ec243
tree8db9e9e2c961d829584e52aa41e7079028b3c729
parentd5e8119baed0dda4bd38984c1a16a8409f9219af
stm32mp: correct the dependency for bootcount configs

Default value for CONFIG_SYS_BOOTCOUNT_SINGLEWORD and
CONFIG_SYS_BOOTCOUNT_ADDR are only needed when
CONFIG_BOOTCOUNT_GENERIC is used.

This patch avoids to define these configs when an other bootcount backend
is activated, for example for CONFIG_BOOTCOUNT_ENV.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/Kconfig