Skip to content

Commit

Permalink
zephyr: CMakeLists.txt: Add support for building SOF for i.MX93
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
LaurentiuM1234 authored and kv2019i committed Apr 25, 2023
1 parent aff453e commit 2b30188
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,30 @@ if (CONFIG_SOC_SERIES_NXP_IMX8M)
set(PLATFORM "imx8m")
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
zephyr_library_sources_ifdef(CONFIG_ZEPHYR_POSIX
${SOF_SRC_PATH}/schedule/zephyr_ll.c
Expand Down

0 comments on commit 2b30188

Please sign in to comment.