staging: ti-soc-thermal: report alert events on OMAP4 devices
authorEduardo Valentin <eduardo.valentin@ti.com>
Mon, 1 Apr 2013 16:04:36 +0000 (12:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Apr 2013 19:27:29 +0000 (12:27 -0700)
OMAP4460 and OMAP4470 devices have the capability to generate
alert temperature. Thus, whenever a T_ALERT IRQ is served,
the ti-bandgap will call .report_temperature to notify the
thermal framework about thermal zone update request.

This patch allows OMAP4460 and OMAP4470 devices to notify
the thermal framework about T_ALERT events.

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ti-soc-thermal/omap4-thermal-data.c

index 49d032467739106b3ce3281195c553e9d9c2c7ed..ee9c902702554008933af8d8f0736249e5e399c2 100644 (file)
@@ -216,6 +216,7 @@ const struct ti_bandgap_data omap4460_data = {
        .adc_end_val = OMAP4460_ADC_END_VALUE,
        .expose_sensor = ti_thermal_expose_sensor,
        .remove_sensor = ti_thermal_remove_sensor,
+       .report_temperature = ti_thermal_report_sensor_temperature,
        .sensors = {
                {
                .registers = &omap4460_mpu_temp_sensor_registers,
@@ -248,6 +249,7 @@ const struct ti_bandgap_data omap4470_data = {
        .adc_end_val = OMAP4460_ADC_END_VALUE,
        .expose_sensor = ti_thermal_expose_sensor,
        .remove_sensor = ti_thermal_remove_sensor,
+       .report_temperature = ti_thermal_report_sensor_temperature,
        .sensors = {
                {
                .registers = &omap4460_mpu_temp_sensor_registers,