lib/sw_apps/zynqmp_pmufw/src/pm_proc.c
static s32 PmProcRpu1Sleep(void)
{
	XPfw_AibEnable(XPFW_AIB_RPU1_TO_LPD);
	XPfw_AibEnable(XPFW_AIB_LPD_TO_RPU1);

	XPfw_RMW32(CRL_APB_RST_LPD_TOP,
		   CRL_APB_RST_LPD_TOP_RPU_R51_RESET_MASK,
		   CRL_APB_RST_LPD_TOP_RPU_R51_RESET_MASK);
	XPfw_RMW32(RPU_RPU_1_CFG,
		   RPU_RPU_1_CFG_NCPUHALT_MASK,
		  ~RPU_RPU_1_CFG_NCPUHALT_MASK);
	XPfw_RMW32(CRL_APB_RST_LPD_TOP,
		   CRL_APB_RST_LPD_TOP_RPU_R51_RESET_MASK,
		  ~CRL_APB_RST_LPD_TOP_RPU_R51_RESET_MASK);

	XPfw_AibDisable(XPFW_AIB_RPU1_TO_LPD);
	XPfw_AibDisable(XPFW_AIB_LPD_TO_RPU1);

	return XST_SUCCESS;
}
/**
 * PmProcRpu1Sleep() - Put RPU_1 into sleep (reset only)
 * @return      Always success, reset cannot fail
 */
Put RPU_1 into sleep (reset only)
@return      Always success, reset cannot fail
Put RPU_1 into sleep ( reset only ) @return Always success reset cannot fail
static s32 PmProcRpu1Sleep(void)
{
	XPfw_AibEnable(XPFW_AIB_RPU1_TO_LPD);
	XPfw_AibEnable(XPFW_AIB_LPD_TO_RPU1);
	XPfw_RMW32(CRL_APB_RST_LPD_TOP,
		   CRL_APB_RST_LPD_TOP_RPU_R51_RESET_MASK,
		   CRL_APB_RST_LPD_TOP_RPU_R51_RESET_MASK);
	XPfw_RMW32(RPU_RPU_1_CFG,
		   RPU_RPU_1_CFG_NCPUHALT_MASK,
		  ~RPU_RPU_1_CFG_NCPUHALT_MASK);
	XPfw_RMW32(CRL_APB_RST_LPD_TOP,
		   CRL_APB_RST_LPD_TOP_RPU_R51_RESET_MASK,
		  ~CRL_APB_RST_LPD_TOP_RPU_R51_RESET_MASK);
	XPfw_AibDisable(XPFW_AIB_RPU1_TO_LPD);
	XPfw_AibDisable(XPFW_AIB_LPD_TO_RPU1);
	return XST_SUCCESS;
}
static s32 PmProcRpu1Sleep ( void ) { XPfw_AibEnable ( XPFW_AIB_RPU1_TO_LPD ) ; XPfw_AibEnable ( XPFW_AIB_LPD_TO_RPU1 ) ; XPfw_RMW32 ( CRL_APB_RST_LPD_TOP , CRL_APB_RST_LPD_TOP_RPU_R51_RESET_MASK , CRL_APB_RST_LPD_TOP_RPU_R51_RESET_MASK ) ; XPfw_RMW32 ( RPU_RPU_1_CFG , RPU_RPU_1_CFG_NCPUHALT_MASK , ~ RPU_RPU_1_CFG_NCPUHALT_MASK ) ; XPfw_RMW32 ( CRL_APB_RST_LPD_TOP , CRL_APB_RST_LPD_TOP_RPU_R51_RESET_MASK , ~ CRL_APB_RST_LPD_TOP_RPU_R51_RESET_MASK ) ; XPfw_AibDisable ( XPFW_AIB_RPU1_TO_LPD ) ; XPfw_AibDisable ( XPFW_AIB_LPD_TO_RPU1 ) ; return XST_SUCCESS ; }
PmProcRpu1Sleep() - Put RPU_1 into sleep (reset only)
 @return      Always success, reset cannot fail
PmProcRpu1Sleep () - Put RPU_1 into sleep ( reset only ) @return Always success reset cannot fail