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

	/* Drive MIO34 (LPD power down request pin) low */
	reg = XPfw_Read32(PMU_LOCAL_GPO1_READ);
	reg &= ~PMU_IOMODULE_GPO1_MIO_2_MASK;
	XPfw_Write32(PMU_IOMODULE_GPO1, reg);
#ifndef CONNECT_PMU_GPO_2
	/* Configure MIO34 to be controlled by the PMU */
	XPfw_RMW32((IOU_SLCR_BASE + IOU_SLCR_MIO_PIN_34_OFFSET),
			0x000000FEU, 0x00000008U);
#endif
}
/**
 * PmHookPowerDownLpd() - User hook for powering down LPD
 */
User hook for powering down LPD
User hook for powering down LPD
void PmHookPowerDownLpd(void)
{
	u32 reg;
	reg = XPfw_Read32(PMU_LOCAL_GPO1_READ);
	reg &= ~PMU_IOMODULE_GPO1_MIO_2_MASK;
	XPfw_Write32(PMU_IOMODULE_GPO1, reg);
#ifndef CONNECT_PMU_GPO_2
	XPfw_RMW32((IOU_SLCR_BASE + IOU_SLCR_MIO_PIN_34_OFFSET),
			0x000000FEU, 0x00000008U);
#endif
}
void PmHookPowerDownLpd ( void ) { u32 reg ; reg = XPfw_Read32 ( PMU_LOCAL_GPO1_READ ) ; reg &= ~ PMU_IOMODULE_GPO1_MIO_2_MASK ; XPfw_Write32 ( PMU_IOMODULE_GPO1 , reg ) ; #ifndef CONNECT_PMU_GPO_2 XPfw_RMW32 ( ( IOU_SLCR_BASE + IOU_SLCR_MIO_PIN_34_OFFSET ) , 0x000000FEU , 0x00000008U ) ; #endif }
PmHookPowerDownLpd() - User hook for powering down LPD
PmHookPowerDownLpd () - User hook for powering down LPD
/* Drive MIO34 (LPD power down request pin) low */ /* Configure MIO34 to be controlled by the PMU */