From ca72c403a32de995d1cdabfd7ff897aa4972aa1c Mon Sep 17 00:00:00 2001 From: Laurentiu Mihalcea Date: Wed, 14 Feb 2024 16:18:13 +0200 Subject: [PATCH] lib: dai: add entry for NXP's ESAI Add entry for NXP's ESAI IP inside the "zephyr_dev" array. What the entry does is it fetches all "struct device"s for ESAI nodes marked as "okay". Signed-off-by: Laurentiu Mihalcea --- src/lib/dai.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/dai.c b/src/lib/dai.c index e056c873a..143047aeb 100644 --- a/src/lib/dai.c +++ b/src/lib/dai.c @@ -148,6 +148,9 @@ const struct device *zephyr_dev[] = { #if CONFIG_DAI_NXP_SAI DT_FOREACH_STATUS_OKAY(nxp_dai_sai, GET_DEVICE_LIST) #endif +#if CONFIG_DAI_NXP_ESAI + DT_FOREACH_STATUS_OKAY(nxp_dai_esai, GET_DEVICE_LIST) +#endif }; static const struct device *dai_get_zephyr_device(uint32_t type, uint32_t index)