File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,17 @@ config STM32_LTDC_FB_NUM
56
56
config STM32_LTDC_FB_USE_SHARED_MULTI_HEAP
57
57
bool "Use shared multi heap for the display buffer"
58
58
59
+ config STM32_LTDC_FB_SMH_ATTRIBUTE
60
+ int "Shared multi heap attribute for the display buffer"
61
+ depends on STM32_LTDC_FB_USE_SHARED_MULTI_HEAP
62
+ default 0
63
+ range 0 2
64
+ help
65
+ Shared multi heap attribute for the display buffer:
66
+ 0: SMH_REG_ATTR_CACHEABLE
67
+ 1: SMH_REG_ATTR_NON_CACHEABLE
68
+ 2: SMH_REG_ATTR_EXTERNAL
69
+
59
70
config STM32_LTDC_DISABLE_FMC_BANK1
60
71
bool "Disable FMC bank1 for STM32F7/H7 series"
61
72
depends on SOC_SERIES_STM32H7X || SOC_SERIES_STM32F7X
Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ static int stm32_ltdc_init(const struct device *dev)
419
419
420
420
#if defined(CONFIG_STM32_LTDC_FB_USE_SHARED_MULTI_HEAP )
421
421
data -> frame_buffer = shared_multi_heap_aligned_alloc (
422
- CONFIG_VIDEO_BUFFER_SMH_ATTRIBUTE ,
422
+ CONFIG_STM32_LTDC_FB_SMH_ATTRIBUTE ,
423
423
32 ,
424
424
CONFIG_STM32_LTDC_FB_NUM * data -> frame_buffer_len );
425
425
You can’t perform that action at this time.
0 commit comments