firmware/psci: add support for SYSTEM_RESET2
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 15 Apr 2019 11:47:46 +0000 (12:47 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 16 Apr 2019 21:05:21 +0000 (23:05 +0200)
commit4302e381a870aafb547e6139830e5a4ee2cb8261
tree4a17a2f28f74d6286e46f9380d3c6d0a3700a402
parent60dd1ead65e83268af9ccd19b97c7011cb50186b
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.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/firmware/psci/psci.c
include/uapi/linux/psci.h