dmaengine: qcom: bam_dma: get num-channels and num-ees from dt
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 15 Feb 2018 12:25:09 +0000 (12:25 +0000)
committerVinod Koul <vinod.koul@intel.com>
Thu, 1 Mar 2018 08:44:27 +0000 (14:14 +0530)
commit48d163b1aa6e7f650c0b7a4f9c61c387a6def868
treeedf269c9b0227b919038365530d754a8ef1cc232
parentd545afc907fa66b779699b88ec24f7fe7498cbba
dmaengine: qcom: bam_dma: get num-channels and num-ees from dt

When Linux is master of BAM, it can directly read registers to know number
of supported channels, however when its remotely controlled reading these
registers would trigger a crash if the BAM is not yet initialized or
powered up on the remote side.

This patch allows driver to read num-channels and num-ees from Device Tree
for remotely controlled BAM.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/qcom/bam_dma.c