dmaengine/dw_dmac: allow src/dst masters to be configured at runtime
authorJamie Iles <jamie@jamieiles.com>
Fri, 21 Jan 2011 14:11:53 +0000 (14:11 +0000)
committerDan Williams <dan.j.williams@intel.com>
Sun, 30 Jan 2011 07:10:55 +0000 (23:10 -0800)
commitf301c062dcdd113bc977ae1ebc8c12232f8531a9
treed4e4e7a79d7121e9d4e49b87146e10641888a203
parent087809fce28f50098d9c3ef1a6865c722f23afd2
dmaengine/dw_dmac: allow src/dst masters to be configured at runtime

Some platforms have flexible mastering capabilities and this needs
to be selected at runtime. If the platform has specified private
data in the form of the dw_dma_slave then fetch the source and
destination masters from here. If this isn't present, default to
the previous of 0 and 1.

v2: cleanup whitespace

Acked-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Signed-off-by: Jamie Iles <jamie.iles@picochip.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/dw_dmac.c
include/linux/dw_dmac.h