aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-04-14 07:41:57 -0400
committerVinod Koul <vinod.koul@intel.com>2014-04-22 12:05:13 -0400
commit7cf2af90cd515bf27f1b7183f3d6f91b151990ed (patch)
tree1e6e8812feb23dee5a4a1cb5769ca1163639e2c4 /arch/arm
parent8df4053f0532df8fe47d0434af51676b0fa65491 (diff)
arm: common: edma: Save the number of event queues/TCs
For later use save the number of queues available for the CC. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Joel Fernandes <joelf@ti.com> Reviewed-and-Tested-by: Joel Fernandes <joelf@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/common/edma.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c
index 41bca32409fc..999266bf69b9 100644
--- a/arch/arm/common/edma.c
+++ b/arch/arm/common/edma.c
@@ -1768,6 +1768,9 @@ static int edma_probe(struct platform_device *pdev)
1768 map_queue_tc(j, queue_tc_mapping[i][0], 1768 map_queue_tc(j, queue_tc_mapping[i][0],
1769 queue_tc_mapping[i][1]); 1769 queue_tc_mapping[i][1]);
1770 1770
1771 /* Save the number of TCs */
1772 edma_cc[j]->num_tc = i;
1773
1771 /* Event queue priority mapping */ 1774 /* Event queue priority mapping */
1772 for (i = 0; queue_priority_mapping[i][0] != -1; i++) 1775 for (i = 0; queue_priority_mapping[i][0] != -1; i++)
1773 assign_priority_to_queue(j, 1776 assign_priority_to_queue(j,