board: arm64: imx8mm_evk: add a dummy file

Because we currently use RAM_CONSOLE for now, and there is actually
no device in the build, so there is twister build failure,
add a dummy file to avoid build failure.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Peng Fan 2021-12-14 13:47:26 +08:00 committed by Maureen Helm
commit 30d2c17fb8
2 changed files with 38 additions and 0 deletions

View file

@ -1 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(dummy.c)

View file

@ -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 <device.h>
#include <drivers/uart.h>
#include <drivers/clock_control.h>
#include <errno.h>
#include <soc.h>
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