drivers: dma: dmamux init needs k_malloc

The dmamux requires HEAP size definition, so that k_malloc
is valid. The HEAP size config is defined in the common for
any stm32 soc instead of specific to dma Kconfig

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2020-09-04 14:50:12 +02:00 committed by Maureen Helm
commit fafb72f8ed
2 changed files with 4 additions and 7 deletions

View file

@ -39,11 +39,4 @@ config DMA_STM32_SHARED_IRQS
help help
Enable shared IRQ support on devices where channels share 1 IRQ. Enable shared IRQ support on devices where channels share 1 IRQ.
if DMAMUX_STM32
config HEAP_MEM_POOL_SIZE
default 1024
endif # DMAMUX_STM32
endif # DMA_STM32 endif # DMA_STM32

View file

@ -75,6 +75,10 @@ if DMA
config DMA_STM32 config DMA_STM32
default y default y
config HEAP_MEM_POOL_SIZE
default 1024
depends on DMAMUX_STM32
endif # DMA endif # DMA
endif # SOC_FAMILY_STM32 endif # SOC_FAMILY_STM32