lib/sw_apps/zynqmp_pmufw/src/pm_ddr.c
s32 PmDdrPowerOffSuspendResume(void)
{
	s32 status;

	PmClockRestoreDdr();

	status = PmDdrFsmHandler(&pmSlaveDdr_g, PM_DDR_STATE_ON);
	if (XST_SUCCESS != status) {
		goto done;
	}
	pmSlaveDdr_g.node.flags = NODE_LOCKED_CLOCK_FLAG |
					NODE_LOCKED_POWER_FLAG;

done:
	return status;
}
/**
 * PmDdrPowerOffSuspendResume() - Take DDR out of self refresh after resume from
 * 				  Power Off Suspend
 *
 * @return      XST_SUCCESS if DDR is resumed, failure code otherwise
 */
Take DDR out of self refresh after resume from
Power Off Suspend

@return      XST_SUCCESS if DDR is resumed, failure code otherwise
Take DDR out of self refresh after resume from Power Off Suspend @return XST_SUCCESS if DDR is resumed failure code otherwise
s32 PmDdrPowerOffSuspendResume(void)
{
	s32 status;
	PmClockRestoreDdr();
	status = PmDdrFsmHandler(&pmSlaveDdr_g, PM_DDR_STATE_ON);
	if (XST_SUCCESS != status) {
		goto done;
	}
	pmSlaveDdr_g.node.flags = NODE_LOCKED_CLOCK_FLAG |
					NODE_LOCKED_POWER_FLAG;
done:
	return status;
}
s32 PmDdrPowerOffSuspendResume ( void ) { s32 status ; PmClockRestoreDdr ( ) ; status = PmDdrFsmHandler ( & pmSlaveDdr_g , PM_DDR_STATE_ON ) ; if ( XST_SUCCESS != status ) { goto done ; } pmSlaveDdr_g . node . flags = NODE_LOCKED_CLOCK_FLAG | NODE_LOCKED_POWER_FLAG ; done : return status ; }
PmDdrPowerOffSuspendResume() - Take DDR out of self refresh after resume from
                                Power Off Suspend
PmDdrPowerOffSuspendResume () - Take DDR out of self refresh after resume from Power Off Suspend