aboutsummaryrefslogtreecommitdiff
path: root/platform/ext/target/arm/mps2/fvp_sse300/cmsis_drivers/config/cmsis_driver_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ext/target/arm/mps2/fvp_sse300/cmsis_drivers/config/cmsis_driver_config.h')
-rw-r--r--platform/ext/target/arm/mps2/fvp_sse300/cmsis_drivers/config/cmsis_driver_config.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/platform/ext/target/arm/mps2/fvp_sse300/cmsis_drivers/config/cmsis_driver_config.h b/platform/ext/target/arm/mps2/fvp_sse300/cmsis_drivers/config/cmsis_driver_config.h
new file mode 100644
index 0000000000..ba3639413d
--- /dev/null
+++ b/platform/ext/target/arm/mps2/fvp_sse300/cmsis_drivers/config/cmsis_driver_config.h
@@ -0,0 +1,51 @@
+/*
+ * Copyright (c) 2019-2020 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 __CMSIS_DRIVER_CONFIG_H__
+#define __CMSIS_DRIVER_CONFIG_H__
+
+#include "platform_description.h"
+#include "device_definition.h"
+#include "RTE_Device.h"
+
+#define UART0_CMSDK_DEV ARM_UART0_DEV_NS
+
+#ifdef RTE_USART1
+#ifdef SECURE_UART1
+#define UART1_CMSDK_DEV ARM_UART1_DEV_S
+#else
+#define UART1_CMSDK_DEV ARM_UART1_DEV_NS
+#endif
+#endif
+
+#define MPC_VM0_DEV MPC_VM0_DEV_S
+#define MPC_VM1_DEV MPC_VM1_DEV_S
+#define MPC_SSRAM2_DEV MPC_SSRAM2_DEV_S
+#define MPC_SSRAM3_DEV MPC_SSRAM3_DEV_S
+
+#define PPC_SSE300_MAIN0_DEV PPC_SSE300_MAIN0_DEV_S
+#define PPC_SSE300_MAIN_EXP0_DEV PPC_SSE300_MAIN_EXP0_DEV_S
+#define PPC_SSE300_MAIN_EXP1_DEV PPC_SSE300_MAIN_EXP1_DEV_S
+#define PPC_SSE300_MAIN_EXP2_DEV PPC_SSE300_MAIN_EXP2_DEV_S
+#define PPC_SSE300_MAIN_EXP3_DEV PPC_SSE300_MAIN_EXP3_DEV_S
+#define PPC_SSE300_PERIPH0_DEV PPC_SSE300_PERIPH0_DEV_S
+#define PPC_SSE300_PERIPH1_DEV PPC_SSE300_PERIPH1_DEV_S
+#define PPC_SSE300_PERIPH_EXP0_DEV PPC_SSE300_PERIPH_EXP0_DEV_S
+#define PPC_SSE300_PERIPH_EXP1_DEV PPC_SSE300_PERIPH_EXP1_DEV_S
+#define PPC_SSE300_PERIPH_EXP2_DEV PPC_SSE300_PERIPH_EXP2_DEV_S
+#define PPC_SSE300_PERIPH_EXP3_DEV PPC_SSE300_PERIPH_EXP3_DEV_S
+
+#endif /* __CMSIS_DRIVER_CONFIG_H__ */