zephyr: CMakeLists.txt: Add support for building SOF for i.MX93

This commit introduces support in the CMakeLists.txt of Zephyr for
building SOF for i.MX93 platform.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
This commit is contained in:
Laurentiu Mihalcea 2023-04-10 15:14:31 +03:00 committed by Kai Vehmanen
parent aff453e4c8
commit 2b30188f1b
1 changed files with 24 additions and 0 deletions

View File

@ -310,6 +310,30 @@ if (CONFIG_SOC_SERIES_NXP_IMX8M)
set(PLATFORM "imx8m") set(PLATFORM "imx8m")
endif() endif()
if (CONFIG_SOC_SERIES_MIMX9_A55)
# Platform sources
zephyr_library_sources(
${SOF_PLATFORM_PATH}/imx93_a55/platform.c
${SOF_PLATFORM_PATH}/imx93_a55/lib/clk.c
${SOF_PLATFORM_PATH}/imx93_a55/lib/dma.c
${SOF_PLATFORM_PATH}/imx93_a55/lib/dai.c
)
# Drivers
zephyr_library_sources(
${SOF_DRIVERS_PATH}/generic/dummy-dma.c
${SOF_DRIVERS_PATH}/imx/ipc.c
${SOF_DRIVERS_PATH}/imx/edma.c
${SOF_DRIVERS_PATH}/imx/sai.c
)
zephyr_library_sources(
${SOF_SRC_PATH}/schedule/zephyr_ll.c
)
set(PLATFORM "imx93_a55")
endif()
# Building for native_posix-based whole-OS host emulator # Building for native_posix-based whole-OS host emulator
zephyr_library_sources_ifdef(CONFIG_ZEPHYR_POSIX zephyr_library_sources_ifdef(CONFIG_ZEPHYR_POSIX
${SOF_SRC_PATH}/schedule/zephyr_ll.c ${SOF_SRC_PATH}/schedule/zephyr_ll.c