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: Etienne Carriere <etienne.carriere@st.com>
This commit is contained in:
parent
f564d439a9
commit
bcc360f7e0
|
@ -137,6 +137,12 @@ int stm32_iwdg_init(void)
|
|||
((dt_info.status & DT_NON_SECURE) != 0) ?
|
||||
"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 (stm32_iwdg_shadow_update(idx, iwdg->flags) != BSEC_OK) {
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue