drivers: dma: stm32 dma of type V1 with mux
This is the configuration of the stm32h723 where the dma1 & dma2 of type V1 with a MUX. Even if DMA is of type V1, the 'feature' does not exist with DMAMUX Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
dba4e63c41
commit
c4161024c4
2 changed files with 12 additions and 2 deletions
|
@ -19,12 +19,19 @@
|
|||
#define STM32_DMA_SLOT(id, dir, slot) DT_INST_DMAS_CELL_BY_NAME(id, dir, slot)
|
||||
#endif
|
||||
|
||||
#define STM32_DMA_CHANNEL_CONFIG(id, dir) \
|
||||
DT_INST_DMAS_CELL_BY_NAME(id, dir, channel_config)
|
||||
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32_dma_v2) || \
|
||||
DT_HAS_COMPAT_STATUS_OKAY(st_stm32_dma_v2bis) || \
|
||||
DT_HAS_COMPAT_STATUS_OKAY(st_stm32_dmamux)
|
||||
#define STM32_DMA_FEATURES(id, dir) 0
|
||||
#else
|
||||
#define STM32_DMA_FEATURES(id, dir) \
|
||||
DT_INST_DMAS_CELL_BY_NAME(id, dir, features)
|
||||
#endif
|
||||
|
||||
#define STM32_DMA_CTLR(id, dir) \
|
||||
DT_INST_DMAS_CTLR_BY_NAME(id, dir)
|
||||
#define STM32_DMA_CHANNEL_CONFIG(id, dir) \
|
||||
DT_INST_DMAS_CELL_BY_NAME(id, dir, channel_config)
|
||||
|
||||
/* macros for channel-config */
|
||||
/* direction defined on bits 6-7 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue