]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: dw_dmac: Enhance device tree support
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 16 Oct 2012 04:19:17 +0000 (09:49 +0530)
committerVinod Koul <vinod.koul@intel.com>
Tue, 8 Jan 2013 06:04:14 +0000 (22:04 -0800)
commit4889873a33983600ace26143f6ab1485896b1d9c
tree3c3b520bb61163d963c417c5355ac7c7cb5ad049
parent9a79e85f3882e8b31b2a26ba0d6041cb28f5b712
dmaengine: dw_dmac: Enhance device tree support

dw_dmac driver already supports device tree but it used to have its platform
data passed the non-DT way.

This patch does following changes:
- pass platform data via DT, non-DT way still takes precedence if both are used.
- create generic filter routine
- Earlier slave information was made available by slave specific filter routines
  in chan->private field. Now, this information would be passed from within dmac
  DT node. Slave drivers would now be required to pass bus_id (a string) as
  parameter to this generic filter(), which would be compared against the slave
  data passed from DT, by the generic filter routine.
- Update binding document

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[Fixed __devinit usage]
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Documentation/devicetree/bindings/dma/snps-dma.txt
drivers/dma/dw_dmac.c
drivers/dma/dw_dmac_regs.h
include/linux/dw_dmac.h