/* Looks up the device configuration based on the unique device ID. A table contains the configuration info for each device in the system. */
XQspiPs_Config* XQspiPs_LookupConfig(u16 DeviceId)
/* Looks up the device configuration based on the unique device ID. A table contains the configuration info for each device in the system. */
XQspiPs_Config* XQspiPs_LookupConfig(u16 DeviceId)
{
	XQspiPs_Config *CfgPtr = NULL;
	int Index;
	for (Index = 0; Index < XPAR_XQSPIPS_NUM_INSTANCES; Index++) {
		if (XQspiPs_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XQspiPs_ConfigTable[Index];
			break;
		}
	}
	return CfgPtr;
}
/** @}