lib/sw_services/xilplmi/src/xplmi.c
static void XPlmi_UpdateResetReason(void)
{
	u32 AccResetReason = XPlmi_In32(PMC_GLOBAL_PERS_GEN_STORAGE2) &
				PERS_GEN_STORAGE2_ACC_RR_MASK;
	u32 ResetReason = XPlmi_In32(CRP_RESET_REASON) &
				CRP_RESET_REASON_MASK;

	/* Accumulate previous reset reasons and add last reset reason */
	AccResetReason |= (ResetReason << CRP_RESET_REASON_SHIFT) | ResetReason;

	/* Store Reset Reason to Persistent2 address */
	XPlmi_Out32(PMC_GLOBAL_PERS_GEN_STORAGE2, AccResetReason);

	/* Clear Reset Reason register, by writing the same value */
	XPlmi_Out32(CRP_RESET_REASON, ResetReason);
}
/*****************************************************************************/
/**
 * @brief	This function updates reset reason.
 *
 * @return	None
 *
 *****************************************************************************/
@brief       This function updates reset reason.
@return      None
@brief This function updates reset reason . @return None
static void XPlmi_UpdateResetReason(void)
{
	u32 AccResetReason = XPlmi_In32(PMC_GLOBAL_PERS_GEN_STORAGE2) &
				PERS_GEN_STORAGE2_ACC_RR_MASK;
	u32 ResetReason = XPlmi_In32(CRP_RESET_REASON) &
				CRP_RESET_REASON_MASK;
	AccResetReason |= (ResetReason << CRP_RESET_REASON_SHIFT) | ResetReason;
	XPlmi_Out32(PMC_GLOBAL_PERS_GEN_STORAGE2, AccResetReason);
	XPlmi_Out32(CRP_RESET_REASON, ResetReason);
}
static void XPlmi_UpdateResetReason ( void ) { u32 AccResetReason = XPlmi_In32 ( PMC_GLOBAL_PERS_GEN_STORAGE2 ) & PERS_GEN_STORAGE2_ACC_RR_MASK ; u32 ResetReason = XPlmi_In32 ( CRP_RESET_REASON ) & CRP_RESET_REASON_MASK ; AccResetReason |= ( ResetReason << CRP_RESET_REASON_SHIFT ) | ResetReason ; XPlmi_Out32 ( PMC_GLOBAL_PERS_GEN_STORAGE2 , AccResetReason ) ; XPlmi_Out32 ( CRP_RESET_REASON , ResetReason ) ; }
@brief       This function updates reset reason.
@brief This function updates reset reason .
/* Accumulate previous reset reasons and add last reset reason */ /* Store Reset Reason to Persistent2 address */ /* Clear Reset Reason register, by writing the same value */