Lines Matching defs:iwdg
61 struct stm32_iwdg_instance *iwdg = &stm32_iwdg[i];
64 if (iwdg->base != 0U) {
65 clk_enable(iwdg->clock);
67 mmio_write_32(iwdg->base + IWDG_KR_OFFSET,
70 clk_disable(iwdg->clock);
89 struct stm32_iwdg_instance *iwdg;
96 iwdg = &stm32_iwdg[idx];
97 iwdg->base = dt_info.base;
98 iwdg->clock = (unsigned long)dt_info.clock;
103 iwdg->flags |= IWDG_DISABLE_ON_STOP;
108 iwdg->flags |= IWDG_DISABLE_ON_STANDBY;
116 ERROR("OTP enabled but iwdg%u DT-disabled\n",
120 iwdg->flags |= IWDG_HW_ENABLED;
124 zeromem((void *)iwdg,
130 iwdg->flags |= IWDG_DISABLE_ON_STOP;
134 iwdg->flags |= IWDG_DISABLE_ON_STANDBY;
142 stm32mp_register_non_secure_periph_iomem(iwdg->base);
144 stm32mp_register_secure_periph_iomem(iwdg->base);
148 if (stm32_iwdg_shadow_update(idx, iwdg->flags) != BSEC_OK) {