[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230209063816.2782206-4-peng.fan@oss.nxp.com>
Date: Thu, 9 Feb 2023 14:38:13 +0800
From: "Peng Fan (OSS)" <peng.fan@....nxp.com>
To: andersson@...nel.org, mathieu.poirier@...aro.org,
shawnguo@...nel.org, s.hauer@...gutronix.de,
arnaud.pouliquen@...s.st.com, daniel.baluta@....com,
iuliana.prodan@....com
Cc: kernel@...gutronix.de, festevam@...il.com, linux-imx@....com,
linux-remoteproc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Peng Fan <peng.fan@....com>
Subject: [PATCH V3 3/6] remoteproc: imx_rproc: add devtype
From: Peng Fan <peng.fan@....com>
Add i.MX8M and i.MX93 devtype which will be used when parsing the
firmware.
Signed-off-by: Peng Fan <peng.fan@....com>
---
drivers/remoteproc/imx_rproc.c | 3 +++
drivers/remoteproc/imx_rproc.h | 7 +++++++
2 files changed, 10 insertions(+)
diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c
index 6bc2f988fd4c..13199e593b47 100644
--- a/drivers/remoteproc/imx_rproc.c
+++ b/drivers/remoteproc/imx_rproc.c
@@ -289,6 +289,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mn = {
.att = imx_rproc_att_imx8mn,
.att_size = ARRAY_SIZE(imx_rproc_att_imx8mn),
.method = IMX_RPROC_SMC,
+ .devtype = IMX_RPROC_IMX8M,
};
static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = {
@@ -299,6 +300,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = {
.att = imx_rproc_att_imx8mq,
.att_size = ARRAY_SIZE(imx_rproc_att_imx8mq),
.method = IMX_RPROC_MMIO,
+ .devtype = IMX_RPROC_IMX8M,
};
static const struct imx_rproc_dcfg imx_rproc_cfg_imx8qm = {
@@ -349,6 +351,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx93 = {
.att = imx_rproc_att_imx93,
.att_size = ARRAY_SIZE(imx_rproc_att_imx93),
.method = IMX_RPROC_SMC,
+ .devtype = IMX_RPROC_IMX93,
};
static int imx_rproc_start(struct rproc *rproc)
diff --git a/drivers/remoteproc/imx_rproc.h b/drivers/remoteproc/imx_rproc.h
index 1c7e2127c758..572732f6e2c6 100644
--- a/drivers/remoteproc/imx_rproc.h
+++ b/drivers/remoteproc/imx_rproc.h
@@ -26,6 +26,12 @@ enum imx_rproc_method {
IMX_RPROC_SCU_API,
};
+enum imx_rproc_devtype {
+ IMX_RPROC_ANY,
+ IMX_RPROC_IMX8M,
+ IMX_RPROC_IMX93,
+};
+
struct imx_rproc_dcfg {
u32 src_reg;
u32 src_mask;
@@ -34,6 +40,7 @@ struct imx_rproc_dcfg {
const struct imx_rproc_att *att;
size_t att_size;
enum imx_rproc_method method;
+ enum imx_rproc_devtype devtype;
};
#endif /* _IMX_RPROC_H */
--
2.37.1
Powered by blists - more mailing lists