Default event mapping for vayu updated
authorprasad <prasadkonnur.ti.com>
Fri, 10 May 2013 09:39:35 +0000 (11:39 +0200)
committerprasad <prasadkonnur.ti.com>
Fri, 10 May 2013 09:39:35 +0000 (11:39 +0200)
Signed-off-by: prasad <prasadkonnur.ti.com>
packages/ti/sdo/edma3/drv/sample/src/platforms/sample_tda2xx_cfg.c
packages/ti/sdo/edma3/rm/sample/src/platforms/sample_tda2xx_cfg.c

index b0885c6aa61d3e054274cb4cb939f3dee7298637..c4ddefbeecb319631a6e8b4b016833cb263099c2 100644 (file)
@@ -247,11 +247,16 @@ EDMA3_OS_Sem_Handle semHandle[NUM_EDMA3_INSTANCES] = {NULL};
  * EDMA3_DRV_DMA_CHANNEL_ANY as dma channel id (for eg to do memory-to-memory\r
  * copy). The same mapping is used to allocate the TCC when user passes\r
  * EDMA3_DRV_TCC_ANY as tcc id (for eg to do memory-to-memory copy).\r
+ * \r
+ * For Vayu Since the xbar can be used to map event to any EDMA channel,\r
+ * If the application is assigning events to other channel this variable \r
+ * should be modified\r
  *\r
  * To allocate more DMA channels or TCCs, one has to modify the event mapping.\r
  */\r
                                                       /* 31     0 */\r
-#define EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_0       (0x00000000u)  /* TBD */\r
+#define EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_0_STSTEDMA       (0x3FC0C06Eu)  /* TBD */\r
+#define EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_0_DSPEDMA        (0x000FFFFFu)  /* TBD */\r
 \r
 \r
 /**\r
@@ -268,7 +273,8 @@ EDMA3_OS_Sem_Handle semHandle[NUM_EDMA3_INSTANCES] = {NULL};
  *\r
  * To allocate more DMA channels or TCCs, one has to modify the event mapping.\r
  */\r
-#define EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_1       (0x00000000u) /* TBD */\r
+#define EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_1_STSTEDMA       (0xF3FFFFF8u) /* TBD */\r
+#define EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_1_DSPEDMA        (0x00000000u) /* TBD */\r
 \r
 \r
 /* Variable which will be used internally for referring number of Event Queues*/\r
@@ -557,10 +563,10 @@ EDMA3_DRV_GblConfigParams sampleEdma3GblCfgParams[NUM_EDMA3_INSTANCES] =
             {\r
             0u, 1u, 2u, 3u,\r
             4u, 5u, 6u, 7u,\r
-            8u, 9u, EDMA3_RM_CH_NO_TCC_MAP, EDMA3_RM_CH_NO_TCC_MAP,\r
+            8u, 9u, 10u, 11u,\r
             12u, 13u, 14u, 15u,\r
             16u, 17u, 18u, 19u,\r
-            20u, 21u, EDMA3_RM_CH_NO_TCC_MAP, EDMA3_RM_CH_NO_TCC_MAP,\r
+            20u, 21u, 22u, 23u,\r
             24u, 25u, 26u, 27u,\r
             28u, 29u, 30u, 31u,\r
             32u, 33u, 34u, 35u,\r
@@ -579,8 +585,8 @@ EDMA3_DRV_GblConfigParams sampleEdma3GblCfgParams[NUM_EDMA3_INSTANCES] =
          * All channels need not be mapped, some can be free also.\r
          */\r
             {\r
-            EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_0,\r
-            EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_1\r
+            EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_0_STSTEDMA,\r
+            EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_1_STSTEDMA\r
             }\r
         },\r
     {\r
@@ -718,10 +724,10 @@ EDMA3_DRV_GblConfigParams sampleEdma3GblCfgParams[NUM_EDMA3_INSTANCES] =
             {\r
             0u, 1u, 2u, 3u,\r
             4u, 5u, 6u, 7u,\r
-            8u, 9u, EDMA3_RM_CH_NO_TCC_MAP, EDMA3_RM_CH_NO_TCC_MAP,\r
+            8u, 9u, 10u, 11u,\r
             12u, 13u, 14u, 15u,\r
             16u, 17u, 18u, 19u,\r
-            20u, 21u, EDMA3_RM_CH_NO_TCC_MAP, EDMA3_RM_CH_NO_TCC_MAP,\r
+            20u, 21u, 22u, 23u,\r
             24u, 25u, 26u, 27u,\r
             28u, 29u, 30u, 31u,\r
             32u, 33u, 34u, 35u,\r
@@ -740,8 +746,8 @@ EDMA3_DRV_GblConfigParams sampleEdma3GblCfgParams[NUM_EDMA3_INSTANCES] =
          * All channels need not be mapped, some can be free also.\r
          */\r
             {\r
-            EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_0,\r
-            EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_1\r
+            EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_0_DSPEDMA,\r
+            EDMA3_DMA_CHANNEL_TO_EVENT_MAPPING_1_DSPEDMA\r
             }\r
     },\r
 };\r
index 1bd77df98b5e7e34394409541a7613e33fe115d4..3ae4baadb70d8bf74abe018d761bc9cc96486f20 100644 (file)
@@ -153,7 +153,7 @@ EDMA3_OS_Sem_Handle semHandle[NUM_EDMA3_INSTANCES] = {NULL};
  * To allocate more DMA channels or TCCs, one has to modify the event mapping.\r
  */\r
                                                       /* 31     0 */\r
-#define EDMA3_0_DMA_CHANNEL_TO_EVENT_MAPPING_0       (0x00000000u)  /* TBD */\r
+#define EDMA3_0_DMA_CHANNEL_TO_EVENT_MAPPING_0       (0x3FC0C06Eu)  /* TBD */\r
 \r
 \r
 /**\r
@@ -170,7 +170,7 @@ EDMA3_OS_Sem_Handle semHandle[NUM_EDMA3_INSTANCES] = {NULL};
  *\r
  * To allocate more DMA channels or TCCs, one has to modify the event mapping.\r
  */\r
-#define EDMA3_0_DMA_CHANNEL_TO_EVENT_MAPPING_1       (0x00000000u) /* TBD */\r
+#define EDMA3_0_DMA_CHANNEL_TO_EVENT_MAPPING_1       (0xF3FFFFF8u) /* TBD */\r
 \r
 \r
 /* Variable which will be used internally for referring number of Event Queues*/\r
@@ -378,10 +378,10 @@ EDMA3_RM_GblConfigParams sampleEdma3GblCfgParams[NUM_EDMA3_INSTANCES] =
             {\r
             0u, 1u, 2u, 3u,\r
             4u, 5u, 6u, 7u,\r
-            8u, 9u, EDMA3_RM_CH_NO_TCC_MAP, EDMA3_RM_CH_NO_TCC_MAP,\r
+            8u, 9u, 10u, 11u,\r
             12u, 13u, 14u, 15u,\r
             16u, 17u, 18u, 19u,\r
-            20u, 21u, EDMA3_RM_CH_NO_TCC_MAP, EDMA3_RM_CH_NO_TCC_MAP,\r
+            20u, 21u, 22u, 23u,\r
             24u, 25u, 26u, 27u,\r
             28u, 29u, 30u, 31u,\r
             32u, 33u, 34u, 35u,\r