diff options
author | Balint Dobszay <balint.dobszay@arm.com> | 2019-12-18 15:28:00 +0100 |
---|---|---|
committer | Madhukar Pappireddy <madhukar.pappireddy@arm.com> | 2020-05-15 10:05:06 -0500 |
commit | cbf9e84a193883f11a99b2f61417710a69e36e0d (patch) | |
tree | 32f98b78d2bd9dff38420117117044e4970058a0 /fdts | |
parent | f95dfc277749c53fe57934c8ac93a5fed933f1fa (diff) | |
download | arm-trusted-firmware-cbf9e84a193883f11a99b2f61417710a69e36e0d.tar.gz |
plat/arm/fvp: Support performing SDEI platform setup in runtime
This patch introduces dynamic configuration for SDEI setup and is supported
when the new build flag SDEI_IN_FCONF is enabled. Instead of using C arrays
and processing the configuration at compile time, the config is moved to
dts files. It will be retrieved at runtime during SDEI init, using the fconf
layer.
Change-Id: If5c35a7517ba00a9f258d7f3e7c8c20cee169a31
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Co-authored-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
Diffstat (limited to 'fdts')
-rw-r--r-- | fdts/fvp-base-gicv3-psci-common.dtsi | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/fdts/fvp-base-gicv3-psci-common.dtsi b/fdts/fvp-base-gicv3-psci-common.dtsi index fb73f6053..4a7b65658 100644 --- a/fdts/fvp-base-gicv3-psci-common.dtsi +++ b/fdts/fvp-base-gicv3-psci-common.dtsi @@ -4,6 +4,8 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include <services/sdei_flags.h> + /memreserve/ 0x80000000 0x00010000; / { @@ -36,6 +38,30 @@ max-pwr-lvl = <2>; }; +#if SDEI_IN_FCONF + firmware { + sdei { + compatible = "arm,sdei-1.0"; + method = "smc"; + private_event_count = <3>; + shared_event_count = <3>; + /* + * Each event descriptor has typically 3 fields: + * 1. Event number + * 2. Interrupt number the event is bound to or + * if event is dynamic, specified as SDEI_DYN_IRQ + * 3. Bit map of event flags + */ + private_events = <1000 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>, + <1001 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>, + <1002 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>; + shared_events = <2000 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>, + <2001 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>, + <2002 SDEI_DYN_IRQ SDEI_MAPF_DYNAMIC>; + }; + }; +#endif /* SDEI_IN_FCONF */ + cpus { #address-cells = <2>; #size-cells = <0>; |