drivers: dma : stm32 with dmamux has a special offset

This new offset value in the dma config is made to
build the table of dma mux_channels with a dmamux.
Range depends on the nb of channels for selected dma instance

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2020-10-15 08:50:23 +02:00 committed by Anas Nashif
commit 720863217d
2 changed files with 12 additions and 6 deletions

View file

@ -36,6 +36,9 @@ struct dma_stm32_config {
bool support_m2m;
uint32_t base;
uint32_t max_streams;
#ifdef CONFIG_DMAMUX_STM32
uint8_t offset; /* position in the list of dmamux channel list */
#endif
struct dma_stm32_stream *streams;
};