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 <laurentiu.mihalcea@nxp.com>
This commit is contained in:
Laurentiu Mihalcea 2024-02-14 16:18:13 +02:00 committed by Liam Girdwood
parent 43422abe02
commit ca72c403a3
1 changed files with 3 additions and 0 deletions

View File

@ -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)