spi: pl022: use generic DMA slave configuration if possible
authorArnd Bergmann <arnd@arndb.de>
Mon, 28 Jan 2013 16:24:37 +0000 (16:24 +0000)
committerArnd Bergmann <arnd@arndb.de>
Tue, 12 Mar 2013 16:56:08 +0000 (17:56 +0100)
commitdc715452e9145156840b09df765ea2ede4851eda
tree5e5916cbb0ef6562f444cfb54b5cf3fabef92aca
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
spi: pl022: use generic DMA slave configuration if possible

With the new OF DMA binding, it is possible to completely avoid the
need for platform_data for configuring a DMA channel. In cases where the
platform has already been converted, calling dma_request_slave_channel
should get all the necessary information from the device tree.

Like the patch that converts the dw_dma controller, this is completely
untested and is looking for someone to try it out.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Cc: spi-devel-general@lists.sourceforge.net
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Vinod Koul <vinod.koul@linux.intel.com>
Cc: devicetree-discuss@lists.ozlabs.org
Cc: linux-arm-kernel@lists.infradead.org
Documentation/devicetree/bindings/spi/spi_pl022.txt
drivers/spi/spi-pl022.c