drivers: stm32_reset adapt interface to timeout argument
Changes stm32mp1 reset driver to API to add a timeout argument
to stm32mp_reset_assert() and stm32mp_reset_deassert() and
a return value.

With a supplied timeout, the functions wait the target reset state
is reached before returning. With a timeout of zero, the functions
simply load target reset state in SoC interface and return without
waiting.

Helper functions stm32mp_reset_set() and stm32mp_reset_release()
use a zero timeout and return without a return code.

This change updates few stm32 drivers and plat/stm32mp1 blé_plat_setup.c
accordingly without any functional change.
functional change.

Change-Id: Ia1a73a15125d3055fd8739c125b70bcb9562c27f
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
1 parent 4e2887f commit 45c70e68673b4fd39c301725e63c03d0846339c5
@Etienne Carriere Etienne Carriere authored on 8 Dec 2019
Etienne Carriere committed on 1 Jun 2020
Showing 7 changed files
View
drivers/st/crypto/stm32_hash.c
View
drivers/st/fmc/stm32_fmc2_nand.c
View
drivers/st/mmc/stm32_sdmmc2.c
View
drivers/st/reset/stm32mp1_reset.c
View
drivers/st/spi/stm32_qspi.c
View
include/drivers/st/stm32mp_reset.h
View
plat/st/stm32mp1/bl2_plat_setup.c