// SPDX-License-Identifier: GPL-2.0-only /* * OMAP3 thermal driver. * * Copyright (C) 2011-2012 Texas Instruments Inc. * Copyright (C) 2014 Pavel Machek <[email protected]> * * Note * http://www.ti.com/lit/er/sprz278f/sprz278f.pdf "Advisory * 3.1.1.186 MMC OCP Clock Not Gated When Thermal Sensor Is Used" * * Also TI says: * Just be careful when you try to make thermal policy like decisions * based on this sensor. Placement of the sensor w.r.t the actual logic * generating heat has to be a factor as well. If you are just looking * for an approximation temperature (thermometerish kind), you might be * ok with this. I am not sure we'd find any TI data around this.. just a * heads up. */ #include "ti-thermal.h" #include "ti-bandgap.h" /* * OMAP34XX has one instance of thermal sensor for MPU * need to describe the individual bit fields */ static struct temp_sensor_registers omap34xx_mpu_temp_sensor_registers = …; /* Thresholds and limits for OMAP34XX MPU temperature sensor */ static struct temp_sensor_data omap34xx_mpu_temp_sensor_data = …; /* * Temperature values in milli degree celsius */ static const int omap34xx_adc_to_temp[128] = …; /* OMAP34XX data */ const struct ti_bandgap_data omap34xx_data = …; /* * OMAP36XX has one instance of thermal sensor for MPU * need to describe the individual bit fields */ static struct temp_sensor_registers omap36xx_mpu_temp_sensor_registers = …; /* Thresholds and limits for OMAP36XX MPU temperature sensor */ static struct temp_sensor_data omap36xx_mpu_temp_sensor_data = …; /* * Temperature values in milli degree celsius */ static const int omap36xx_adc_to_temp[128] = …; /* OMAP36XX data */ const struct ti_bandgap_data omap36xx_data = …;