diff --git a/boards/arm64/imx8mm_evk/CMakeLists.txt b/boards/arm64/imx8mm_evk/CMakeLists.txt index 9881313609a..c04749f674f 100644 --- a/boards/arm64/imx8mm_evk/CMakeLists.txt +++ b/boards/arm64/imx8mm_evk/CMakeLists.txt @@ -1 +1,4 @@ # SPDX-License-Identifier: Apache-2.0 + +zephyr_library() +zephyr_library_sources(dummy.c) diff --git a/boards/arm64/imx8mm_evk/dummy.c b/boards/arm64/imx8mm_evk/dummy.c new file mode 100644 index 00000000000..a35d637c7ed --- /dev/null +++ b/boards/arm64/imx8mm_evk/dummy.c @@ -0,0 +1,35 @@ +/* + * Copyright 2021 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef CONFIG_UART_MCUX_IUART + +#define DT_DRV_COMPAT nxp_imx_iuart + +#include +#include +#include +#include +#include + +static int dummy_init(const struct device *dev) +{ + return 0; +} + +#define IUART_MCUX_INIT(n) \ + \ + DEVICE_DT_INST_DEFINE(n, \ + &dummy_init, \ + NULL, \ + NULL, \ + NULL, \ + PRE_KERNEL_1, \ + 0, \ + NULL); + +DT_INST_FOREACH_STATUS_OKAY(IUART_MCUX_INIT) + +#endif