]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/edma3_lld.git/blobdiff - packages/ti/sdo/edma3/rm/src/edma3resmgr.c
PRSDK-415 Update global cfgparams for AM335x
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / rm / src / edma3resmgr.c
index b54cddfcfbe293a0b3a964c07b0b44718ab1a01b..78c0cdce2e4f6014d2cf5e7b71a65ce597eacdf8 100755 (executable)
@@ -879,6 +879,18 @@ EDMA3_RM_Handle EDMA3_RM_open (uint32_t phyCtrllerInstId,
                             = 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.