diff options
author | M'boumba Cedric Madianga <cedric.madianga@gmail.com> | 2016-12-13 08:40:51 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-01-02 22:53:23 -0500 |
commit | 276b0046ff7765c1d42ed48c67b4b5f3b50ea461 (patch) | |
tree | 82e3cc1c95c60eebcd71de9d036e821ae9b64c2a | |
parent | dc808675104b920f2be1ac4bf1e9aa57680f0699 (diff) |
dmaengine: stm32-dma: Add max_burst support
This patch sets the max_burst value supported by the STM32 DMA
Signed-off-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/stm32-dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/stm32-dma.c b/drivers/dma/stm32-dma.c index 53b2ee79cc0e..fc9738e0f3a3 100644 --- a/drivers/dma/stm32-dma.c +++ b/drivers/dma/stm32-dma.c | |||
@@ -114,6 +114,7 @@ | |||
114 | #define STM32_DMA_MAX_CHANNELS 0x08 | 114 | #define STM32_DMA_MAX_CHANNELS 0x08 |
115 | #define STM32_DMA_MAX_REQUEST_ID 0x08 | 115 | #define STM32_DMA_MAX_REQUEST_ID 0x08 |
116 | #define STM32_DMA_MAX_DATA_PARAM 0x03 | 116 | #define STM32_DMA_MAX_DATA_PARAM 0x03 |
117 | #define STM32_DMA_MAX_BURST 16 | ||
117 | 118 | ||
118 | enum stm32_dma_width { | 119 | enum stm32_dma_width { |
119 | STM32_DMA_BYTE, | 120 | STM32_DMA_BYTE, |
@@ -1082,6 +1083,7 @@ static int stm32_dma_probe(struct platform_device *pdev) | |||
1082 | BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); | 1083 | BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); |
1083 | dd->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); | 1084 | dd->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); |
1084 | dd->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; | 1085 | dd->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; |
1086 | dd->max_burst = STM32_DMA_MAX_BURST; | ||
1085 | dd->dev = &pdev->dev; | 1087 | dd->dev = &pdev->dev; |
1086 | INIT_LIST_HEAD(&dd->channels); | 1088 | INIT_LIST_HEAD(&dd->channels); |
1087 | 1089 | ||