/* * Copyright (c) 2019-2023 Arm Limited. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __TARGET_CFG_H__ #define __TARGET_CFG_H__ #include "tfm_plat_defs.h" #define TFM_DRIVER_STDIO Driver_USART0 #define NS_DRIVER_STDIO Driver_USART0 /** * \brief Defines the indexes of Subordinate Peripheral Protection Controller * registers. */ typedef enum { PPC_SP_DO_NOT_CONFIGURE = -1, PPC_SP_MAIN0 = 0, PPC_SP_MAIN_EXP0 = 1, PPC_SP_MAIN_EXP1 = 2, PPC_SP_MAIN_EXP2 = 3, PPC_SP_MAIN_EXP3 = 4, PPC_SP_PERIPH0 = 5, PPC_SP_PERIPH1 = 6, PPC_SP_PERIPH_EXP0 = 7, PPC_SP_PERIPH_EXP1 = 8, PPC_SP_PERIPH_EXP2 = 9, PPC_SP_PERIPH_EXP3 = 10, } ppc_bank_t; /** * \brief Enumerates all the CCA and NON-CCA debug zones for the platform. */ enum tfm_debug_zones { TFM_PLAT_NO_DEBUG = 0, TFM_PLAT_CCA_ADAC_ZONE1, TFM_PLAT_CCA_ADAC_ZONE2, /* !!! If new zones are added, please update TFM_PLAT_LAST_CCA_ADAC_ZONE */ TFM_PLAT_LAST_CCA_ADAC_ZONE = TFM_PLAT_CCA_ADAC_ZONE2, TFM_PLAT_NON_CCA_DEBUG_ZONE1, TFM_PLAT_NON_CCA_DEBUG_ZONE2, TFM_PLAT_NON_CCA_DEBUG_ZONE3, TFM_PLAT_NON_CCA_DEBUG_ZONE4, TFM_PLAT_MAX_NUM_DEBUG_ZONES }; /** * \brief Initialize the DMA devices and channels. * * \return Returns values as specified by the \ref tfm_plat_err_t */ enum tfm_plat_err_t dma_init_cfg(void); #endif /* __TARGET_CFG_H__ */