1 /*
2  * Copyright 2017-2020 NXP
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #ifndef _BOARD_H_
9 #define _BOARD_H_
10 #include "clock_config.h"
11 #include "fsl_clock.h"
12 /*******************************************************************************
13  * Definitions
14  ******************************************************************************/
15 /*! @brief The board name */
16 #define BOARD_NAME        "MIMX8MQ-EVK"
17 #define MANUFACTURER_NAME "NXP"
18 #define BOARD_DOMAIN_ID   (1)
19 /* The UART to use for debug messages. */
20 #define BOARD_DEBUG_UART_TYPE     kSerialPort_Uart
21 #define BOARD_DEBUG_UART_BAUDRATE 115200u
22 #define BOARD_DEBUG_UART_BASEADDR UART2_BASE
23 #define BOARD_DEBUG_UART_INSTANCE 2U
24 #define BOARD_DEBUG_UART_CLK_FREQ                                                           \
25     CLOCK_GetPllFreq(kCLOCK_SystemPll1Ctrl) / (CLOCK_GetRootPreDivider(kCLOCK_RootUart2)) / \
26         (CLOCK_GetRootPostDivider(kCLOCK_RootUart2)) / 10
27 #define BOARD_UART_IRQ         UART2_IRQn
28 #define BOARD_UART_IRQ_HANDLER UART2_IRQHandler
29 
30 /* Shared memory base for RPMsg communication. */
31 #define VDEV0_VRING_BASE      (0xB8000000U)
32 #define RESOURCE_TABLE_OFFSET (0xFF000)
33 
34 #if defined(__cplusplus)
35 extern "C" {
36 #endif /* __cplusplus */
37 
38 /*******************************************************************************
39  * API
40  ******************************************************************************/
41 
42 void BOARD_InitDebugConsole(void);
43 void BOARD_InitMemory(void);
44 void BOARD_RdcInit(void);
45 
46 #if defined(__cplusplus)
47 }
48 #endif /* __cplusplus */
49 
50 #endif /* _BOARD_H_ */
51