stm32mp1: add watchdog support
Introduce driver for STM32 IWDG peripheral (Independent Watchdog).
It is configured according to device tree content and should be enabled
from there.
The watchdog is not started by default. It can be started after an HW
reset if the dedicated OTP is fused.

The watchdog also needs to be frozen if a debugger is attached.
This is done by configuring the correct bits in DBGMCU.
This configuration is allowed by checking BSEC properties.

An increase of BL2 size is also required when adding this new code.

Change-Id: Ide7535d717885ce2f9c387cf17afd8b5607f3e7f
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com>
1 parent a5ac37e commit 73680c230f8503a8e0f625834bc987b90e065b03
@Yann Gautier Yann Gautier authored on 4 Jun 2019
Showing 10 changed files
View
drivers/st/iwdg/stm32_iwdg.c 0 → 100644
View
include/drivers/st/stm32_iwdg.h 0 → 100644
View
plat/st/common/include/stm32mp_common.h
View
plat/st/stm32mp1/bl2_plat_setup.c
View
plat/st/stm32mp1/include/stm32mp1_dbgmcu.h 0 → 100644
View
plat/st/stm32mp1/platform.mk
View
plat/st/stm32mp1/sp_min/sp_min_setup.c
View
plat/st/stm32mp1/stm32mp1_dbgmcu.c 0 → 100644
View
plat/st/stm32mp1/stm32mp1_def.h
View
plat/st/stm32mp1/stm32mp1_private.c