thermal: imx_scu_thermal: Update driver for i.MX8QM thermal sensor
authorYe Li <ye.li@nxp.com>
Sun, 3 May 2020 14:19:45 +0000 (22:19 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
Add iMX8QM thermal compatible string and its driver data.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/thermal/imx_scu_thermal.c

index 7e17377b6962512ab2aef6e913b51ed372d27086..da13121a0900603193f7a0f415c26dfd757aa2c2 100644 (file)
@@ -179,12 +179,20 @@ static int imx_sc_thermal_ofdata_to_platdata(struct udevice *dev)
        return 0;
 }
 
+static const sc_rsrc_t imx8qm_sensor_rsrc[] = {
+       SC_R_A53, SC_R_A72, SC_R_GPU_0_PID0, SC_R_GPU_1_PID0,
+       SC_R_DRC_0, SC_R_DRC_1, SC_R_VPU_PID0, SC_R_PMIC_0,
+       SC_R_PMIC_1, SC_R_PMIC_2,
+};
+
 static const sc_rsrc_t imx8qxp_sensor_rsrc[] = {
        SC_R_SYSTEM, SC_R_DRC_0, SC_R_PMIC_0,
        SC_R_PMIC_1, SC_R_PMIC_2,
 };
 
 static const struct udevice_id imx_sc_thermal_ids[] = {
+       { .compatible = "nxp,imx8qm-sc-tsens", .data =
+               (ulong)&imx8qm_sensor_rsrc, },
        { .compatible = "nxp,imx8qxp-sc-tsens", .data =
                (ulong)&imx8qxp_sensor_rsrc, },
        { }