1 /* 2 * Copyright 2024 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 #ifndef _FSL_TRDC_SOC_H_ 7 #define _FSL_TRDC_SOC_H_ 8 9 #include "fsl_common.h" 10 11 /*! 12 * @addtogroup trdc_soc 13 * @{ 14 */ 15 16 /******************************************************************************* 17 * Definitions 18 ******************************************************************************/ 19 /* Component ID definition, used by tools. */ 20 #ifndef FSL_COMPONENT_ID 21 #define FSL_COMPONENT_ID "platform.drivers.trdc_soc" 22 #endif 23 24 /*! @name Driver version */ 25 /*@{*/ 26 /*! @brief Driver version 2.0.0. */ 27 #define FSL_TRDC_SOC_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) 28 /*@}*/ 29 30 #define TRDC_MBC_MEM_GLBCFG_NBLKS_MASK 0x000003FFUL 31 #define TRDC_MBC_MEM_GLBCFG_SIZE_LOG2_MASK 0x001F0000UL 32 #define TRDC_MBC_MEM_GLBCFG_SIZE_LOG2_SHIFT 16U 33 #define TRDC_MBC_NSE_BLK_CLR_ALL_MEMSEL(x) (((uint32_t)(x) & 0xFUL) << 8U) 34 #define TRDC_MBC_NSE_BLK_CLR_ALL_DID_SEL(x) (((uint32_t)(x) & 0x1UL) << 16U) 35 36 /*!@brief TRDC feature */ 37 #define FSL_FEATURE_TRDC_DOMAIN_COUNT 1 38 39 /*!@brief TRDC base address convert macro */ 40 #define TRDC_MBC_COUNT 1 41 #define TRDC_MBC_OFFSET(x) 0x0000 /* MBC register offset in TRDC_Type structure. */ 42 #define TRDC_MBC_ARRAY_STEP 0U /* Offset between two MBC control block, useless if there is only one. */ 43 44 /******************************************************************************* 45 * API 46 ******************************************************************************/ 47 48 #ifdef __cplusplus 49 extern "C" { 50 #endif 51 52 #ifdef __cplusplus 53 } 54 #endif 55 56 /*! 57 * @} 58 */ 59 60 #endif /* _FSL_TRDC_SOC_H_ */ 61