soc: st: stm32: set default SMH attribute for LTDC/video buffers
The SMH attribute when using the XSPI PSRAM is set to EXTERNAL (2) within the driver hence set default for both LTDC and video buffer SMH attribute to 2 if all conditions are validated. Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
This commit is contained in:
parent
b1e55bd342
commit
7640180e7c
1 changed files with 13 additions and 0 deletions
|
@ -85,4 +85,17 @@ config FLASH_BASE_ADDRESS
|
|||
if $(DT_FLASH_PARENT_IS_XSPI)
|
||||
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_FLASH))
|
||||
|
||||
# The XSPI PSRAM driver creates a SMH region with attribute SMH_REG_ATTR_EXTERNAL (2)
|
||||
# If applicable set the LTDC / VIDEO_BUFFER SMH attribute to SMH_REG_ATTR_EXTERNAL (2)
|
||||
# in order to be able to allocate from the XSPI PSRAM
|
||||
if MEMC_STM32_XSPI_PSRAM && SHARED_MULTI_HEAP
|
||||
|
||||
config STM32_LTDC_FB_SMH_ATTRIBUTE
|
||||
default 2 if STM32_LTDC_FB_USE_SHARED_MULTI_HEAP
|
||||
|
||||
config VIDEO_BUFFER_SMH_ATTRIBUTE
|
||||
default 2 if VIDEO_BUFFER_USE_SHARED_MULTI_HEAP
|
||||
|
||||
endif # MEMC_STM32_XSPI_PSRAM && SHARED_MULTI_HEAP
|
||||
|
||||
endif # SOC_FAMILY_STM32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue