serial: sh-sci: Add DT support to DMA setup
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 18 Sep 2015 11:08:33 +0000 (13:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 16:36:10 +0000 (17:36 +0100)
commitff4411296e99db2c0896580d8b47348abf3ad703
tree90faa5a89dd5c137396dfccca922257a93df800d
parente7327c09def48ccfd204025726f11b57a19a9c24
serial: sh-sci: Add DT support to DMA setup

Add support for obtaining DMA channel information from the device tree.

This requires switching from the legacy sh_dmae_slave structures with
hardcoded channel numbers and the corresponding filter function to:
  1. dma_request_slave_channel_compat(),
       - On legacy platforms, dma_request_slave_channel_compat() uses
 the passed DMA channel numbers that originate from platform
 device data,
       - On DT-based platforms, dma_request_slave_channel_compat() will
 retrieve the information from DT.
  2. and the generic dmaengine_slave_config() configuration method,
     which requires filling in DMA register ports and slave bus widths.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c