firmware: arm_scmi: Add RESET protocol in SCMI v2.0
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 8 Jul 2019 08:41:06 +0000 (09:41 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 12 Aug 2019 11:23:02 +0000 (12:23 +0100)
commit95a15d80aa0de938299acfcbc6aa6f2b16f5d7e5
tree339d10ad126f4c55a8a284443474134f11db7e8d
parentae39913ce4095682d1a6e5734a5558062a59d29f
firmware: arm_scmi: Add RESET protocol in SCMI v2.0

SCMIv2.0 adds a new Reset Management Protocol to manage various reset
states a given device or domain can enter. Device(s) that can be
collectively reset through a common reset signal constitute a reset
domain for the firmware.

A reset domain can be reset autonomously or explicitly through assertion
and de-assertion of the signal. When autonomous reset is chosen, the
firmware is responsible for taking the necessary steps to reset the
domain and to subsequently bring it out of reset. When explicit reset is
chosen, the caller has to specifically assert and then de-assert the
reset signal by issuing two separate RESET commands.

Add the basic SCMI reset infrastructure that can be used by Linux
reset controller driver.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/Makefile
drivers/firmware/arm_scmi/reset.c [new file with mode: 0644]
include/linux/scmi_protocol.h