From 3efa0ea743b77d1611501f7d8b4f320d032d73ae Mon Sep 17 00:00:00 2001 From: Tzung-Bi Shih Date: Wed, 2 Dec 2020 12:46:09 +0800 Subject: 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 Signed-off-by: Tzung-Bi Shih Link: https://lore.kernel.org/r/20201202044609.2501913-1-tzungbi@google.com Signed-off-by: Bjorn Andersson --- drivers/remoteproc/mtk_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/remoteproc/mtk_common.h') diff --git a/drivers/remoteproc/mtk_common.h b/drivers/remoteproc/mtk_common.h index fb022ff93dc1..988edb4977c3 100644 --- a/drivers/remoteproc/mtk_common.h +++ b/drivers/remoteproc/mtk_common.h @@ -78,6 +78,8 @@ struct mtk_scp_of_data { u32 host_to_scp_reg; u32 host_to_scp_int_bit; + + size_t ipi_buf_offset; }; struct mtk_scp { -- cgit v1.2.3