]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
perf: imx_perf: add support for i.MX91 platform
authorXu Yang <xu.yang_2@nxp.com>
Tue, 24 Sep 2024 06:12:50 +0000 (14:12 +0800)
committerWill Deacon <will@kernel.org>
Thu, 24 Oct 2024 11:33:46 +0000 (12:33 +0100)
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>
Link: https://lore.kernel.org/r/20240924061251.3387850-2-xu.yang_2@nxp.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/fsl_imx9_ddr_perf.c

index 69f920b1caf2c3d76c932bfa8dc80ff5c606704e..fe1a51f64751c9a81013faef16f2dd148c216f83 100644 (file)
@@ -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 */ }