diff options
| author | Angelo Dureghello <angelo@sysam.it> | 2018-08-19 13:27:16 -0400 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2018-09-11 02:36:39 -0400 |
| commit | e7a3ff92eaf19eab14e8149758428e680c61706b (patch) | |
| tree | c6a748bac9713845149987745a28486497bc119d /include/linux/platform_data | |
| parent | 4d6d3a90e4acfdcf6134a854da20a061cb9da2a6 (diff) | |
dmaengine: fsl-edma: add ColdFire mcf5441x edma support
This patch adds support for ColdFire mcf5441x-family edma
module.
The ColdFire edma module is slightly different from fsl-edma,
so a new driver is added. But most of the code is common
between fsl-edma and mcf-edma so it has been collected into a
separate common module fsl-edma-common (patch 1/3).
Signed-off-by: Angelo Dureghello <angelo@sysam.it>
Tested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/dma-mcf-edma.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/linux/platform_data/dma-mcf-edma.h b/include/linux/platform_data/dma-mcf-edma.h new file mode 100644 index 000000000000..d718ccfa3421 --- /dev/null +++ b/include/linux/platform_data/dma-mcf-edma.h | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 2 | /* | ||
| 3 | * Freescale eDMA platform data, ColdFire SoC's family. | ||
| 4 | * | ||
| 5 | * Copyright (c) 2017 Angelo Dureghello <angelo@sysam.it> | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License version 2 as | ||
| 9 | * published by the Free Software Foundation. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #ifndef __LINUX_PLATFORM_DATA_MCF_EDMA_H__ | ||
| 18 | #define __LINUX_PLATFORM_DATA_MCF_EDMA_H__ | ||
| 19 | |||
| 20 | struct dma_slave_map; | ||
| 21 | |||
| 22 | bool mcf_edma_filter_fn(struct dma_chan *chan, void *param); | ||
| 23 | |||
| 24 | #define MCF_EDMA_FILTER_PARAM(ch) ((void *)ch) | ||
| 25 | |||
| 26 | /** | ||
| 27 | * struct mcf_edma_platform_data - platform specific data for eDMA engine | ||
| 28 | * | ||
| 29 | * @ver The eDMA module version. | ||
| 30 | * @dma_channels The number of eDMA channels. | ||
| 31 | */ | ||
| 32 | struct mcf_edma_platform_data { | ||
| 33 | int dma_channels; | ||
| 34 | const struct dma_slave_map *slave_map; | ||
| 35 | int slavecnt; | ||
| 36 | }; | ||
| 37 | |||
| 38 | #endif /* __LINUX_PLATFORM_DATA_MCF_EDMA_H__ */ | ||
