lib/sw_apps/zynqmp_pmufw/src/pm_hooks.c
void PmHookInitPowerOffSuspend(void)
{
	u32 reg;

	/* Drive MIO34 (LPD power down request pin) high */
	reg = XPfw_Read32(PMU_LOCAL_GPO1_READ);
	reg |= PMU_IOMODULE_GPO1_MIO_2_MASK;
	XPfw_Write32(PMU_IOMODULE_GPO1, reg);
	/* Configure MIO34 to be controlled by the PMU */
	XPfw_RMW32(IOU_SCLR_MIO_PIN_34, 0x000000FEU ,0x00000008U);
	/* Configure MIO34 tri-state enable */
	XPfw_RMW32(IOU_SCLR_MIO_MST_TRI1, 0x00000004U ,0x00000000U);
}
/**
 * PmHookInitPowerOffSuspend() - User hook for Power Off Suspend state
 * 				 initialization
 */
User hook for Power Off Suspend state
initialization
User hook for Power Off Suspend state initialization
void PmHookInitPowerOffSuspend(void)
{
	u32 reg;
	reg = XPfw_Read32(PMU_LOCAL_GPO1_READ);
	reg |= PMU_IOMODULE_GPO1_MIO_2_MASK;
	XPfw_Write32(PMU_IOMODULE_GPO1, reg);
	XPfw_RMW32(IOU_SCLR_MIO_PIN_34, 0x000000FEU ,0x00000008U);
	XPfw_RMW32(IOU_SCLR_MIO_MST_TRI1, 0x00000004U ,0x00000000U);
}
void PmHookInitPowerOffSuspend ( void ) { u32 reg ; reg = XPfw_Read32 ( PMU_LOCAL_GPO1_READ ) ; reg |= PMU_IOMODULE_GPO1_MIO_2_MASK ; XPfw_Write32 ( PMU_IOMODULE_GPO1 , reg ) ; XPfw_RMW32 ( IOU_SCLR_MIO_PIN_34 , 0x000000FEU , 0x00000008U ) ; XPfw_RMW32 ( IOU_SCLR_MIO_MST_TRI1 , 0x00000004U , 0x00000000U ) ; }
PmHookInitPowerOffSuspend() - User hook for Power Off Suspend state
                               initialization
PmHookInitPowerOffSuspend () - User hook for Power Off Suspend state initialization
/* Drive MIO34 (LPD power down request pin) high */ /* Configure MIO34 to be controlled by the PMU */ /* Configure MIO34 tri-state enable */