Skip to content

Commit aaf2f11

Browse files
LaurentiuM1234dbaluta
authored andcommitted
nxp: imx93: Switch to native Zephyr drivers and timer domain
Starting with this commit, i.MX93 now uses the timer domain in conjunction with the Zephyr native drivers. Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
1 parent 0441484 commit aaf2f11

File tree

5 files changed

+5
-14
lines changed

5 files changed

+5
-14
lines changed

app/boards/imx93_evk_mimx9352_a55.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ CONFIG_DMA_NXP_EDMA_ENABLE_HALFMAJOR_IRQ=y
2626
# needed because EDMA uses same interrupt for multiple
2727
# channels.
2828
CONFIG_SHARED_INTERRUPTS=y
29+
30+
CONFIG_ZEPHYR_NATIVE_DRIVERS=y

src/platform/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ config IMX93_A55
128128
select BUILD_OUTPUT_BIN
129129
select ZEPHYR_LOG
130130
select HOST_PTABLE
131-
select DMA_DOMAIN
132131
help
133132
Select if your target platform is imx93-compatible.
134133

src/platform/imx93_a55/platform.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,6 @@ int platform_init(struct sof *sof)
118118
if (ret < 0)
119119
return -ENODEV;
120120

121-
/* Initialize DMA domain */
122-
sof->platform_dma_domain = zephyr_dma_domain_init(&sof->dma_info->dma_array[0],
123-
1,
124-
PLATFORM_DEFAULT_CLOCK);
125-
zephyr_ll_scheduler_init(sof->platform_dma_domain);
126-
127121
/* Initialize IPC */
128122
ipc_init(sof);
129123

tools/topology/topology1/sof-imx93-wm8962.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ dnl period, priority, core, time_domain)
5858
DAI_ADD(sof/pipe-dai-playback.m4,
5959
1, SAI, 3, sai3-wm8962,
6060
PIPELINE_SOURCE_1, 2, s32le,
61-
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA)
61+
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)
6262

6363
# capture DAI is SAI1 using 2 periods
6464
# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0
6565
DAI_ADD(sof/pipe-dai-capture.m4,
6666
2, SAI, 3, sai3-wm8962,
6767
PIPELINE_SINK_2, 2, s32le,
68-
1000, 0, 0)
68+
1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER)
6969

7070

7171
# PCM Low Latency, id 0

zephyr/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -323,16 +323,12 @@ if (CONFIG_SOC_MIMX9352_A55)
323323
zephyr_library_sources(
324324
${SOF_PLATFORM_PATH}/imx93_a55/platform.c
325325
${SOF_PLATFORM_PATH}/imx93_a55/lib/clk.c
326-
${SOF_PLATFORM_PATH}/imx93_a55/lib/dma.c
327-
${SOF_PLATFORM_PATH}/imx93_a55/lib/dai.c
326+
lib/dma.c
328327
)
329328

330329
# Drivers
331330
zephyr_library_sources(
332-
${SOF_DRIVERS_PATH}/generic/dummy-dma.c
333331
${SOF_DRIVERS_PATH}/imx/ipc.c
334-
${SOF_DRIVERS_PATH}/imx/edma.c
335-
${SOF_DRIVERS_PATH}/imx/sai.c
336332
)
337333

338334
zephyr_library_sources(

0 commit comments

Comments
 (0)