lib/sw_apps/zynqmp_pmufw/src/pm_power.c
static s32 PmPowerUpFpd(void)
{
	if (0U != (XPfw_Read32(PMU_GLOBAL_PWR_STATE) &
				PMU_GLOBAL_PWR_STATE_FP_MASK)) {
		PmInfo("Skipped FPD pwrup (FPD is on)\r\n");
		return XST_SUCCESS;
	}

	s32 status = (s32)XpbrPwrUpFpdHandler();
	if (XST_SUCCESS != status) {
		goto err;
	}

	status = PmResetAssertInt(PM_RESET_FPD, PM_RESET_ACTION_RELEASE);
	if (XST_SUCCESS != status) {
		goto err;
	}

	XPfw_AibDisable(XPFW_AIB_LPD_TO_DDR);
	XPfw_AibDisable(XPFW_AIB_LPD_TO_FPD);

	PmFpdRestoreContext();

err:
	return status;
}
/**
 * PmPowerUpFpd() - Power up FPD domain
 *
 * @return      Status of the pmu-rom operations
 */
Power up FPD domain
@return      Status of the pmu-rom operations
Power up FPD domain @return Status of the pmu - rom operations
static s32 PmPowerUpFpd(void)
{
	if (0U != (XPfw_Read32(PMU_GLOBAL_PWR_STATE) &
				PMU_GLOBAL_PWR_STATE_FP_MASK)) {
		PmInfo("Skipped FPD pwrup (FPD is on)\r\n");
		return XST_SUCCESS;
	}
	s32 status = (s32)XpbrPwrUpFpdHandler();
	if (XST_SUCCESS != status) {
		goto err;
	}
	status = PmResetAssertInt(PM_RESET_FPD, PM_RESET_ACTION_RELEASE);
	if (XST_SUCCESS != status) {
		goto err;
	}
	XPfw_AibDisable(XPFW_AIB_LPD_TO_DDR);
	XPfw_AibDisable(XPFW_AIB_LPD_TO_FPD);
	PmFpdRestoreContext();
err:
	return status;
}
static s32 PmPowerUpFpd ( void ) { if ( 0U != ( XPfw_Read32 ( PMU_GLOBAL_PWR_STATE ) & PMU_GLOBAL_PWR_STATE_FP_MASK ) ) { PmInfo ( " \r \n " ) ; return XST_SUCCESS ; } s32 status = ( s32 ) XpbrPwrUpFpdHandler ( ) ; if ( XST_SUCCESS != status ) { goto err ; } status = PmResetAssertInt ( PM_RESET_FPD , PM_RESET_ACTION_RELEASE ) ; if ( XST_SUCCESS != status ) { goto err ; } XPfw_AibDisable ( XPFW_AIB_LPD_TO_DDR ) ; XPfw_AibDisable ( XPFW_AIB_LPD_TO_FPD ) ; PmFpdRestoreContext ( ) ; err : return status ; }
PmPowerUpFpd() - Power up FPD domain
 @return      Status of the pmu-rom operations
PmPowerUpFpd () - Power up FPD domain @return Status of the pmu - rom operations