dmaengine: ste_dma40: physical channels number correction
authorGerald Baeza <gerald.baeza@stericsson.com>
Fri, 21 Sep 2012 19:21:37 +0000 (21:21 +0200)
committerFabio Baltieri <fabio.baltieri@linaro.org>
Mon, 14 Jan 2013 09:50:44 +0000 (10:50 +0100)
commit47db92f4a63499b1605b4c66f9347ba5479e7b19
treea3e9510a1b3cec21147f11641f09bd984c2afb0a
parentf000df8c5a0e2002acc5989aad99a97d32a24718
dmaengine: ste_dma40: physical channels number correction

DMAC_ICFG[0:2]=SCHNB only allows to count 'multiple of 4' physical
channels so it was ok with platforms having 8 channels but cannot be
used for next versions (with 10 or 14 channels).  This patch allows to
provide the number of physical channels for a DMA device via
platform_data, or still rely on SCHNB if platform_data announces 0
channel.

Signed-off-by: Gerald Baeza <gerald.baeza@stericsson.com>
Reviewed-by: Per Forlin <per.forlin@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
drivers/dma/ste_dma40.c
include/linux/platform_data/dma-ste-dma40.h