summaryrefslogtreecommitdiff
path: root/include/plat
diff options
context:
space:
mode:
authorWing Li <wingers@google.com>2023-01-26 18:33:43 -0800
committerWing Li <wingers@google.com>2023-03-23 19:27:19 -0700
commite75cc247c744d21e52f834a442bf1c26d0ab6161 (patch)
tree1b0086c3a17ab04d71014ed7046d64bc4e0d30d5 /include/plat
parent9a70e69e059863d7aec11883e6345b54058264e0 (diff)
downloadarm-trusted-firmware-e75cc247c744d21e52f834a442bf1c26d0ab6161.tar.gz
feat(fvp): enable support for PSCI OS-initiated mode
Change-Id: I4cd6d2bd7ec7f581bd525d5323a3b54e855e2e51 Signed-off-by: Wing Li <wingers@google.com>
Diffstat (limited to 'include/plat')
-rw-r--r--include/plat/arm/common/plat_arm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/plat/arm/common/plat_arm.h b/include/plat/arm/common/plat_arm.h
index 494e4705f..34f913bed 100644
--- a/include/plat/arm/common/plat_arm.h
+++ b/include/plat/arm/common/plat_arm.h
@@ -125,6 +125,12 @@ void arm_setup_romlib(void);
#define ARM_LOCAL_PSTATE_WIDTH 4
#define ARM_LOCAL_PSTATE_MASK ((1 << ARM_LOCAL_PSTATE_WIDTH) - 1)
+#if PSCI_OS_INIT_MODE
+#define ARM_LAST_AT_PLVL_MASK (ARM_LOCAL_PSTATE_MASK << \
+ (ARM_LOCAL_PSTATE_WIDTH * \
+ (PLAT_MAX_PWR_LVL + 1)))
+#endif /* __PSCI_OS_INIT_MODE__ */
+
/* Macros to construct the composite power state */
/* Make composite power state parameter till power level 0 */