diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-09-18 11:08:33 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-04 16:36:10 (GMT) |
commit | ff4411296e99db2c0896580d8b47348abf3ad703 (patch) | |
tree | 90faa5a89dd5c137396dfccca922257a93df800d /drivers/tty/serial/samsung.c | |
parent | e7327c09def48ccfd204025726f11b57a19a9c24 (diff) | |
download | linux-ff4411296e99db2c0896580d8b47348abf3ad703.tar.xz |
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>
Diffstat (limited to 'drivers/tty/serial/samsung.c')
0 files changed, 0 insertions, 0 deletions