aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMadhukar Pappireddy <madhukar.pappireddy@arm.com>2020-06-02 09:26:30 -0500
committerMadhukar Pappireddy <madhukar.pappireddy@arm.com>2020-06-09 19:01:14 +0000
commit452d5e5ef11271df6ef8480eed900252fd330f10 (patch)
treeaf3ae3d92365d4253cc2bb71572c4ab24e2bdfa8 /include
parent16af48e4cd4d99ccb8818c6f580b8184198ba0fe (diff)
downloadplatform_external_arm-trusted-firmware-452d5e5ef11271df6ef8480eed900252fd330f10.tar.gz
platform_external_arm-trusted-firmware-452d5e5ef11271df6ef8480eed900252fd330f10.tar.bz2
platform_external_arm-trusted-firmware-452d5e5ef11271df6ef8480eed900252fd330f10.zip
plat/fvp: Add support for dynamic description of secure interrupts
Using the fconf framework, the Group 0 and Group 1 secure interrupt descriptors are moved to device tree and retrieved in runtime. This feature is enabled by the build flag SEC_INT_DESC_IN_FCONF. Change-Id: I360c63a83286c7ecc2426cd1ff1b4746d61e633c Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
Diffstat (limited to 'include')
-rw-r--r--include/plat/arm/common/fconf_sec_intr_config.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/plat/arm/common/fconf_sec_intr_config.h b/include/plat/arm/common/fconf_sec_intr_config.h
new file mode 100644
index 000000000..5d6b594a9
--- /dev/null
+++ b/include/plat/arm/common/fconf_sec_intr_config.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef FCONF_SEC_INTR_CONFIG_H
+#define FCONF_SEC_INTR_CONFIG_H
+
+#include <lib/fconf/fconf.h>
+
+#include <platform_def.h>
+
+#define hw_config__sec_intr_prop_getter(id) sec_intr_prop.id
+
+#define SEC_INT_COUNT_MAX U(15)
+
+struct sec_intr_prop_t {
+ interrupt_prop_t descriptor[SEC_INT_COUNT_MAX];
+ uint32_t count;
+};
+
+int fconf_populate_sec_intr_config(uintptr_t config);
+
+extern struct sec_intr_prop_t sec_intr_prop;
+
+#endif /* FCONF_SEC_INTR_CONFIG_H */