remoteproc: k3: Add TI-SCI processor control helper functions
authorSuman Anna <s-anna@ti.com>
Tue, 21 Jul 2020 22:36:14 +0000 (17:36 -0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 29 Jul 2020 00:06:43 +0000 (17:06 -0700)
commitcf7acb49083658be69d6ef83d06865fc9cc51426
tree00ba0ac02146e41fda0089ea3f7ae03fef16993b
parenta8aa5ee100df45f4988975822f5af7c2b67ee9e6
remoteproc: k3: Add TI-SCI processor control helper functions

Texas Instruments' K3 generation SoCs have specific modules/register
spaces used for configuring the various aspects of a remote processor.
These include power, reset, boot vector and other configuration features
specific to each compute processor present on the SoC. These registers
are managed by the System Controller such as DMSC on K3 AM65x SoCs.

The Texas Instrument's System Control Interface (TI-SCI) Message Protocol
is used to communicate to the System Controller from various compute
processors to invoke specific services provided by the firmware running
on the System Controller.

Add a common processor control interface header file that can be used by
multiple remoteproc drivers. The helper functions within this header file
abstract the various TI SCI protocol ops for the remoteproc drivers, and
allow them to request the System Controller to be able to program and
manage various remote processors on the SoC. The remoteproc drivers are
expected to manage the life-cycle of their ti_sci_proc_dev local
structures.

Signed-off-by: Suman Anna <s-anna@ti.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200721223617.20312-4-s-anna@ti.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/ti_sci_proc.h [new file with mode: 0644]