diff options
| author | Vinod Koul <vkoul@kernel.org> | 2018-10-24 04:15:52 -0400 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2018-10-24 04:15:52 -0400 |
| commit | 9b01029dc093262c6ad7fde6940916f154168496 (patch) | |
| tree | 714cae26ac53b33af7d4aa0cea9bd29d5b1f1652 /include/linux/platform_data | |
| parent | 11b73fcf3a3aee7f70dc48eb4fb471a938dbf55e (diff) | |
| parent | 0e819e3564c0d79e296d3fc851bb4f78fda22ac2 (diff) | |
Merge branch 'topic/fsl' into for-linus
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__ */ | ||
