Skip to content

Commit 0da7671

Browse files
hfruchet-stkartben
authored andcommitted
drivers: display: stm32_ltdc: add support of framebuffer in psram
Add support of framebuffer in PSRAM memory. Signed-off-by: Hugues Fruchet <[email protected]>
1 parent e15312b commit 0da7671

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/display/display_stm32_ltdc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,10 @@ static DEVICE_API(display, stm32_ltdc_display_api) = {
501501
#define FRAME_BUFFER_SECTION __stm32_sdram1_section
502502
#elif DT_SAME_NODE(DT_INST_PHANDLE(0, ext_sdram), DT_NODELABEL(sdram2))
503503
#define FRAME_BUFFER_SECTION __stm32_sdram2_section
504+
#elif DT_SAME_NODE(DT_INST_PHANDLE(0, ext_sdram), DT_NODELABEL(psram))
505+
#define FRAME_BUFFER_SECTION __stm32_psram_section
504506
#else
505-
#error "LTDC ext-sdram property in device tree does not reference SDRAM1 or SDRAM2 node"
507+
#error "LTDC ext-sdram property in device tree does not reference SDRAM1 or SDRAM2 node or PSRAM node"
506508
#define FRAME_BUFFER_SECTION
507509
#endif /* DT_SAME_NODE(DT_INST_PHANDLE(0, ext_sdram), DT_NODELABEL(sdram1)) */
508510

0 commit comments

Comments
 (0)