dual_splitter: Defined number of instances macro if not defined

This patch adds definition of macro XPAR_XDUALSPLITTER_NUM_INSTANCES, disables
config table when XPAR_XDUALSPLITTER_NUM_INSTANCES undefined and equal to
zero.
These changes are to avoid compilation errors in DisplayPort Subsystem driver.
DisplayPort Subsystem HIP does not include Dual Splitter core in Single
Transport Mode (SST) but Subsystem driver adds depends clause in its .mdd file
to pull Dual Splitter driver in BSP.
DisplayPort Subsystem HIP does not include Dual Splitter core in Single
Transport Mode (SST) but Subsystem driver adds depends clause in its .mdd file
to pull Dual Splitter driver in BSP.

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
This commit is contained in:
Shadul Shaikh 2015-07-08 15:18:12 +05:30 committed by Nava kishore Manne
parent 96076602b1
commit 1eff98a656
2 changed files with 10 additions and 1 deletions

View file

@ -47,6 +47,8 @@
XDualSplitter_Config XDualSplitter_ConfigTable[] =
{
{
#ifdef XPAR_XDUALSPLITTER_NUM_INSTANCES
#if XPAR_XDUALSPLITTER_NUM_INSTANCES > 0
XPAR_DUALSPLITTER_0_DEVICE_ID,
XPAR_DUALSPLITTER_0_BASEADDR,
XPAR_DUALSPLITTER_0_ACTIVE_COLS,
@ -59,5 +61,7 @@ XDualSplitter_Config XDualSplitter_ConfigTable[] =
XPAR_DUALSPLITTER_0_MAX_SMPL_WIDTH,
XPAR_DUALSPLITTER_0_HAS_AXI4_LITE,
XPAR_DUALSPLITTER_0_HAS_IRQ
#endif
#endif
}
};

View file

@ -44,8 +44,10 @@
* MODIFICATION HISTORY:
*
* Ver Who Date Changes
* ----- --- -------- --------------------------------------------------
* ----- --- -------- -------------------------------------------------------
* 1.00 sha 07/21/14 Initial release.
* 1.00 sha 07/08/15 Defined macro XPAR_XDUALSPLITTER_NUM_INSTANCES if not
* defined in xparameters.h.
* </pre>
*
******************************************************************************/
@ -57,6 +59,9 @@
/************************** Constant Definitions *****************************/
#ifndef XPAR_XDUALSPLITTER_NUM_INSTANCES
#define XPAR_XDUALSPLITTER_NUM_INSTANCES 0
#endif
/***************** Macros (Inline Functions) Definitions *********************/