diff mbox series

[2/3] perf: imx_perf: add support for i.MX91 platform

Message ID 20240924061251.3387850-2-xu.yang_2@nxp.com (mailing list archive)
State New, archived
Headers show
Series [1/3] dt-bindings: perf: fsl-imx-ddr: Add i.MX91 compatible | expand

Commit Message

Xu Yang Sept. 24, 2024, 6:12 a.m. UTC
This will add compatible and identifier for i.MX91 platform.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
---
 drivers/perf/fsl_imx9_ddr_perf.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Frank Li Sept. 24, 2024, 6:09 p.m. UTC | #1
On Tue, Sep 24, 2024 at 02:12:50PM +0800, Xu Yang wrote:
> This will add compatible and identifier for i.MX91 platform.
>
> Signed-off-by: Xu Yang <xu.yang_2@nxp.com>

Reviewed-by: Frank Li <Frank.Li@nxp.com>

> ---
>  drivers/perf/fsl_imx9_ddr_perf.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/drivers/perf/fsl_imx9_ddr_perf.c b/drivers/perf/fsl_imx9_ddr_perf.c
> index 69f920b1caf2..fe1a51f64751 100644
> --- a/drivers/perf/fsl_imx9_ddr_perf.c
> +++ b/drivers/perf/fsl_imx9_ddr_perf.c
> @@ -81,6 +81,10 @@ struct ddr_pmu {
>  	int id;
>  };
>
> +static const struct imx_ddr_devtype_data imx91_devtype_data = {
> +	.identifier = "imx91",
> +};
> +
>  static const struct imx_ddr_devtype_data imx93_devtype_data = {
>  	.identifier = "imx93",
>  };
> @@ -100,6 +104,7 @@ static inline bool is_imx95(struct ddr_pmu *pmu)
>  }
>
>  static const struct of_device_id imx_ddr_pmu_dt_ids[] = {
> +	{ .compatible = "fsl,imx91-ddr-pmu", .data = &imx91_devtype_data },
>  	{ .compatible = "fsl,imx93-ddr-pmu", .data = &imx93_devtype_data },
>  	{ .compatible = "fsl,imx95-ddr-pmu", .data = &imx95_devtype_data },
>  	{ /* sentinel */ }
> --
> 2.34.1
>
diff mbox series

Patch

diff --git a/drivers/perf/fsl_imx9_ddr_perf.c b/drivers/perf/fsl_imx9_ddr_perf.c
index 69f920b1caf2..fe1a51f64751 100644
--- a/drivers/perf/fsl_imx9_ddr_perf.c
+++ b/drivers/perf/fsl_imx9_ddr_perf.c
@@ -81,6 +81,10 @@  struct ddr_pmu {
 	int id;
 };
 
+static const struct imx_ddr_devtype_data imx91_devtype_data = {
+	.identifier = "imx91",
+};
+
 static const struct imx_ddr_devtype_data imx93_devtype_data = {
 	.identifier = "imx93",
 };
@@ -100,6 +104,7 @@  static inline bool is_imx95(struct ddr_pmu *pmu)
 }
 
 static const struct of_device_id imx_ddr_pmu_dt_ids[] = {
+	{ .compatible = "fsl,imx91-ddr-pmu", .data = &imx91_devtype_data },
 	{ .compatible = "fsl,imx93-ddr-pmu", .data = &imx93_devtype_data },
 	{ .compatible = "fsl,imx95-ddr-pmu", .data = &imx95_devtype_data },
 	{ /* sentinel */ }