Commit aa8390c2 authored by Madhukar Pappireddy's avatar Madhukar Pappireddy Committed by TrustedFirmware Code Review
Browse files

Merge "drivers/stm32_iwdg: register IWDG resources as secure or not" into integration

parents f4d5b6a7 bcc360f7
...@@ -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