remoteproc: Add prepare and unprepare ops
authorLoic Pallardy <loic.pallardy@st.com>
Fri, 17 Apr 2020 00:20:35 +0000 (19:20 -0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 23 Apr 2020 05:18:06 +0000 (22:18 -0700)
commit33467ac3c8dc80575e1b158e78d0c30ab33c1b08
treee855070ecfb26bfce8b5a176c0c8e38fc1449282
parente29ff72b779426c7fe462ead93c7ad77fe562935
remoteproc: Add prepare and unprepare ops

On some SoC architecture, it is needed to enable HW like
clock, bus, regulator, memory region... before loading
co-processor firmware.

This patch introduces prepare and unprepare ops to execute
platform specific function before firmware loading and after
stop execution.

Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200417002036.24359-2-s-anna@ti.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_internal.h
include/linux/remoteproc.h