From 2b30188f1b6f8c3c7672e47142497d0a6d24dc6f Mon Sep 17 00:00:00 2001 From: Laurentiu Mihalcea Date: Mon, 10 Apr 2023 15:14:31 +0300 Subject: [PATCH] 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 --- zephyr/CMakeLists.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 8e8ec41bd..98809d604 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -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