]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc/mediatek: read IPI buffer offset from FW
authorTzung-Bi Shih <tzungbi@google.com>
Wed, 2 Dec 2020 04:46:09 +0000 (12:46 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 10 Dec 2020 19:32:10 +0000 (13:32 -0600)
commit833aef3f62676b5971caeebd0ba4d6aa731502ad
tree04968cdc6ef8dc39e25d01cce795172f5ba51aa8
parent9fd3ad4e93ba4bbb6903bf929b8f9b5d9d433dde
remoteproc/mediatek: read IPI buffer offset from FW

Reads the IPI buffer offset from the FW binary.  The information resides
in addr of .ipi_buffer section.

Moves scp_ipi_init() to rproc_ops::parse_fw() phase.  The IPI buffer can
be initialized only if the offset is clear.

To backward compatible to MT8183 SCP, specify the offset in the board
specific mtk_scp_of_data.  Reads the default offset if the firmware
doesn't have it.

Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20201202044609.2501913-1-tzungbi@google.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/mtk_common.h
drivers/remoteproc/mtk_scp.c