PRSDK-415 Disabled reserved parameters for AM335x
authorSinthu Raja M <x0257345@ti.com>
Tue, 30 Jan 2018 14:45:22 +0000 (20:15 +0530)
committerPratap Reddy <x0257344@ti.com>
Wed, 21 Feb 2018 20:16:41 +0000 (01:46 +0530)
 Removed code in RM driver which masks first n DMA channel
 PARAM sets as reserved.

packages/ti/sdo/edma3/rm/sample/src/platforms/sample_am335x_cfg.c
packages/ti/sdo/edma3/rm/src/edma3resmgr.c

index 3fdf93632e70c9303b994328283358613e823517..a002f4281ffec707e34284af5337df0bab903779 100644 (file)
@@ -513,7 +513,7 @@ EDMA3_RM_InstanceInitConfig sampleInstInitConfig [NUM_EDMA3_INSTANCES][EDMA3_NUM
             /* Resources reserved by Region 1 */
             /* resvdPaRAMSets */
             /* 31     0     63    32     95    64     127   96 */
-            {0xFFFFFFFFu, 0xFFFFFFFFu, 0x00000000u, 0x00000000u,
+            {0x00000000u, 0xFFFFFFFFu, 0x00000000u, 0x00000000u,
             /* 159  128     191  160     223  192     255  224 */
              0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u,
             /* 287  256     319  288     351  320     383  352 */
index 78c0cdce2e4f6014d2cf5e7b71a65ce597eacdf8..b54cddfcfbe293a0b3a964c07b0b44718ab1a01b 100755 (executable)
@@ -879,18 +879,6 @@ 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.