Skip to content

Commit 9fa13ef

Browse files
committed
build: Add support for building SOF on imx8mp with cm7
This builds SOF binary firmware for M7 core on i.MX8MP. Resulted firmware name is: sof-imx8m_cm7.ri Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
1 parent 2967033 commit 9fa13ef

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

scripts/xtensa-build-zephyr.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ class PlatformConfig:
217217
"hifi4_mscale_v2_0_2_prod",
218218
RIMAGE_KEY = "key param ignored by imx8m"
219219
),
220+
"imx8m_cm7" : PlatformConfig(
221+
"imx", "imx8mp_evk/mimx8ml8/m7/ddr",
222+
"", "", "", ""
223+
),
220224
"imx8ulp" : PlatformConfig(
221225
"imx", "imx8ulp_evk/mimx8ud7/adsp",
222226
f"RI-2023.11{xtensa_tools_version_postfix}",
@@ -1295,7 +1299,7 @@ def gzip_compress(fname, gzdst=None):
12951299
# Don't run sof_ri_info and ignore silently .ri files that don't have one.
12961300
RI_INFO_UNSUPPORTED = []
12971301

1298-
RI_INFO_UNSUPPORTED += ['imx8', 'imx8x', 'imx8m', 'imx8ulp', 'imx95']
1302+
RI_INFO_UNSUPPORTED += ['imx8', 'imx8x', 'imx8m', 'imx8m_cm7', 'imx8ulp', 'imx95']
12991303
RI_INFO_UNSUPPORTED += ['rn', 'acp_6_0']
13001304
RI_INFO_UNSUPPORTED += ['mt8186', 'mt8188', 'mt8195', 'mt8196', 'mt8365']
13011305

tools/rimage/config/imx8m_cm7.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version = [1, 0]
2+
3+
[adsp]
4+
name = "imx8m_cm7"
5+
6+
[[adsp.mem_zone]]
7+
type = "IRAM"
8+
base = "0x0000000"
9+
size = "0x2000"
10+
host_offset = "0x0"
11+
[[adsp.mem_zone]]
12+
type = "SRAM"
13+
base = "0x80000000"
14+
size = "0x100000"
15+
host_offset = "0x0"

0 commit comments

Comments
 (0)