diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-04-14 14:41:57 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-04-22 21:35:13 +0530 |
commit | 7cf2af90cd515bf27f1b7183f3d6f91b151990ed (patch) | |
tree | 1e6e8812feb23dee5a4a1cb5769ca1163639e2c4 /arch/arm/common | |
parent | 8df4053f0532df8fe47d0434af51676b0fa65491 (diff) | |
download | linux-7cf2af90cd515bf27f1b7183f3d6f91b151990ed.tar.bz2 |
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/common')
-rw-r--r-- | arch/arm/common/edma.c | 3 |
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) map_queue_tc(j, queue_tc_mapping[i][0], queue_tc_mapping[i][1]); + /* Save the number of TCs */ + edma_cc[j]->num_tc = i; + /* Event queue priority mapping */ for (i = 0; queue_priority_mapping[i][0] != -1; i++) assign_priority_to_queue(j, |