From: Sinthu Raja M Date: Tue, 30 Jan 2018 14:45:22 +0000 (+0530) Subject: PRSDK-415 Disabled reserved parameters for AM335x X-Git-Tag: DEV_EDMA3_LLD_02_12_05_30C~2^2~8 X-Git-Url: https://git.ti.com/gitweb?p=keystone-rtos%2Fedma3_lld.git;a=commitdiff_plain;h=ba6d532a72a78e6382d110103ae07c373dcb8c53 PRSDK-415 Disabled reserved parameters for AM335x Removed code in RM driver which masks first n DMA channel PARAM sets as reserved. --- diff --git a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_am335x_cfg.c b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_am335x_cfg.c index 3fdf936..a002f42 100644 --- a/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_am335x_cfg.c +++ b/packages/ti/sdo/edma3/rm/sample/src/platforms/sample_am335x_cfg.c @@ -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 */ diff --git a/packages/ti/sdo/edma3/rm/src/edma3resmgr.c b/packages/ti/sdo/edma3/rm/src/edma3resmgr.c index 78c0cdc..b54cddf 100755 --- a/packages/ti/sdo/edma3/rm/src/edma3resmgr.c +++ b/packages/ti/sdo/edma3/rm/src/edma3resmgr.c @@ -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.