// SPDX-License-Identifier: GPL-2.0-only /* * OMAP4 thermal driver. * * Copyright (C) 2011-2012 Texas Instruments Inc. * Contact: * Eduardo Valentin <[email protected]> */ #include "ti-thermal.h" #include "ti-bandgap.h" #include "omap4xxx-bandgap.h" /* * OMAP4430 has one instance of thermal sensor for MPU * need to describe the individual bit fields */ static struct temp_sensor_registers omap4430_mpu_temp_sensor_registers = …; /* Thresholds and limits for OMAP4430 MPU temperature sensor */ static struct temp_sensor_data omap4430_mpu_temp_sensor_data = …; /* * Temperature values in milli degree celsius * ADC code values from 13 to 107, see TRM * "18.4.10.2.3 ADC Codes Versus Temperature". */ static const int omap4430_adc_to_temp[OMAP4430_ADC_END_VALUE - OMAP4430_ADC_START_VALUE + 1] = …; /* OMAP4430 data */ const struct ti_bandgap_data omap4430_data = …; /* * OMAP4460 has one instance of thermal sensor for MPU * need to describe the individual bit fields */ static struct temp_sensor_registers omap4460_mpu_temp_sensor_registers = …; /* Thresholds and limits for OMAP4460 MPU temperature sensor */ static struct temp_sensor_data omap4460_mpu_temp_sensor_data = …; /* * Temperature values in milli degree celsius * ADC code values from 530 to 923 */ static const int omap4460_adc_to_temp[OMAP4460_ADC_END_VALUE - OMAP4460_ADC_START_VALUE + 1] = …; /* OMAP4460 data */ const struct ti_bandgap_data omap4460_data = …; /* OMAP4470 data */ const struct ti_bandgap_data omap4470_data = …;