Commit bcc360f7 authored by Etienne Carriere's avatar Etienne Carriere
Browse files

drivers/stm32_iwdg: register IWDG resources as secure or not



Register in the shared resources driver the secure or non-secure state
of the IWDG instances.

Change-Id: I3a3bc9525447f6a2a465891ca3a3fd5fe664ca07
Signed-off-by: default avatarEtienne Carriere <etienne.carriere@st.com>
parent f564d439
...@@ -137,6 +137,12 @@ int stm32_iwdg_init(void) ...@@ -137,6 +137,12 @@ int stm32_iwdg_init(void)
((dt_info.status & DT_NON_SECURE) != 0) ? ((dt_info.status & DT_NON_SECURE) != 0) ?
"non-" : ""); "non-" : "");
if ((dt_info.status & DT_NON_SECURE) != 0) {
stm32mp_register_non_secure_periph_iomem(iwdg->base);
} else {
stm32mp_register_secure_periph_iomem(iwdg->base);
}
#if defined(IMAGE_BL2) #if defined(IMAGE_BL2)
if (stm32_iwdg_shadow_update(idx, iwdg->flags) != BSEC_OK) { if (stm32_iwdg_shadow_update(idx, iwdg->flags) != BSEC_OK) {
return -1; return -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment