]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: edma: Get IP configuration from HW (number of channels, tc, etc)
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 16 May 2014 12:17:15 +0000 (15:17 +0300)
committerSekhar Nori <nsekhar@ti.com>
Thu, 22 May 2014 09:25:07 +0000 (14:55 +0530)
commit6d10c3950bf4d42a5bd28bfd7572834225acb031
treec73ebf53b4cde0a1bb37160298b68413831db18f
parent643efcff5208b5521060779f769593ca3837887d
ARM: edma: Get IP configuration from HW (number of channels, tc, etc)

From CCCFG register of eDMA3 we can get all the needed information for the
driver about the IP:
Number of channels: NUM_DMACH
Number of regions: NUM_REGN
Number of slots (PaRAM sets): NUM_PAENTRY
Number of TC/EQ: NUM_EVQUE

In case when booted with DT or the queue_priority_mapping is not provided
set up a default priority map.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/common/edma.c