History

firmware/psci: add support for SYSTEM_RESET2

PSCI v1.1 introduced SYSTEM_RESET2 to allow both architectural resets where the semantics are described by the PSCI specification itself as well as vendor-specific resets. Currently only system warm reset semantics is defined as part of architectural resets by the specification. This patch implements support for SYSTEM_RESET2 by making using of reboot_mode passed by the reboot infrastructure in the kernel.

Sudeep Holla committed 7 years ago

Commit 4302e381 parent 60dd1ea2 files · +25 −1Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/psci.h+2−0
@@ -50,8 +50,10 @@ · 49 unmodified lines
50#define PSCI_1_0_FN_PSCI_FEATURES PSCI_0_2_FN(10)50#define PSCI_1_0_FN_PSCI_FEATURES PSCI_0_2_FN(10)
51#define PSCI_1_0_FN_SYSTEM_SUSPEND PSCI_0_2_FN(14)51#define PSCI_1_0_FN_SYSTEM_SUSPEND PSCI_0_2_FN(14)
52#define PSCI_1_0_FN_SET_SUSPEND_MODE PSCI_0_2_FN(15)52#define PSCI_1_0_FN_SET_SUSPEND_MODE PSCI_0_2_FN(15)
53#define PSCI_1_1_FN_SYSTEM_RESET2 PSCI_0_2_FN(18)
53 54
54#define PSCI_1_0_FN64_SYSTEM_SUSPEND PSCI_0_2_FN64(14)55#define PSCI_1_0_FN64_SYSTEM_SUSPEND PSCI_0_2_FN64(14)
56#define PSCI_1_1_FN64_SYSTEM_RESET2 PSCI_0_2_FN64(18)
55 57
56/* PSCI v0.2 power state encoding for CPU_SUSPEND function */58/* PSCI v0.2 power state encoding for CPU_SUSPEND function */
57#define PSCI_0_2_POWER_STATE_ID_MASK 0xffff59#define PSCI_0_2_POWER_STATE_ID_MASK 0xffff