From 8447952438fd56a3261451636121d9a22c7f7dcd Mon Sep 17 00:00:00 2001 From: Zhang Peng Date: Wed, 11 Oct 2023 13:41:53 +0800 Subject: [PATCH] zephyr: build: add support for imx8ulp Build SOF with Zephyr for i.MX8ULP platform. Signed-off-by: Zhang Peng --- zephyr/CMakeLists.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 892c1b994..2c7e78222 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -262,6 +262,34 @@ if (CONFIG_SOC_SERIES_NXP_IMX8M) set(PLATFORM "imx8m") endif() +if (CONFIG_SOC_SERIES_NXP_IMX8ULP) + zephyr_library_sources( + ${SOF_DRIVERS_PATH}/generic/dummy-dma.c + ${SOF_DRIVERS_PATH}/imx/edma.c + ${SOF_DRIVERS_PATH}/imx/sai.c + ${SOF_DRIVERS_PATH}/imx/ipc.c + ${SOF_DRIVERS_PATH}/imx/interrupt-generic.c + ) + + # Platform sources + zephyr_library_sources( + ${SOF_PLATFORM_PATH}/imx8ulp/platform.c + ${SOF_PLATFORM_PATH}/imx8ulp/lib/clk.c + ${SOF_PLATFORM_PATH}/imx8ulp/lib/dai.c + ${SOF_PLATFORM_PATH}/imx8ulp/lib/dma.c + ${SOF_PLATFORM_PATH}/imx8ulp/lib/memory.c + ) + + # SOF core infrastructure - runs on top of Zephyr + zephyr_library_sources( + ${SOF_SRC_PATH}/drivers/interrupt.c + ) + + zephyr_library_sources(${SOF_SRC_PATH}/schedule/zephyr_ll.c) + + set(PLATFORM "imx8ulp") +endif() + if (CONFIG_SOC_SERIES_MIMX9_A55) # Platform sources zephyr_library_sources(