diff options
| author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2016-11-10 10:17:49 -0500 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2016-11-17 05:21:28 -0500 |
| commit | da6f8ca13fb7d40f263ef647ebb41ff0a575d194 (patch) | |
| tree | 10884ea1676539adf3b4ed6a20ad0c65831ea95f /include/linux/amba | |
| parent | 1001354ca34179f3db924eb66672442a173147dc (diff) | |
dmaengine: pl08x: Add support for the DMA slave map
This patch adds support for the new channel request API introduced
in commit a8135d0d79e9d0ad3a4ff494fceeaae83
"dmaengine: core: Introduce new, universal API to request a channel".
param field of struct dma_slave_map type entries in the platform
data structure should be pointing to struct pl08x_channel_data
of related DMA channel.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/linux/amba')
| -rw-r--r-- | include/linux/amba/pl08x.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/amba/pl08x.h b/include/linux/amba/pl08x.h index 27e9ec8778eb..5308eae9ce35 100644 --- a/include/linux/amba/pl08x.h +++ b/include/linux/amba/pl08x.h | |||
| @@ -84,6 +84,8 @@ struct pl08x_channel_data { | |||
| 84 | * running any DMA transfer and multiplexing can be recycled | 84 | * running any DMA transfer and multiplexing can be recycled |
| 85 | * @lli_buses: buses which LLIs can be fetched from: PL08X_AHB1 | PL08X_AHB2 | 85 | * @lli_buses: buses which LLIs can be fetched from: PL08X_AHB1 | PL08X_AHB2 |
| 86 | * @mem_buses: buses which memory can be accessed from: PL08X_AHB1 | PL08X_AHB2 | 86 | * @mem_buses: buses which memory can be accessed from: PL08X_AHB1 | PL08X_AHB2 |
| 87 | * @slave_map: DMA slave matching table | ||
| 88 | * @slave_map_len: number of elements in @slave_map | ||
| 87 | */ | 89 | */ |
| 88 | struct pl08x_platform_data { | 90 | struct pl08x_platform_data { |
| 89 | struct pl08x_channel_data *slave_channels; | 91 | struct pl08x_channel_data *slave_channels; |
| @@ -93,6 +95,8 @@ struct pl08x_platform_data { | |||
| 93 | void (*put_xfer_signal)(const struct pl08x_channel_data *, int); | 95 | void (*put_xfer_signal)(const struct pl08x_channel_data *, int); |
| 94 | u8 lli_buses; | 96 | u8 lli_buses; |
| 95 | u8 mem_buses; | 97 | u8 mem_buses; |
| 98 | const struct dma_slave_map *slave_map; | ||
| 99 | int slave_map_len; | ||
| 96 | }; | 100 | }; |
| 97 | 101 | ||
| 98 | #ifdef CONFIG_AMBA_PL08X | 102 | #ifdef CONFIG_AMBA_PL08X |
