lib/sw_apps/zynqmp_pmufw/src/pm_system.c
void PmSystemRestartDone(const PmMaster* const master)
{
	PmRequirement* req;
	u32 caps;

	/* Change system requirement for DDR to hold it ON while restarting */
	req = PmRequirementGetNoMaster(&pmSlaveDdr_g);
	caps = PmSystemGetRequirement(&pmSlaveDdr_g);
	if ((NULL != req) && (0U == (PM_CAP_ACCESS & caps))) {
		req->currReq &= ~(u8)PM_CAP_ACCESS;
	}

	/* Clear system requirement for PL once restart is done*/
	req = PmRequirementGetNoMaster(&pmSlavePl_g);
	caps = PmSystemGetRequirement(&pmSlavePl_g);
	if ((NULL != req) && (0U == (PM_CAP_ACCESS & caps))) {
		req->info &= ~(u8)PM_SYSTEM_USING_SLAVE_MASK;
		req->currReq &= ~(u8)PM_CAP_ACCESS;
	}

	return;
}
/**
 * PmSystemRestartDone() - Done restarting the master
 * @master	Master which is restarted
 */
Done restarting the master
@master      Master which is restarted
Done restarting the master @master Master which is restarted
void PmSystemRestartDone(const PmMaster* const master)
{
	PmRequirement* req;
	u32 caps;
	req = PmRequirementGetNoMaster(&pmSlaveDdr_g);
	caps = PmSystemGetRequirement(&pmSlaveDdr_g);
	if ((NULL != req) && (0U == (PM_CAP_ACCESS & caps))) {
		req->currReq &= ~(u8)PM_CAP_ACCESS;
	}
	req = PmRequirementGetNoMaster(&pmSlavePl_g);
	caps = PmSystemGetRequirement(&pmSlavePl_g);
	if ((NULL != req) && (0U == (PM_CAP_ACCESS & caps))) {
		req->info &= ~(u8)PM_SYSTEM_USING_SLAVE_MASK;
		req->currReq &= ~(u8)PM_CAP_ACCESS;
	}
	return;
}
void PmSystemRestartDone ( const PmMaster * const master ) { PmRequirement * req ; u32 caps ; req = PmRequirementGetNoMaster ( & pmSlaveDdr_g ) ; caps = PmSystemGetRequirement ( & pmSlaveDdr_g ) ; if ( ( NULL != req ) && ( 0U == ( PM_CAP_ACCESS & caps ) ) ) { req -> currReq &= ~ ( u8 ) PM_CAP_ACCESS ; } req = PmRequirementGetNoMaster ( & pmSlavePl_g ) ; caps = PmSystemGetRequirement ( & pmSlavePl_g ) ; if ( ( NULL != req ) && ( 0U == ( PM_CAP_ACCESS & caps ) ) ) { req -> info &= ~ ( u8 ) PM_SYSTEM_USING_SLAVE_MASK ; req -> currReq &= ~ ( u8 ) PM_CAP_ACCESS ; } return ; }
PmSystemRestartDone() - Done restarting the master
 @master      Master which is restarted
PmSystemRestartDone () - Done restarting the master @master Master which is restarted
/* Change system requirement for DDR to hold it ON while restarting */ /* Clear system requirement for PL once restart is done*/