From 78ec02db4b2b329d292f989009f5368a22ec1df3 Mon Sep 17 00:00:00 2001 From: Alain Volmat Date: Tue, 17 Jun 2025 11:27:33 +0200 Subject: [PATCH] boards: stm32n6570_dk: enable SMH by default for LTDC/VIDEO By default, enable the SharedMultiHeap allocated buffer on stm32n6570_dk and enable its usage for LTDC or video buffers. Signed-off-by: Alain Volmat --- boards/st/stm32n6570_dk/Kconfig.defconfig | 26 ++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/boards/st/stm32n6570_dk/Kconfig.defconfig b/boards/st/stm32n6570_dk/Kconfig.defconfig index a8603ac66f6..8740d9bd511 100644 --- a/boards/st/stm32n6570_dk/Kconfig.defconfig +++ b/boards/st/stm32n6570_dk/Kconfig.defconfig @@ -12,19 +12,35 @@ config NET_L2_ETHERNET endif # NETWORKING -if DISPLAY +if DISPLAY || VIDEO +# MEMC needs to be enabled in order to store +# display frame buffer to external PSRAM +config MEMC + default y +# Rely on Multi-Heap / Shared-Multi-Heap for PSRAM access +config MULTI_HEAP + default y +config SHARED_MULTI_HEAP + default y +endif # DISPLAY || VIDEO + +if DISPLAY config INPUT default y config I2C_STM32_V2_TIMING default y if INPUT -# MEMC needs to be enabled in order to store -# display frame buffer to external PSRAM -config MEMC +# Let LTDC use memory allocated via SMH +config STM32_LTDC_FB_USE_SHARED_MULTI_HEAP default y - endif # DISPLAY +if VIDEO +# Let video framework use memory allocated via SMH +config VIDEO_BUFFER_USE_SHARED_MULTI_HEAP + default y +endif # VIDEO + endif # BOARD_STM32N6570_DK