Skip to content

Commit 11ad6f1

Browse files
andyrossnashif
authored andcommitted
xtensa: Add mt8195_adsp toolchain
Yet another Xtensa SOC for the SDK. Mostly the same as the other LX cores, but different enough to not be able to share code. (No MULUH instruction on this model, which breaks on compiler-generated 64 bit multiplies). Signed-off-by: Andy Ross <andyross@google.com>
1 parent 4f1ac49 commit 11ad6f1

File tree

15 files changed

+216983
-1
lines changed

15 files changed

+216983
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ on:
5656
- xtensa-espressif_esp32s3_zephyr-elf
5757
- xtensa-intel_ace15_mtpm_zephyr-elf
5858
- xtensa-intel_tgl_adsp_zephyr-elf
59+
- xtensa-mt8195_adsp_zephyr-elf
5960
- xtensa-nxp_imx_adsp_zephyr-elf
6061
- xtensa-nxp_imx8m_adsp_zephyr-elf
6162
- xtensa-nxp_rt500_adsp_zephyr-elf
@@ -166,6 +167,7 @@ jobs:
166167
xtensa-espressif_esp32s3_zephyr-elf) build_target_xtensa_espressif_esp32s3_zephyr_elf="y";;
167168
xtensa-intel_ace15_mtpm_zephyr-elf) build_target_xtensa_intel_ace15_mtpm_zephyr_elf="y";;
168169
xtensa-intel_tgl_adsp_zephyr-elf) build_target_xtensa_intel_tgl_adsp_zephyr_elf="y";;
170+
xtensa-mt8195_adsp_zephyr-elf) build_target_xtensa_mt8195_adsp_zephyr_elf="y";;
169171
xtensa-nxp_imx_adsp_zephyr-elf) build_target_xtensa_nxp_imx_adsp_zephyr_elf="y";;
170172
xtensa-nxp_imx8m_adsp_zephyr-elf) build_target_xtensa_nxp_imx8m_adsp_zephyr_elf="y";;
171173
xtensa-nxp_rt500_adsp_zephyr-elf) build_target_xtensa_nxp_rt500_adsp_zephyr_elf="y";;
@@ -204,6 +206,7 @@ jobs:
204206
build_target_xtensa_espressif_esp32s3_zephyr_elf="y"
205207
build_target_xtensa_intel_ace15_mtpm_zephyr_elf="y"
206208
build_target_xtensa_intel_tgl_adsp_zephyr_elf="y"
209+
build_target_xtensa_mt8195_adsp_zephyr_elf="y"
207210
build_target_xtensa_nxp_imx_adsp_zephyr_elf="y"
208211
build_target_xtensa_nxp_imx8m_adsp_zephyr_elf="y"
209212
build_target_xtensa_nxp_rt500_adsp_zephyr_elf="y"
@@ -282,6 +285,7 @@ jobs:
282285
[ "${build_target_xtensa_espressif_esp32s3_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-espressif_esp32s3_zephyr-elf",'
283286
[ "${build_target_xtensa_intel_ace15_mtpm_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-intel_ace15_mtpm_zephyr-elf",'
284287
[ "${build_target_xtensa_intel_tgl_adsp_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-intel_tgl_adsp_zephyr-elf",'
288+
[ "${build_target_xtensa_mt8195_adsp_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-mt8195_adsp_zephyr-elf",'
285289
[ "${build_target_xtensa_nxp_imx_adsp_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-nxp_imx_adsp_zephyr-elf",'
286290
[ "${build_target_xtensa_nxp_imx8m_adsp_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-nxp_imx8m_adsp_zephyr-elf",'
287291
[ "${build_target_xtensa_nxp_rt500_adsp_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-nxp_rt500_adsp_zephyr-elf",'
@@ -1542,6 +1546,9 @@ jobs:
15421546
xtensa-intel_tgl_adsp_zephyr-elf)
15431547
PLATFORM_ARGS+="-p intel_adsp_cavs25 "
15441548
;;
1549+
xtensa-mt8195_adsp_zephyr-elf)
1550+
PLATFORM_ARGS+="-p mt8195_adsp "
1551+
;;
15451552
xtensa-nxp_imx_adsp_zephyr-elf)
15461553
PLATFORM_ARGS+="-p nxp_adsp_imx8 "
15471554
;;

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The toolchains for the following target architectures are supported:
1616
- x86 (32-bit and 64-bit)
1717
- Xtensa (sample_controller, intel_ace15_mtpm, intel_tgl_adsp,
1818
nxp_imx_adsp, nxp_imx8m_adsp, nxp_rt500_adsp, espressif_esp32, espressif_esp32s2,
19-
espressif_esp32s3)
19+
espressif_esp32s3, mt8195_adsp)
2020

2121
The following host tools are available as part of the Zephyr SDK:
2222

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CT_CONFIG_VERSION="3"
2+
CT_EXPERIMENTAL=y
3+
CT_OVERLAY_LOCATION="overlays"
4+
CT_OVERLAY_NAME="mtk_mt8195"
5+
CT_ARCH_XTENSA=y
6+
CT_XTENSA_CUSTOM=y
7+
CT_TARGET_VENDOR="mtk_mt8195_zephyr"
8+
CT_TARGET_CFLAGS="-ftls-model=local-exec"
9+
CT_CC_GCC_CONFIG_TLS=n
10+
CT_GDB_CROSS_EXTRA_CONFIG_ARRAY="--enable-xtensa-use-target-regnum --disable-xtensa-remote-g-packet"

0 commit comments

Comments
 (0)