]> git.baikalelectronics.ru Git - kernel.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)
commitb8b1a899a6e44da00341652b3e85db23802d6d35
treec73ebf53b4cde0a1bb37160298b68413831db18f
parent98e41f60ec0980a8a4e71b08f8ee6f4a8e4d4e33
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