firmware: ti_sci: Add processor shutdown API method
authorAndreas Dannenberg <dannenberg@ti.com>
Fri, 7 Jun 2019 13:54:40 +0000 (19:24 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 27 Jul 2019 01:49:21 +0000 (21:49 -0400)
commit410adcc9e2750d6852afe9f544cd74ad434f8937
tree7c6b8240e16bc94fc1b994800b34f56123eae5d7
parentae0b8a2bc8f46f2b4aadca50f9110803463ddb7e
firmware: ti_sci: Add processor shutdown API method

Add and expose a new processor shutdown API that wraps the two TISCI
messages involved in initiating a core shutdown. The API will first
queue a message to have the DMSC wait for a certain processor boot
status to happen followed by a message to trigger the actual shutdown-
with both messages being sent without waiting or requesting for a
response. Note that the processor shutdown API call will need to be
followed up by user software placing the respective core into either
WFE or WFI mode.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
drivers/firmware/ti_sci.c
drivers/firmware/ti_sci.h
include/linux/soc/ti/ti_sci_protocol.h