Skip to content

Commit c532702

Browse files
mathieuchopstmaescolar
authored andcommitted
drivers: dma: dmamux_stm32: remove unused SO and RGO functions
Functions related to synchronization inputs and request generators were present in the DMAMUX driver, despite being completely unused. Remove them for compatibility with WB0 which lacks this hardware. Signed-off-by: Mathieu Choplain <[email protected]>
1 parent ade5e78 commit c532702

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

drivers/dma/dmamux_stm32.c

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -56,42 +56,6 @@ struct dmamux_stm32_config {
5656
const struct dmamux_stm32_channel *mux_channels;
5757
};
5858

59-
/*
60-
* LISTIFY is used to generate arrays with function pointers to check
61-
* and clear interrupt flags using LL functions
62-
*/
63-
#define DMAMUX_CHANNEL(i, _) LL_DMAMUX_CHANNEL_ ## i
64-
#define IS_ACTIVE_FLAG_SOX(i, _) LL_DMAMUX_IsActiveFlag_SO ## i
65-
#define CLEAR_FLAG_SOX(i, _) LL_DMAMUX_ClearFlag_SO ## i
66-
#define IS_ACTIVE_FLAG_RGOX(i, _) LL_DMAMUX_IsActiveFlag_RGO ## i
67-
#define CLEAR_FLAG_RGOX(i, _) LL_DMAMUX_ClearFlag_RGO ## i
68-
69-
uint32_t table_ll_channel[] = {
70-
LISTIFY(DT_INST_PROP(0, dma_channels), DMAMUX_CHANNEL, (,))
71-
};
72-
73-
#if !defined(CONFIG_SOC_SERIES_STM32G0X) && \
74-
!defined(CONFIG_SOC_SERIES_STM32C0X)
75-
#define dmamux_channel_typedef DMAMUX_Channel_TypeDef
76-
#else
77-
#define dmamux_channel_typedef const DMAMUX_Channel_TypeDef
78-
#endif
79-
uint32_t (*func_ll_is_active_so[])(dmamux_channel_typedef * DMAMUXx) = {
80-
LISTIFY(DT_INST_PROP(0, dma_channels), IS_ACTIVE_FLAG_SOX, (,))
81-
};
82-
83-
void (*func_ll_clear_so[])(dmamux_channel_typedef * DMAMUXx) = {
84-
LISTIFY(DT_INST_PROP(0, dma_channels), CLEAR_FLAG_SOX, (,))
85-
};
86-
87-
uint32_t (*func_ll_is_active_rgo[])(dmamux_channel_typedef * DMAMUXx) = {
88-
LISTIFY(DT_INST_PROP(0, dma_generators), IS_ACTIVE_FLAG_RGOX, (,))
89-
};
90-
91-
void (*func_ll_clear_rgo[])(dmamux_channel_typedef * DMAMUXx) = {
92-
LISTIFY(DT_INST_PROP(0, dma_generators), CLEAR_FLAG_RGOX, (,))
93-
};
94-
9559
typedef int (*dma_configure_fn)(const struct device *dev, uint32_t id, struct dma_config *config);
9660
typedef int (*dma_start_fn)(const struct device *dev, uint32_t id);
9761
typedef int (*dma_stop_fn)(const struct device *dev, uint32_t id);

0 commit comments

Comments
 (0)