-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
…djbw/async_tx * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx: (48 commits) DMAENGINE: move COH901318 to arch_initcall dma: imx-dma: fix signedness bug dma/timberdale: simplify conditional ste_dma40: remove channel_type ste_dma40: remove enum for endianess ste_dma40: remove TIM_FOR_LINK option ste_dma40: move mode_opt to separate config ste_dma40: move channel mode to a separate field ste_dma40: move priority to separate field ste_dma40: add variable to indicate valid dma_cfg async_tx: make async_tx channel switching opt-in move async raid6 test to lib/Kconfig.debug dmaengine: Add Freescale i.MX1/21/27 DMA driver intel_mid_dma: change the slave interface intel_mid_dma: fix the WARN_ONs intel_mid_dma: Add sg list support to DMA driver intel_mid_dma: Allow DMAC2 to share interrupt intel_mid_dma: Allow IRQ sharing intel_mid_dma: Add runtime PM support DMAENGINE: define a dummy filter function for ste_dma40 ...
- Loading branch information
Showing
25 changed files
with
5,716 additions
and
1,159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* Copyright 2004-2009 Freescale Semiconductor, Inc. All Rights Reserved. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#ifndef __ASM_ARCH_MXC_DMA_H__ | ||
#define __ASM_ARCH_MXC_DMA_H__ | ||
|
||
#include <linux/scatterlist.h> | ||
#include <linux/device.h> | ||
#include <linux/dmaengine.h> | ||
|
||
/* | ||
* This enumerates peripheral types. Used for SDMA. | ||
*/ | ||
enum sdma_peripheral_type { | ||
IMX_DMATYPE_SSI, /* MCU domain SSI */ | ||
IMX_DMATYPE_SSI_SP, /* Shared SSI */ | ||
IMX_DMATYPE_MMC, /* MMC */ | ||
IMX_DMATYPE_SDHC, /* SDHC */ | ||
IMX_DMATYPE_UART, /* MCU domain UART */ | ||
IMX_DMATYPE_UART_SP, /* Shared UART */ | ||
IMX_DMATYPE_FIRI, /* FIRI */ | ||
IMX_DMATYPE_CSPI, /* MCU domain CSPI */ | ||
IMX_DMATYPE_CSPI_SP, /* Shared CSPI */ | ||
IMX_DMATYPE_SIM, /* SIM */ | ||
IMX_DMATYPE_ATA, /* ATA */ | ||
IMX_DMATYPE_CCM, /* CCM */ | ||
IMX_DMATYPE_EXT, /* External peripheral */ | ||
IMX_DMATYPE_MSHC, /* Memory Stick Host Controller */ | ||
IMX_DMATYPE_MSHC_SP, /* Shared Memory Stick Host Controller */ | ||
IMX_DMATYPE_DSP, /* DSP */ | ||
IMX_DMATYPE_MEMORY, /* Memory */ | ||
IMX_DMATYPE_FIFO_MEMORY,/* FIFO type Memory */ | ||
IMX_DMATYPE_SPDIF, /* SPDIF */ | ||
IMX_DMATYPE_IPU_MEMORY, /* IPU Memory */ | ||
IMX_DMATYPE_ASRC, /* ASRC */ | ||
IMX_DMATYPE_ESAI, /* ESAI */ | ||
}; | ||
|
||
enum imx_dma_prio { | ||
DMA_PRIO_HIGH = 0, | ||
DMA_PRIO_MEDIUM = 1, | ||
DMA_PRIO_LOW = 2 | ||
}; | ||
|
||
struct imx_dma_data { | ||
int dma_request; /* DMA request line */ | ||
enum sdma_peripheral_type peripheral_type; | ||
int priority; | ||
}; | ||
|
||
static inline int imx_dma_is_ipu(struct dma_chan *chan) | ||
{ | ||
return !strcmp(dev_name(chan->device->dev), "ipu-core"); | ||
} | ||
|
||
static inline int imx_dma_is_general_purpose(struct dma_chan *chan) | ||
{ | ||
return !strcmp(dev_name(chan->device->dev), "imx-sdma") || | ||
!strcmp(dev_name(chan->device->dev), "imx-dma"); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef __MACH_MXC_SDMA_H__ | ||
#define __MACH_MXC_SDMA_H__ | ||
|
||
/** | ||
* struct sdma_platform_data - platform specific data for SDMA engine | ||
* | ||
* @sdma_version The version of this SDMA engine | ||
* @cpu_name used to generate the firmware name | ||
* @to_version CPU Tape out version | ||
*/ | ||
struct sdma_platform_data { | ||
int sdma_version; | ||
char *cpu_name; | ||
int to_version; | ||
}; | ||
|
||
#endif /* __MACH_MXC_SDMA_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.