diff options
| author | Olof Johansson <olof@lixom.net> | 2013-05-27 23:09:53 -0400 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2013-05-27 23:10:04 -0400 |
| commit | 6f39ef575df368ed77fcaa2f1d0f28191c7414fc (patch) | |
| tree | e64a261770acf65a32e498f5b8f1f8323e14fbb7 /include/linux/platform_data | |
| parent | e4aa937ec75df0eea0bee03bffa3303ad36c986b (diff) | |
| parent | 95e4bf98520c9a92cd1b87d12c89e8c60c5fe2ca (diff) | |
Merge tag 'ux500-dma40-for-arm-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson into next/drivers
From Linus Walleij:
This is a set of patches from Lee Jones to start converting
the ux500 to fetch DMA channels from the device tree:
- Full DT support and channel mapping in the DMA40 driver
- Dropping of platform data for migrated devices on the DT
boot path.
* tag 'ux500-dma40-for-arm-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson: (36 commits)
ARM: ux500: Register Cryp and Hash platform drivers on Snowball
crypto: ux500/[cryp|hash] - Show successful start-up in the bootlog
ARM: ux500: Stop passing Cryp DMA channel config information though pdata
crypto: ux500/cryp - Set DMA configuration though dma_slave_config()
crypto: ux500/cryp - Prepare clock before enabling it
ARM: ux500: Stop passing Hash DMA channel config information though pdata
crypto: ux500/hash - Set DMA configuration though dma_slave_config()
crypto: ux500/hash - Prepare clock before enabling it
ARM: ux500: Remove unnecessary attributes from DMA channel request pdata
dmaengine: ste_dma40: Correct copy/paste error
ARM: ux500: Remove DMA address look-up table
dmaengine: ste_dma40: Remove redundant address fetching function
dmaengine: ste_dma40: Only use addresses passed as configuration information
ARM: ux500: Stop passing UART's platform data for Device Tree boots
dmaengine: ste_dma40: Don't configure runtime configurable setup during allocate
dmaengine: ste_dma40: Remove unnecessary call to d40_phy_cfg()
dmaengine: ste_dma40: Separate Logical Global Interrupt Mask (GIM) unmasking
ARM: ux500: Pass remnant platform data though to DMA40 driver
dmaengine: ste_dma40: Supply full Device Tree parsing support
dmaengine: ste_dma40: Allow driver to be probe()able when DT is enabled
...
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/dma-ste-dma40.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/include/linux/platform_data/dma-ste-dma40.h b/include/linux/platform_data/dma-ste-dma40.h index 4b781014b0a0..288dc2420ee6 100644 --- a/include/linux/platform_data/dma-ste-dma40.h +++ b/include/linux/platform_data/dma-ste-dma40.h | |||
| @@ -86,7 +86,7 @@ enum stedma40_xfer_dir { | |||
| 86 | 86 | ||
| 87 | 87 | ||
| 88 | /** | 88 | /** |
| 89 | * struct stedma40_chan_cfg - dst/src channel configuration | 89 | * struct stedma40_half_channel_info - dst/src channel configuration |
| 90 | * | 90 | * |
| 91 | * @big_endian: true if the src/dst should be read as big endian | 91 | * @big_endian: true if the src/dst should be read as big endian |
| 92 | * @data_width: Data width of the src/dst hardware | 92 | * @data_width: Data width of the src/dst hardware |
| @@ -109,8 +109,7 @@ struct stedma40_half_channel_info { | |||
| 109 | * version 3+, i.e DB8500v2+ | 109 | * version 3+, i.e DB8500v2+ |
| 110 | * @mode: channel mode: physical, logical, or operation | 110 | * @mode: channel mode: physical, logical, or operation |
| 111 | * @mode_opt: options for the chosen channel mode | 111 | * @mode_opt: options for the chosen channel mode |
| 112 | * @src_dev_type: Src device type | 112 | * @dev_type: src/dst device type (driver uses dir to figure out which) |
| 113 | * @dst_dev_type: Dst device type | ||
| 114 | * @src_info: Parameters for dst half channel | 113 | * @src_info: Parameters for dst half channel |
| 115 | * @dst_info: Parameters for dst half channel | 114 | * @dst_info: Parameters for dst half channel |
| 116 | * @use_fixed_channel: if true, use physical channel specified by phy_channel | 115 | * @use_fixed_channel: if true, use physical channel specified by phy_channel |
| @@ -126,8 +125,7 @@ struct stedma40_chan_cfg { | |||
| 126 | bool realtime; | 125 | bool realtime; |
| 127 | enum stedma40_mode mode; | 126 | enum stedma40_mode mode; |
| 128 | enum stedma40_mode_opt mode_opt; | 127 | enum stedma40_mode_opt mode_opt; |
| 129 | int src_dev_type; | 128 | int dev_type; |
| 130 | int dst_dev_type; | ||
| 131 | struct stedma40_half_channel_info src_info; | 129 | struct stedma40_half_channel_info src_info; |
| 132 | struct stedma40_half_channel_info dst_info; | 130 | struct stedma40_half_channel_info dst_info; |
| 133 | 131 | ||
| @@ -138,13 +136,8 @@ struct stedma40_chan_cfg { | |||
| 138 | /** | 136 | /** |
| 139 | * struct stedma40_platform_data - Configuration struct for the dma device. | 137 | * struct stedma40_platform_data - Configuration struct for the dma device. |
| 140 | * | 138 | * |
| 141 | * @dev_len: length of dev_tx and dev_rx | ||
| 142 | * @dev_tx: mapping between destination event line and io address | 139 | * @dev_tx: mapping between destination event line and io address |
| 143 | * @dev_rx: mapping between source event line and io address | 140 | * @dev_rx: mapping between source event line and io address |
| 144 | * @memcpy: list of memcpy event lines | ||
| 145 | * @memcpy_len: length of memcpy | ||
| 146 | * @memcpy_conf_phy: default configuration of physical channel memcpy | ||
| 147 | * @memcpy_conf_log: default configuration of logical channel memcpy | ||
| 148 | * @disabled_channels: A vector, ending with -1, that marks physical channels | 141 | * @disabled_channels: A vector, ending with -1, that marks physical channels |
| 149 | * that are for different reasons not available for the driver. | 142 | * that are for different reasons not available for the driver. |
| 150 | * @soft_lli_chans: A vector, that marks physical channels will use LLI by SW | 143 | * @soft_lli_chans: A vector, that marks physical channels will use LLI by SW |
| @@ -159,13 +152,6 @@ struct stedma40_chan_cfg { | |||
| 159 | * for 'multiple of 4' channels, like 8. | 152 | * for 'multiple of 4' channels, like 8. |
| 160 | */ | 153 | */ |
| 161 | struct stedma40_platform_data { | 154 | struct stedma40_platform_data { |
| 162 | u32 dev_len; | ||
| 163 | const dma_addr_t *dev_tx; | ||
| 164 | const dma_addr_t *dev_rx; | ||
| 165 | int *memcpy; | ||
| 166 | u32 memcpy_len; | ||
| 167 | struct stedma40_chan_cfg *memcpy_conf_phy; | ||
| 168 | struct stedma40_chan_cfg *memcpy_conf_log; | ||
| 169 | int disabled_channels[STEDMA40_MAX_PHYS]; | 155 | int disabled_channels[STEDMA40_MAX_PHYS]; |
| 170 | int *soft_lli_chans; | 156 | int *soft_lli_chans; |
| 171 | int num_of_soft_lli_chans; | 157 | int num_of_soft_lli_chans; |
