Skip to content

Commit 2f2d469

Browse files
dwmw2oupton
authored andcommitted
firmware/psci: Add definitions for PSCI v1.3 specification
The v1.3 PSCI spec (https://developer.arm.com/documentation/den0022) adds the SYSTEM_OFF2 function. Add definitions for it and its hibernation type parameter. Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Miguel Luis <miguel.luis@oracle.com> Link: https://lore.kernel.org/r/20241019172459.2241939-2-dwmw2@infradead.org Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
1 parent 8e929cb commit 2f2d469

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

include/uapi/linux/psci.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
#define PSCI_1_1_FN_SYSTEM_RESET2 PSCI_0_2_FN(18)
6060
#define PSCI_1_1_FN_MEM_PROTECT PSCI_0_2_FN(19)
6161
#define PSCI_1_1_FN_MEM_PROTECT_CHECK_RANGE PSCI_0_2_FN(20)
62+
#define PSCI_1_3_FN_SYSTEM_OFF2 PSCI_0_2_FN(21)
6263

6364
#define PSCI_1_0_FN64_CPU_DEFAULT_SUSPEND PSCI_0_2_FN64(12)
6465
#define PSCI_1_0_FN64_NODE_HW_STATE PSCI_0_2_FN64(13)
@@ -68,6 +69,7 @@
6869

6970
#define PSCI_1_1_FN64_SYSTEM_RESET2 PSCI_0_2_FN64(18)
7071
#define PSCI_1_1_FN64_MEM_PROTECT_CHECK_RANGE PSCI_0_2_FN64(20)
72+
#define PSCI_1_3_FN64_SYSTEM_OFF2 PSCI_0_2_FN64(21)
7173

7274
/* PSCI v0.2 power state encoding for CPU_SUSPEND function */
7375
#define PSCI_0_2_POWER_STATE_ID_MASK 0xffff
@@ -100,6 +102,9 @@
100102
#define PSCI_1_1_RESET_TYPE_SYSTEM_WARM_RESET 0
101103
#define PSCI_1_1_RESET_TYPE_VENDOR_START 0x80000000U
102104

105+
/* PSCI v1.3 hibernate type for SYSTEM_OFF2 */
106+
#define PSCI_1_3_OFF_TYPE_HIBERNATE_OFF BIT(0)
107+
103108
/* PSCI version decoding (independent of PSCI version) */
104109
#define PSCI_VERSION_MAJOR_SHIFT 16
105110
#define PSCI_VERSION_MINOR_MASK \

0 commit comments

Comments
 (0)