#define IMX_TEMP_PASSIVE 85000
#define IMX_TEMP_PASSIVE_COOL_DELTA 10000
+/*
+ * The maximum die temperature on imx parts is 105C, let's give some cushion
+ * for noise and possible temperature rise between measurements.
+ */
+#define IMX_TEMP_CRITICAL 100000
+
#define IMX_POLLING_DELAY 2000 /* millisecond */
#define IMX_PASSIVE_DELAY 1000
return 0;
}
-static const struct thermal_zone_device_ops imx_tz_ops = {
+static struct thermal_zone_device_ops imx_tz_ops = {
.bind = imx_bind,
.unbind = imx_unbind,
.get_temp = imx_get_temp,
return ret;
}
- data->trip_temp[IMX_TRIP_PASSIVE] = IMX_TEMP_PASSIVE;
- data->trip_temp[IMX_TRIP_CRITICAL] = IMX_TEMP_CRITICAL;
+ data->temp_passive = IMX_TEMP_PASSIVE;
+ data->temp_critical = IMX_TEMP_CRITICAL;
data->tz = thermal_zone_device_register("imx_thermal_zone",
IMX_TRIP_NUM,
BIT(IMX_TRIP_PASSIVE), data,