From bb92b8d65d48621d668ca8480ba63768e39ae74d Mon Sep 17 00:00:00 2001 From: Laurentiu Mihalcea Date: Mon, 10 Apr 2023 15:08:01 +0300 Subject: [PATCH 1/2] app: boards: Add new board configuration for i.MX93 This commit introduces a new board configuration for i.MX93. Signed-off-by: Laurentiu Mihalcea --- app/boards/mimx93_evk_a55_sof.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 app/boards/mimx93_evk_a55_sof.conf diff --git a/app/boards/mimx93_evk_a55_sof.conf b/app/boards/mimx93_evk_a55_sof.conf new file mode 100644 index 000000000000..0452c6598b19 --- /dev/null +++ b/app/boards/mimx93_evk_a55_sof.conf @@ -0,0 +1,2 @@ +CONFIG_IMX93_A55=y +CONFIG_TRACE=n From e2624d4cd519d78e78bb5a8367433e2820ad3bf5 Mon Sep 17 00:00:00 2001 From: Laurentiu Mihalcea Date: Mon, 10 Apr 2023 15:14:31 +0300 Subject: [PATCH 2/2] 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 82ccb02020d1..8d2ff283f85e 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -309,6 +309,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