summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@foundries.io>2021-04-01 02:01:53 +0300
committerTom Rini <trini@konsulko.com>2021-04-20 14:31:12 +0300
commitb7135b034f9f19a89516bb53535891e14a545395 (patch)
tree327dc24c46e2a75325c66080905f3971849123b5 /include/linux
parent2963d606bc6bbaf7b097ec8a42abec7f71339a9d (diff)
downloadu-boot-b7135b034f9f19a89516bb53535891e14a545395.tar.xz
psci: add features/reset2 support
Adds support for: * PSCI_FEATURES, which was introduced in PSCI 1.0. This provides API that allows discovering whether a specific PSCI function is implemented and its features. * SYSTEM_RESET2, which was introduced in PSCI 1.1, which extends existing SYSTEM_RESET. It provides support for vendor-specific resets, providing reset_type as an additional param. For additional details visit [1]. Implementations of some functions were borrowed from Linux PSCI driver code [2]. [1] https://developer.arm.com/documentation/den0022/latest/ [2] drivers/firmware/psci/psci.c Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/psci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/psci.h b/include/linux/psci.h
index 38edde3137..c78c1079a8 100644
--- a/include/linux/psci.h
+++ b/include/linux/psci.h
@@ -118,6 +118,9 @@
#ifdef CONFIG_ARM_PSCI_FW
unsigned long invoke_psci_fn(unsigned long a0, unsigned long a1,
unsigned long a2, unsigned long a3);
+void psci_sys_reset(u32 type);
+void psci_sys_poweroff(void);
+
#else
static inline unsigned long invoke_psci_fn(unsigned long a0, unsigned long a1,
unsigned long a2, unsigned long a3)