Lines Matching refs:pwrctl
57 DDRCTL_REG_REG(pwrctl, false),
318 mmio_clrbits_32((uintptr_t)&ctl->pwrctl, in disable_refresh()
326 static void restore_refresh(struct stm32mp_ddrctl *ctl, uint32_t rfshctl3, uint32_t pwrctl) in restore_refresh() argument
336 if ((pwrctl & DDRCTRL_PWRCTL_SELFREF_SW) != 0U) { in restore_refresh()
337 mmio_clrbits_32((uintptr_t)&ctl->pwrctl, DDRCTRL_PWRCTL_SELFREF_SW); in restore_refresh()
342 if ((pwrctl & DDRCTRL_PWRCTL_POWERDOWN_EN) != 0U) { in restore_refresh()
343 mmio_setbits_32((uintptr_t)&ctl->pwrctl, DDRCTRL_PWRCTL_POWERDOWN_EN); in restore_refresh()
348 if ((pwrctl & DDRCTRL_PWRCTL_SELFREF_EN) != 0U) { in restore_refresh()
349 mmio_setbits_32((uintptr_t)&ctl->pwrctl, DDRCTRL_PWRCTL_SELFREF_EN); in restore_refresh()
422 config->c_reg.pwrctl |= DDRCTRL_PWRCTL_SELFREF_SW; in stm32mp2_ddr_init()
465 mmio_clrbits_32((uintptr_t)&ctl->pwrctl, DDRCTRL_PWRCTL_SELFREF_SW); in stm32mp2_ddr_init()
475 restore_refresh(priv->ctl, config->c_reg.rfshctl3, config->c_reg.pwrctl); in stm32mp2_ddr_init()