drivers: display: stm32_ltdc: add support of framebuffer in psram
Add support of framebuffer in PSRAM memory. Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
This commit is contained in:
parent
e15312bdb5
commit
0da7671977
1 changed files with 3 additions and 1 deletions
|
@ -501,8 +501,10 @@ static DEVICE_API(display, stm32_ltdc_display_api) = {
|
|||
#define FRAME_BUFFER_SECTION __stm32_sdram1_section
|
||||
#elif DT_SAME_NODE(DT_INST_PHANDLE(0, ext_sdram), DT_NODELABEL(sdram2))
|
||||
#define FRAME_BUFFER_SECTION __stm32_sdram2_section
|
||||
#elif DT_SAME_NODE(DT_INST_PHANDLE(0, ext_sdram), DT_NODELABEL(psram))
|
||||
#define FRAME_BUFFER_SECTION __stm32_psram_section
|
||||
#else
|
||||
#error "LTDC ext-sdram property in device tree does not reference SDRAM1 or SDRAM2 node"
|
||||
#error "LTDC ext-sdram property in device tree does not reference SDRAM1 or SDRAM2 node or PSRAM node"
|
||||
#define FRAME_BUFFER_SECTION
|
||||
#endif /* DT_SAME_NODE(DT_INST_PHANDLE(0, ext_sdram), DT_NODELABEL(sdram1)) */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue