]> git.dujemihanovic.xyz Git - u-boot.git/commit
psci: add features/reset2 support
authorIgor Opaniuk <igor.opaniuk@foundries.io>
Wed, 31 Mar 2021 23:01:53 +0000 (02:01 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 20 Apr 2021 11:31:12 +0000 (07:31 -0400)
commitb7135b034f9f19a89516bb53535891e14a545395
tree327dc24c46e2a75325c66080905f3971849123b5
parent2963d606bc6bbaf7b097ec8a42abec7f71339a9d
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>
drivers/firmware/psci.c
include/linux/psci.h