ARM: OMAP1: DMA: Correct the number of logical channels
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 3 Jan 2017 11:22:34 +0000 (13:22 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 6 Jan 2017 16:46:06 +0000 (08:46 -0800)
commit657279778af54f35e54b07b6687918f254a2992c
tree99ba20f33c6fbb92d93d0346977d45590d9c19b0
parent6ca36a455e2730a3195a5596d53c900c9cd00838
ARM: OMAP1: DMA: Correct the number of logical channels

OMAP1510, OMAP5910 and OMAP310 have only 9 logical channels.
OMAP1610, OMAP5912, OMAP1710, OMAP730, and OMAP850 have 16 logical channels
available.

The wired 17 for the lch_count must have been used to cover the 16 + 1
dedicated LCD channel, in reality we can only use 9 or 16 channels.

The d->chan_count is not used by the omap-dma stack, so we can skip the
setup. chan_count was configured to the number of logical channels and not
the actual number of physical channels anyways.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/dma.c