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

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

	/* Change system requirement for PL to hold it ON while restarting */
	req = PmRequirementGetNoMaster(&pmSlavePl_g);
	if ((NULL != req) && (0U == (PM_CAP_ACCESS & req->currReq))) {
		req->info |= PM_SYSTEM_USING_SLAVE_MASK;
		req->currReq |= PM_CAP_ACCESS;
	}

	return;
}
/**
 * PmSystemPrepareForRestart() - Prepare for restarting the master
 * @master	Master to be restarted
 */
Prepare for restarting the master
@master      Master to be restarted
Prepare for restarting the master @master Master to be restarted
void PmSystemPrepareForRestart(const PmMaster* const master)
{
	PmRequirement* req;
	req = PmRequirementGetNoMaster(&pmSlaveDdr_g);
	if ((NULL != req) && (0U == (PM_CAP_ACCESS & req->currReq))) {
		req->currReq |= PM_CAP_ACCESS;
	}
	req = PmRequirementGetNoMaster(&pmSlavePl_g);
	if ((NULL != req) && (0U == (PM_CAP_ACCESS & req->currReq))) {
		req->info |= PM_SYSTEM_USING_SLAVE_MASK;
		req->currReq |= PM_CAP_ACCESS;
	}
	return;
}
void PmSystemPrepareForRestart ( const PmMaster * const master ) { PmRequirement * req ; req = PmRequirementGetNoMaster ( & pmSlaveDdr_g ) ; if ( ( NULL != req ) && ( 0U == ( PM_CAP_ACCESS & req -> currReq ) ) ) { req -> currReq |= PM_CAP_ACCESS ; } req = PmRequirementGetNoMaster ( & pmSlavePl_g ) ; if ( ( NULL != req ) && ( 0U == ( PM_CAP_ACCESS & req -> currReq ) ) ) { req -> info |= PM_SYSTEM_USING_SLAVE_MASK ; req -> currReq |= PM_CAP_ACCESS ; } return ; }
PmSystemPrepareForRestart() - Prepare for restarting the master
 @master      Master to be restarted
PmSystemPrepareForRestart () - Prepare for restarting the master @master Master to be restarted
/* Change system requirement for DDR to hold it ON while restarting */ /* Change system requirement for PL to hold it ON while restarting */