axivdma: Defined number of instances macro if not defined

This patch adds definition of macro XPAR_XAXIVDMA_NUM_INSTANCES, controls
config table parameters with macro XPAR_XAXIVDMA_NUM_INSTANCES.

These changes are to avoid compilation errors in Subsystem driver if Subsystem
HIP is not included axivdma as subcore, results axivdma driver not in BSP.

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Acked-by: Srikanth Vemula <svemula@xilinx.com>
This commit is contained in:
Shadul Shaikh 2015-07-16 20:04:51 +05:30 committed by Nava kishore Manne
parent a4ce0fd772
commit 37e7f6c933
2 changed files with 12 additions and 0 deletions

View file

@ -57,6 +57,8 @@
* 4.03a srt 01/18/13 Added TDATA_WIDTH parameters (CR: 691866)
* 4.04a srt 03/03/13 Support for *_ENABLE_DEBUG_INFO_* debug configuration
* parameters (CR: 703738)
* 5.1 sha 07/15/15 Added XPAR_XAXIVDMA_NUM_INSTANCES macro to control
* config table parameters.
*
* </pre>
*
@ -72,6 +74,7 @@
XAxiVdma_Config XAxiVdma_ConfigTable[] =
{
{
#ifdef XPAR_XAXIVDMA_NUM_INSTANCES
XPAR_AXIVDMA_0_DEVICE_ID,
XPAR_AXIVDMA_0_BASEADDR,
XPAR_AXIVDMA_0_NUM_FSTORES,
@ -102,6 +105,7 @@ XAxiVdma_Config XAxiVdma_ConfigTable[] =
XPAR_AXIVDMA_0_ENABLE_DEBUG_INFO_14,
XPAR_AXIVDMA_0_ENABLE_DEBUG_INFO_15,
XPAR_AXIVDMA_0_ENABLE_DEBUG_ALL
#endif
}
};
/** @} */

View file

@ -48,6 +48,8 @@
* 1.00a jz 08/16/10 First release
* 2.00a jz 12/10/10 Added support for direct register access mode, v3 core
* 2.01a jz 01/19/11 Added ability to re-assign BD addresses
* 5.1 sha 07/15/15 Defined macro XPAR_XAXIVDMA_NUM_INSTANCES if not
* defined in xparameters.h
* </pre>
*
******************************************************************************/
@ -57,6 +59,12 @@
#include "xaxivdma.h"
#include "xparameters.h"
/************************** Constant Definitions *****************************/
#ifndef XPAR_XAXIVDMA_NUM_INSTANCES
#define XPAR_XAXIVDMA_NUM_INSTANCES 0
#endif
/*****************************************************************************/
/**
* Look up the hardware configuration for a device instance