Browse Source

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

pull/1979/head
Madhukar Pappireddy 4 years ago
committed by TrustedFirmware Code Review
parent
commit
aa8390c2c8
  1. 6
      drivers/st/iwdg/stm32_iwdg.c

6
drivers/st/iwdg/stm32_iwdg.c

@ -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…
Cancel
Save