From 36a8f8fd471ae7c6dc8a810aaa8ff8734706234e Mon Sep 17 00:00:00 2001 From: Roberto Vargas Date: Wed, 26 Jul 2017 09:23:09 +0100 Subject: reset2: Add PSCI system_reset2 function This patch implements PSCI_SYSTEM_RESET2 API as defined in PSCI v1.1 specification. The specification allows architectural and vendor-specific resets via this API. In the current specification, there is only one architectural reset, the warm reset. This reset is intended to provide a fast reboot path that guarantees not to reset system main memory. Change-Id: I057bb81a60cd0fe56465dbb5791d8e1cca025bd3 Signed-off-by: Roberto Vargas --- lib/psci/psci_setup.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/psci/psci_setup.c') diff --git a/lib/psci/psci_setup.c b/lib/psci/psci_setup.c index 5ef49acb..a841ddab 100644 --- a/lib/psci/psci_setup.c +++ b/lib/psci/psci_setup.c @@ -248,6 +248,8 @@ int psci_setup(const psci_lib_args_t *lib_args) psci_caps |= define_psci_cap(PSCI_MEM_PROTECT); if (psci_plat_pm_ops->mem_protect_chk) psci_caps |= define_psci_cap(PSCI_MEM_CHK_RANGE_AARCH64); + if (psci_plat_pm_ops->system_reset2) + psci_caps |= define_psci_cap(PSCI_SYSTEM_RESET2_AARCH64); #if ENABLE_PSCI_STAT psci_caps |= define_psci_cap(PSCI_STAT_RESIDENCY_AARCH64); -- cgit v1.2.3