dw_dmac: get number of channels from hardware if possible
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 21 Sep 2012 12:05:46 +0000 (15:05 +0300)
committerVinod Koul <vinod.koul@linux.intel.com>
Thu, 27 Sep 2012 10:05:23 +0000 (15:35 +0530)
commit482c67ea7bab80b956185a3e7553151820bc5876
treeedc73d4f17e086dde2d1531ca11a68e04872ccf3
parent2a9fe9ae3a7b3986a4229900e900bfaa72c7a152
dw_dmac: get number of channels from hardware if possible

In case the controller has the encoded parameters feature enabled the driver
will use it to get the number of channels. In the future it will be used for
the other important parameters as well.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/dw_dmac.c