Skip to content

Commit 8f5b80f

Browse files
committed
boards: witte: linum: enable SDRAM support
To allow the display framebuffers to be placed at the external RAM memory available on the Linum board. Signed-off-by: Felipe Neves <[email protected]>
1 parent 7236584 commit 8f5b80f

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

boards/witte/linum/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Copyright (c) 2025 Felipe Neves
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
zephyr_include_directories(.)
5+
6+
zephyr_linker_sources_ifdef(CONFIG_MEMC
7+
SECTIONS sdram.ld)

boards/witte/linum/sdram.ld

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) 2025 Felipe Neves.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
#if DT_NODE_HAS_STATUS(DT_NODELABEL(sdram1), okay)
7+
GROUP_START(SDRAM1)
8+
9+
SECTION_PROLOGUE(_STM32_SDRAM1_SECTION_NAME, (NOLOAD),)
10+
{
11+
*(.lvgl_buf)
12+
*(.lvgl_heap)
13+
} GROUP_LINK_IN(SDRAM1)
14+
15+
GROUP_END(SDRAM1)
16+
#endif

0 commit comments

Comments
 (0)