serial: pl011: 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:09 +0000 (17:56 +0100)
commit787b0c1f8e1975157fe73104e67cac18f955281b
tree4668c8a2a16baec67e71844840b85bea03cb5566
parentdc715452e9145156840b09df765ea2ede4851eda
serial: pl011: 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.

This also adds a binding document specific to the pl011 controller,
and extends the generic primecell binding to mention "dmas" and other
common properties.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: devicetree-discuss@lists.ozlabs.org
Cc: linux-arm-kernel@lists.infradead.org
Documentation/devicetree/bindings/arm/primecell.txt
Documentation/devicetree/bindings/serial/pl011.txt [new file with mode: 0644]
drivers/tty/serial/amba-pl011.c