/* This function gets the clock prescaler of an QSPI device. */
u8 XQspiPs_GetClkPrescaler(XQspiPs *InstancePtr)
/* This function gets the clock prescaler of an QSPI device. */
u8 XQspiPs_GetClkPrescaler(XQspiPs *InstancePtr)
{
	u32 ConfigReg;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	ConfigReg = XQspiPs_ReadReg(InstancePtr->Config.BaseAddress,
				      XQSPIPS_CR_OFFSET);
	ConfigReg &= XQSPIPS_CR_PRESC_MASK;
	return (u8)(ConfigReg >> XQSPIPS_CR_PRESC_SHIFT);
}