Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Virtio MMIO device first implementation for stm32mp15 Soc #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
soc: stm32: add mmio memory region
We need to declare the shared memory region.

Signed-off-by: Nicolas Granger <[email protected]>
  • Loading branch information
Nicolas62x authored and arnopo committed Aug 23, 2023
commit 152532f556f85cb94645e71ab49974373c5fe7fe
17 changes: 15 additions & 2 deletions soc/arm/st_stm32/stm32mp1/linker.ld
Original file line number Diff line number Diff line change
@@ -9,15 +9,28 @@

#include <zephyr/arch/arm/aarch32/cortex_m/scripts/linker.ld>

MEMORY
{
LINKER_DT_REGIONS()

/* Used by and documented in include/linker/intlist.ld */
MMIO_REGION (wx) : ORIGIN = 0x10050000, LENGTH = 2K
}

SECTIONS
{
{

#include <zephyr/linker/rel-sections.ld>
#ifdef CONFIG_OPENAMP_RSC_TABLE

SECTION_PROLOGUE(.resource_table,, SUBALIGN(4))
{
KEEP(*(.resource_table*))
} GROUP_LINK_IN(ROMABLE_REGION)
} GROUP_LINK_IN(ROMABLE_REGION)
#endif

SECTION_PROLOGUE(.mmio_table,, SUBALIGN(4))
{
KEEP(*(.mmio_table*))
} GROUP_LINK_IN(MMIO_REGION)
}