diff --git a/packages/ti/sdo/edma3/rm/src/edma3resmgr.c b/packages/ti/sdo/edma3/rm/src/edma3resmgr.c
index b54cddfcfbe293a0b3a964c07b0b44718ab1a01b..78c0cdce2e4f6014d2cf5e7b71a65ce597eacdf8 100755 (executable)
= rmInstance->initParam.rmInstInitConfig->ownTccs[resMgrIdx];
}
+ /*
+ * Mark the PaRAM Sets corresponding to DMA channels as RESERVED.
+ * For e.g. on a platform where only 32 DMA channels exist,
+ * mark the first 32 PaRAM Sets as reserved. These param sets
+ * will not be returned in case user requests for ANY link
+ * channel.
+ */
+ for (resMgrIdx = 0U; resMgrIdx < rmObj->gblCfgParams.numDmaChannels; ++resMgrIdx)
+ {
+ rmInstance->initParam.rmInstInitConfig->resvdPaRAMSets[resMgrIdx/32U] |= ((uint32_t)1U<<(resMgrIdx%32U));
+ }
+
/*
* If the EDMA RM instance is MASTER (ie. initParam->isMaster
* is TRUE), save the region ID.