1 /* 2 * Copyright 2019-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 #include "fsl_audiomix.h" 13 /******************************************************************************* 14 * Definitions 15 ******************************************************************************/ 16 /*! @brief The board name */ 17 #define BOARD_NAME "MIMX8MP-EVK" 18 #define MANUFACTURER_NAME "NXP" 19 #define BOARD_DOMAIN_ID (1U) 20 /* The UART to use for debug messages. */ 21 #define BOARD_DEBUG_UART_TYPE kSerialPort_Uart 22 #define BOARD_DEBUG_UART_BAUDRATE (115200U) 23 #define BOARD_DEBUG_UART_BASEADDR UART4_BASE 24 #define BOARD_DEBUG_UART_INSTANCE (4U) 25 #define BOARD_DEBUG_UART_CLK_FREQ \ 26 CLOCK_GetPllFreq(kCLOCK_SystemPll1Ctrl) / (CLOCK_GetRootPreDivider(kCLOCK_RootUart4)) / \ 27 (CLOCK_GetRootPostDivider(kCLOCK_RootUart4)) / 10 28 #define BOARD_UART_IRQ UART4_IRQn 29 #define BOARD_UART_IRQ_HANDLER UART4_IRQHandler 30 31 #define BOARD_GPC_BASEADDR GPC 32 #define BOARD_MU_IRQ MU1_M7_IRQn 33 34 #define BOARD_CODEC_I2C I2C3 35 #define BOARD_CODEC_I2C_INSTANCE (3U) 36 #define BOARD_CODEC_I2C_CLOCK_FREQ (16000000U) 37 38 /* Shared memory base for RPMsg communication. */ 39 #define VDEV0_VRING_BASE (0x55000000U) 40 #define RESOURCE_TABLE_OFFSET (0xFF000) 41 42 #if defined(__cplusplus) 43 extern "C" { 44 #endif /* __cplusplus */ 45 46 /******************************************************************************* 47 * API 48 ******************************************************************************/ 49 50 void BOARD_InitDebugConsole(void); 51 void BOARD_InitMemory(void); 52 void BOARD_RdcInit(void); 53 54 #if defined(__cplusplus) 55 } 56 #endif /* __cplusplus */ 57 58 #endif /* _BOARD_H_ */ 59