lib/sw_apps/zynqmp_pmufw/src/idle_hooks.c
void NodeQspiIdle(u32 BaseAddress)
{
	volatile u32 StatusReg;
	/*
	 * If QSPI is enabled, pause Tx and Rx DMA.
	 */
	StatusReg = XQspiPsu_ReadReg(BaseAddress, XQSPIPSU_EN_OFFSET);
	if (StatusReg & XQSPIPSU_EN_MASK) {
		StatusReg = XQspiPsu_ReadReg(BaseAddress, XQSPIPSU_QSPIDMA_DST_CTRL_OFFSET);
		StatusReg |= (XQSPIPSU_QSPIDMA_DST_CTRL_PAUSE_STRM_MASK |
			      XQSPIPSU_QSPIDMA_DST_CTRL_PAUSE_MEM_MASK);
		XQspiPsu_WriteReg(BaseAddress, XQSPIPSU_QSPIDMA_DST_CTRL_OFFSET, StatusReg);
	}
}
/**
 * NodeQspiIdle() - Custom code to idle the QSPI
 *
 * @BaseAddress: QSPI base address
 */
Custom code to idle the QSPI
@BaseAddress: QSPI base address
Custom code to idle the QSPI @BaseAddress : QSPI base address
void NodeQspiIdle(u32 BaseAddress)
{
	volatile u32 StatusReg;
	StatusReg = XQspiPsu_ReadReg(BaseAddress, XQSPIPSU_EN_OFFSET);
	if (StatusReg & XQSPIPSU_EN_MASK) {
		StatusReg = XQspiPsu_ReadReg(BaseAddress, XQSPIPSU_QSPIDMA_DST_CTRL_OFFSET);
		StatusReg |= (XQSPIPSU_QSPIDMA_DST_CTRL_PAUSE_STRM_MASK |
			      XQSPIPSU_QSPIDMA_DST_CTRL_PAUSE_MEM_MASK);
		XQspiPsu_WriteReg(BaseAddress, XQSPIPSU_QSPIDMA_DST_CTRL_OFFSET, StatusReg);
	}
}
void NodeQspiIdle ( u32 BaseAddress ) { volatile u32 StatusReg ; StatusReg = XQspiPsu_ReadReg ( BaseAddress , XQSPIPSU_EN_OFFSET ) ; if ( StatusReg & XQSPIPSU_EN_MASK ) { StatusReg = XQspiPsu_ReadReg ( BaseAddress , XQSPIPSU_QSPIDMA_DST_CTRL_OFFSET ) ; StatusReg |= ( XQSPIPSU_QSPIDMA_DST_CTRL_PAUSE_STRM_MASK | XQSPIPSU_QSPIDMA_DST_CTRL_PAUSE_MEM_MASK ) ; XQspiPsu_WriteReg ( BaseAddress , XQSPIPSU_QSPIDMA_DST_CTRL_OFFSET , StatusReg ) ; } }
NodeQspiIdle() - Custom code to idle the QSPI
 @BaseAddress: QSPI base address
NodeQspiIdle () - Custom code to idle the QSPI @BaseAddress : QSPI base address
/*
	 * If QSPI is enabled, pause Tx and Rx DMA.
	 */