162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * DRA752 thermal data. 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2013 Texas Instruments Inc. 662306a36Sopenharmony_ci * Contact: 762306a36Sopenharmony_ci * Eduardo Valentin <eduardo.valentin@ti.com> 862306a36Sopenharmony_ci * Tero Kristo <t-kristo@ti.com> 962306a36Sopenharmony_ci * 1062306a36Sopenharmony_ci * This file is partially autogenerated. 1162306a36Sopenharmony_ci */ 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#include "ti-thermal.h" 1462306a36Sopenharmony_ci#include "ti-bandgap.h" 1562306a36Sopenharmony_ci#include "dra752-bandgap.h" 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci/* 1862306a36Sopenharmony_ci * DRA752 has five instances of thermal sensor: MPU, GPU, CORE, 1962306a36Sopenharmony_ci * IVA and DSPEVE need to describe the individual registers and 2062306a36Sopenharmony_ci * bit fields. 2162306a36Sopenharmony_ci */ 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci/* 2462306a36Sopenharmony_ci * DRA752 CORE thermal sensor register offsets and bit-fields 2562306a36Sopenharmony_ci */ 2662306a36Sopenharmony_cistatic struct temp_sensor_registers 2762306a36Sopenharmony_cidra752_core_temp_sensor_registers = { 2862306a36Sopenharmony_ci .temp_sensor_ctrl = DRA752_TEMP_SENSOR_CORE_OFFSET, 2962306a36Sopenharmony_ci .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 3062306a36Sopenharmony_ci .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 3162306a36Sopenharmony_ci .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 3262306a36Sopenharmony_ci .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_1_OFFSET, 3362306a36Sopenharmony_ci .mask_hot_mask = DRA752_BANDGAP_CTRL_1_MASK_HOT_CORE_MASK, 3462306a36Sopenharmony_ci .mask_cold_mask = DRA752_BANDGAP_CTRL_1_MASK_COLD_CORE_MASK, 3562306a36Sopenharmony_ci .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 3662306a36Sopenharmony_ci .mask_freeze_mask = DRA752_BANDGAP_CTRL_1_FREEZE_CORE_MASK, 3762306a36Sopenharmony_ci .bgap_threshold = DRA752_BANDGAP_THRESHOLD_CORE_OFFSET, 3862306a36Sopenharmony_ci .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 3962306a36Sopenharmony_ci .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 4062306a36Sopenharmony_ci .bgap_status = DRA752_BANDGAP_STATUS_1_OFFSET, 4162306a36Sopenharmony_ci .status_hot_mask = DRA752_BANDGAP_STATUS_1_HOT_CORE_MASK, 4262306a36Sopenharmony_ci .status_cold_mask = DRA752_BANDGAP_STATUS_1_COLD_CORE_MASK, 4362306a36Sopenharmony_ci .ctrl_dtemp_1 = DRA752_DTEMP_CORE_1_OFFSET, 4462306a36Sopenharmony_ci .ctrl_dtemp_2 = DRA752_DTEMP_CORE_2_OFFSET, 4562306a36Sopenharmony_ci .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_CORE_OFFSET, 4662306a36Sopenharmony_ci}; 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ci/* 4962306a36Sopenharmony_ci * DRA752 IVA thermal sensor register offsets and bit-fields 5062306a36Sopenharmony_ci */ 5162306a36Sopenharmony_cistatic struct temp_sensor_registers 5262306a36Sopenharmony_cidra752_iva_temp_sensor_registers = { 5362306a36Sopenharmony_ci .temp_sensor_ctrl = DRA752_TEMP_SENSOR_IVA_OFFSET, 5462306a36Sopenharmony_ci .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 5562306a36Sopenharmony_ci .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 5662306a36Sopenharmony_ci .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 5762306a36Sopenharmony_ci .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_2_OFFSET, 5862306a36Sopenharmony_ci .mask_hot_mask = DRA752_BANDGAP_CTRL_2_MASK_HOT_IVA_MASK, 5962306a36Sopenharmony_ci .mask_cold_mask = DRA752_BANDGAP_CTRL_2_MASK_COLD_IVA_MASK, 6062306a36Sopenharmony_ci .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 6162306a36Sopenharmony_ci .mask_freeze_mask = DRA752_BANDGAP_CTRL_2_FREEZE_IVA_MASK, 6262306a36Sopenharmony_ci .bgap_threshold = DRA752_BANDGAP_THRESHOLD_IVA_OFFSET, 6362306a36Sopenharmony_ci .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 6462306a36Sopenharmony_ci .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 6562306a36Sopenharmony_ci .bgap_status = DRA752_BANDGAP_STATUS_2_OFFSET, 6662306a36Sopenharmony_ci .status_hot_mask = DRA752_BANDGAP_STATUS_2_HOT_IVA_MASK, 6762306a36Sopenharmony_ci .status_cold_mask = DRA752_BANDGAP_STATUS_2_COLD_IVA_MASK, 6862306a36Sopenharmony_ci .ctrl_dtemp_1 = DRA752_DTEMP_IVA_1_OFFSET, 6962306a36Sopenharmony_ci .ctrl_dtemp_2 = DRA752_DTEMP_IVA_2_OFFSET, 7062306a36Sopenharmony_ci .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_IVA_OFFSET, 7162306a36Sopenharmony_ci}; 7262306a36Sopenharmony_ci 7362306a36Sopenharmony_ci/* 7462306a36Sopenharmony_ci * DRA752 MPU thermal sensor register offsets and bit-fields 7562306a36Sopenharmony_ci */ 7662306a36Sopenharmony_cistatic struct temp_sensor_registers 7762306a36Sopenharmony_cidra752_mpu_temp_sensor_registers = { 7862306a36Sopenharmony_ci .temp_sensor_ctrl = DRA752_TEMP_SENSOR_MPU_OFFSET, 7962306a36Sopenharmony_ci .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 8062306a36Sopenharmony_ci .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 8162306a36Sopenharmony_ci .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 8262306a36Sopenharmony_ci .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_1_OFFSET, 8362306a36Sopenharmony_ci .mask_hot_mask = DRA752_BANDGAP_CTRL_1_MASK_HOT_MPU_MASK, 8462306a36Sopenharmony_ci .mask_cold_mask = DRA752_BANDGAP_CTRL_1_MASK_COLD_MPU_MASK, 8562306a36Sopenharmony_ci .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 8662306a36Sopenharmony_ci .mask_freeze_mask = DRA752_BANDGAP_CTRL_1_FREEZE_MPU_MASK, 8762306a36Sopenharmony_ci .bgap_threshold = DRA752_BANDGAP_THRESHOLD_MPU_OFFSET, 8862306a36Sopenharmony_ci .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 8962306a36Sopenharmony_ci .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 9062306a36Sopenharmony_ci .bgap_status = DRA752_BANDGAP_STATUS_1_OFFSET, 9162306a36Sopenharmony_ci .status_hot_mask = DRA752_BANDGAP_STATUS_1_HOT_MPU_MASK, 9262306a36Sopenharmony_ci .status_cold_mask = DRA752_BANDGAP_STATUS_1_COLD_MPU_MASK, 9362306a36Sopenharmony_ci .ctrl_dtemp_1 = DRA752_DTEMP_MPU_1_OFFSET, 9462306a36Sopenharmony_ci .ctrl_dtemp_2 = DRA752_DTEMP_MPU_2_OFFSET, 9562306a36Sopenharmony_ci .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_MPU_OFFSET, 9662306a36Sopenharmony_ci}; 9762306a36Sopenharmony_ci 9862306a36Sopenharmony_ci/* 9962306a36Sopenharmony_ci * DRA752 DSPEVE thermal sensor register offsets and bit-fields 10062306a36Sopenharmony_ci */ 10162306a36Sopenharmony_cistatic struct temp_sensor_registers 10262306a36Sopenharmony_cidra752_dspeve_temp_sensor_registers = { 10362306a36Sopenharmony_ci .temp_sensor_ctrl = DRA752_TEMP_SENSOR_DSPEVE_OFFSET, 10462306a36Sopenharmony_ci .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 10562306a36Sopenharmony_ci .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 10662306a36Sopenharmony_ci .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 10762306a36Sopenharmony_ci .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_2_OFFSET, 10862306a36Sopenharmony_ci .mask_hot_mask = DRA752_BANDGAP_CTRL_2_MASK_HOT_DSPEVE_MASK, 10962306a36Sopenharmony_ci .mask_cold_mask = DRA752_BANDGAP_CTRL_2_MASK_COLD_DSPEVE_MASK, 11062306a36Sopenharmony_ci .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 11162306a36Sopenharmony_ci .mask_freeze_mask = DRA752_BANDGAP_CTRL_2_FREEZE_DSPEVE_MASK, 11262306a36Sopenharmony_ci .bgap_threshold = DRA752_BANDGAP_THRESHOLD_DSPEVE_OFFSET, 11362306a36Sopenharmony_ci .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 11462306a36Sopenharmony_ci .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 11562306a36Sopenharmony_ci .bgap_status = DRA752_BANDGAP_STATUS_2_OFFSET, 11662306a36Sopenharmony_ci .status_hot_mask = DRA752_BANDGAP_STATUS_2_HOT_DSPEVE_MASK, 11762306a36Sopenharmony_ci .status_cold_mask = DRA752_BANDGAP_STATUS_2_COLD_DSPEVE_MASK, 11862306a36Sopenharmony_ci .ctrl_dtemp_1 = DRA752_DTEMP_DSPEVE_1_OFFSET, 11962306a36Sopenharmony_ci .ctrl_dtemp_2 = DRA752_DTEMP_DSPEVE_2_OFFSET, 12062306a36Sopenharmony_ci .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_DSPEVE_OFFSET, 12162306a36Sopenharmony_ci}; 12262306a36Sopenharmony_ci 12362306a36Sopenharmony_ci/* 12462306a36Sopenharmony_ci * DRA752 GPU thermal sensor register offsets and bit-fields 12562306a36Sopenharmony_ci */ 12662306a36Sopenharmony_cistatic struct temp_sensor_registers 12762306a36Sopenharmony_cidra752_gpu_temp_sensor_registers = { 12862306a36Sopenharmony_ci .temp_sensor_ctrl = DRA752_TEMP_SENSOR_GPU_OFFSET, 12962306a36Sopenharmony_ci .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 13062306a36Sopenharmony_ci .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 13162306a36Sopenharmony_ci .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 13262306a36Sopenharmony_ci .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_1_OFFSET, 13362306a36Sopenharmony_ci .mask_hot_mask = DRA752_BANDGAP_CTRL_1_MASK_HOT_GPU_MASK, 13462306a36Sopenharmony_ci .mask_cold_mask = DRA752_BANDGAP_CTRL_1_MASK_COLD_GPU_MASK, 13562306a36Sopenharmony_ci .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 13662306a36Sopenharmony_ci .mask_freeze_mask = DRA752_BANDGAP_CTRL_1_FREEZE_GPU_MASK, 13762306a36Sopenharmony_ci .bgap_threshold = DRA752_BANDGAP_THRESHOLD_GPU_OFFSET, 13862306a36Sopenharmony_ci .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 13962306a36Sopenharmony_ci .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 14062306a36Sopenharmony_ci .bgap_status = DRA752_BANDGAP_STATUS_1_OFFSET, 14162306a36Sopenharmony_ci .status_hot_mask = DRA752_BANDGAP_STATUS_1_HOT_GPU_MASK, 14262306a36Sopenharmony_ci .status_cold_mask = DRA752_BANDGAP_STATUS_1_COLD_GPU_MASK, 14362306a36Sopenharmony_ci .ctrl_dtemp_1 = DRA752_DTEMP_GPU_1_OFFSET, 14462306a36Sopenharmony_ci .ctrl_dtemp_2 = DRA752_DTEMP_GPU_2_OFFSET, 14562306a36Sopenharmony_ci .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_GPU_OFFSET, 14662306a36Sopenharmony_ci}; 14762306a36Sopenharmony_ci 14862306a36Sopenharmony_ci/* Thresholds and limits for DRA752 MPU temperature sensor */ 14962306a36Sopenharmony_cistatic struct temp_sensor_data dra752_mpu_temp_sensor_data = { 15062306a36Sopenharmony_ci .t_hot = DRA752_MPU_T_HOT, 15162306a36Sopenharmony_ci .t_cold = DRA752_MPU_T_COLD, 15262306a36Sopenharmony_ci .min_freq = DRA752_MPU_MIN_FREQ, 15362306a36Sopenharmony_ci .max_freq = DRA752_MPU_MAX_FREQ, 15462306a36Sopenharmony_ci}; 15562306a36Sopenharmony_ci 15662306a36Sopenharmony_ci/* Thresholds and limits for DRA752 GPU temperature sensor */ 15762306a36Sopenharmony_cistatic struct temp_sensor_data dra752_gpu_temp_sensor_data = { 15862306a36Sopenharmony_ci .t_hot = DRA752_GPU_T_HOT, 15962306a36Sopenharmony_ci .t_cold = DRA752_GPU_T_COLD, 16062306a36Sopenharmony_ci .min_freq = DRA752_GPU_MIN_FREQ, 16162306a36Sopenharmony_ci .max_freq = DRA752_GPU_MAX_FREQ, 16262306a36Sopenharmony_ci}; 16362306a36Sopenharmony_ci 16462306a36Sopenharmony_ci/* Thresholds and limits for DRA752 CORE temperature sensor */ 16562306a36Sopenharmony_cistatic struct temp_sensor_data dra752_core_temp_sensor_data = { 16662306a36Sopenharmony_ci .t_hot = DRA752_CORE_T_HOT, 16762306a36Sopenharmony_ci .t_cold = DRA752_CORE_T_COLD, 16862306a36Sopenharmony_ci .min_freq = DRA752_CORE_MIN_FREQ, 16962306a36Sopenharmony_ci .max_freq = DRA752_CORE_MAX_FREQ, 17062306a36Sopenharmony_ci}; 17162306a36Sopenharmony_ci 17262306a36Sopenharmony_ci/* Thresholds and limits for DRA752 DSPEVE temperature sensor */ 17362306a36Sopenharmony_cistatic struct temp_sensor_data dra752_dspeve_temp_sensor_data = { 17462306a36Sopenharmony_ci .t_hot = DRA752_DSPEVE_T_HOT, 17562306a36Sopenharmony_ci .t_cold = DRA752_DSPEVE_T_COLD, 17662306a36Sopenharmony_ci .min_freq = DRA752_DSPEVE_MIN_FREQ, 17762306a36Sopenharmony_ci .max_freq = DRA752_DSPEVE_MAX_FREQ, 17862306a36Sopenharmony_ci}; 17962306a36Sopenharmony_ci 18062306a36Sopenharmony_ci/* Thresholds and limits for DRA752 IVA temperature sensor */ 18162306a36Sopenharmony_cistatic struct temp_sensor_data dra752_iva_temp_sensor_data = { 18262306a36Sopenharmony_ci .t_hot = DRA752_IVA_T_HOT, 18362306a36Sopenharmony_ci .t_cold = DRA752_IVA_T_COLD, 18462306a36Sopenharmony_ci .min_freq = DRA752_IVA_MIN_FREQ, 18562306a36Sopenharmony_ci .max_freq = DRA752_IVA_MAX_FREQ, 18662306a36Sopenharmony_ci}; 18762306a36Sopenharmony_ci 18862306a36Sopenharmony_ci/* 18962306a36Sopenharmony_ci * DRA752 : Temperature values in milli degree celsius 19062306a36Sopenharmony_ci * ADC code values from 540 to 945 19162306a36Sopenharmony_ci */ 19262306a36Sopenharmony_cistatic 19362306a36Sopenharmony_ciint dra752_adc_to_temp[DRA752_ADC_END_VALUE - DRA752_ADC_START_VALUE + 1] = { 19462306a36Sopenharmony_ci /* Index 540 - 549 */ 19562306a36Sopenharmony_ci -40000, -40000, -40000, -40000, -39800, -39400, -39000, -38600, -38200, 19662306a36Sopenharmony_ci -37800, 19762306a36Sopenharmony_ci /* Index 550 - 559 */ 19862306a36Sopenharmony_ci -37400, -37000, -36600, -36200, -35800, -35300, -34700, -34200, -33800, 19962306a36Sopenharmony_ci -33400, 20062306a36Sopenharmony_ci /* Index 560 - 569 */ 20162306a36Sopenharmony_ci -33000, -32600, -32200, -31800, -31400, -31000, -30600, -30200, -29800, 20262306a36Sopenharmony_ci -29400, 20362306a36Sopenharmony_ci /* Index 570 - 579 */ 20462306a36Sopenharmony_ci -29000, -28600, -28200, -27700, -27100, -26600, -26200, -25800, -25400, 20562306a36Sopenharmony_ci -25000, 20662306a36Sopenharmony_ci /* Index 580 - 589 */ 20762306a36Sopenharmony_ci -24600, -24200, -23800, -23400, -23000, -22600, -22200, -21800, -21400, 20862306a36Sopenharmony_ci -21000, 20962306a36Sopenharmony_ci /* Index 590 - 599 */ 21062306a36Sopenharmony_ci -20500, -19900, -19400, -19000, -18600, -18200, -17800, -17400, -17000, 21162306a36Sopenharmony_ci -16600, 21262306a36Sopenharmony_ci /* Index 600 - 609 */ 21362306a36Sopenharmony_ci -16200, -15800, -15400, -15000, -14600, -14200, -13800, -13400, -13000, 21462306a36Sopenharmony_ci -12500, 21562306a36Sopenharmony_ci /* Index 610 - 619 */ 21662306a36Sopenharmony_ci -11900, -11400, -11000, -10600, -10200, -9800, -9400, -9000, -8600, 21762306a36Sopenharmony_ci -8200, 21862306a36Sopenharmony_ci /* Index 620 - 629 */ 21962306a36Sopenharmony_ci -7800, -7400, -7000, -6600, -6200, -5800, -5400, -5000, -4500, 22062306a36Sopenharmony_ci -3900, 22162306a36Sopenharmony_ci /* Index 630 - 639 */ 22262306a36Sopenharmony_ci -3400, -3000, -2600, -2200, -1800, -1400, -1000, -600, -200, 22362306a36Sopenharmony_ci 200, 22462306a36Sopenharmony_ci /* Index 640 - 649 */ 22562306a36Sopenharmony_ci 600, 1000, 1400, 1800, 2200, 2600, 3000, 3400, 3900, 22662306a36Sopenharmony_ci 4500, 22762306a36Sopenharmony_ci /* Index 650 - 659 */ 22862306a36Sopenharmony_ci 5000, 5400, 5800, 6200, 6600, 7000, 7400, 7800, 8200, 22962306a36Sopenharmony_ci 8600, 23062306a36Sopenharmony_ci /* Index 660 - 669 */ 23162306a36Sopenharmony_ci 9000, 9400, 9800, 10200, 10600, 11000, 11400, 11800, 12200, 23262306a36Sopenharmony_ci 12700, 23362306a36Sopenharmony_ci /* Index 670 - 679 */ 23462306a36Sopenharmony_ci 13300, 13800, 14200, 14600, 15000, 15400, 15800, 16200, 16600, 23562306a36Sopenharmony_ci 17000, 23662306a36Sopenharmony_ci /* Index 680 - 689 */ 23762306a36Sopenharmony_ci 17400, 17800, 18200, 18600, 19000, 19400, 19800, 20200, 20600, 23862306a36Sopenharmony_ci 21000, 23962306a36Sopenharmony_ci /* Index 690 - 699 */ 24062306a36Sopenharmony_ci 21400, 21900, 22500, 23000, 23400, 23800, 24200, 24600, 25000, 24162306a36Sopenharmony_ci 25400, 24262306a36Sopenharmony_ci /* Index 700 - 709 */ 24362306a36Sopenharmony_ci 25800, 26200, 26600, 27000, 27400, 27800, 28200, 28600, 29000, 24462306a36Sopenharmony_ci 29400, 24562306a36Sopenharmony_ci /* Index 710 - 719 */ 24662306a36Sopenharmony_ci 29800, 30200, 30600, 31000, 31400, 31900, 32500, 33000, 33400, 24762306a36Sopenharmony_ci 33800, 24862306a36Sopenharmony_ci /* Index 720 - 729 */ 24962306a36Sopenharmony_ci 34200, 34600, 35000, 35400, 35800, 36200, 36600, 37000, 37400, 25062306a36Sopenharmony_ci 37800, 25162306a36Sopenharmony_ci /* Index 730 - 739 */ 25262306a36Sopenharmony_ci 38200, 38600, 39000, 39400, 39800, 40200, 40600, 41000, 41400, 25362306a36Sopenharmony_ci 41800, 25462306a36Sopenharmony_ci /* Index 740 - 749 */ 25562306a36Sopenharmony_ci 42200, 42600, 43100, 43700, 44200, 44600, 45000, 45400, 45800, 25662306a36Sopenharmony_ci 46200, 25762306a36Sopenharmony_ci /* Index 750 - 759 */ 25862306a36Sopenharmony_ci 46600, 47000, 47400, 47800, 48200, 48600, 49000, 49400, 49800, 25962306a36Sopenharmony_ci 50200, 26062306a36Sopenharmony_ci /* Index 760 - 769 */ 26162306a36Sopenharmony_ci 50600, 51000, 51400, 51800, 52200, 52600, 53000, 53400, 53800, 26262306a36Sopenharmony_ci 54200, 26362306a36Sopenharmony_ci /* Index 770 - 779 */ 26462306a36Sopenharmony_ci 54600, 55000, 55400, 55900, 56500, 57000, 57400, 57800, 58200, 26562306a36Sopenharmony_ci 58600, 26662306a36Sopenharmony_ci /* Index 780 - 789 */ 26762306a36Sopenharmony_ci 59000, 59400, 59800, 60200, 60600, 61000, 61400, 61800, 62200, 26862306a36Sopenharmony_ci 62600, 26962306a36Sopenharmony_ci /* Index 790 - 799 */ 27062306a36Sopenharmony_ci 63000, 63400, 63800, 64200, 64600, 65000, 65400, 65800, 66200, 27162306a36Sopenharmony_ci 66600, 27262306a36Sopenharmony_ci /* Index 800 - 809 */ 27362306a36Sopenharmony_ci 67000, 67400, 67800, 68200, 68600, 69000, 69400, 69800, 70200, 27462306a36Sopenharmony_ci 70600, 27562306a36Sopenharmony_ci /* Index 810 - 819 */ 27662306a36Sopenharmony_ci 71000, 71500, 72100, 72600, 73000, 73400, 73800, 74200, 74600, 27762306a36Sopenharmony_ci 75000, 27862306a36Sopenharmony_ci /* Index 820 - 829 */ 27962306a36Sopenharmony_ci 75400, 75800, 76200, 76600, 77000, 77400, 77800, 78200, 78600, 28062306a36Sopenharmony_ci 79000, 28162306a36Sopenharmony_ci /* Index 830 - 839 */ 28262306a36Sopenharmony_ci 79400, 79800, 80200, 80600, 81000, 81400, 81800, 82200, 82600, 28362306a36Sopenharmony_ci 83000, 28462306a36Sopenharmony_ci /* Index 840 - 849 */ 28562306a36Sopenharmony_ci 83400, 83800, 84200, 84600, 85000, 85400, 85800, 86200, 86600, 28662306a36Sopenharmony_ci 87000, 28762306a36Sopenharmony_ci /* Index 850 - 859 */ 28862306a36Sopenharmony_ci 87400, 87800, 88200, 88600, 89000, 89400, 89800, 90200, 90600, 28962306a36Sopenharmony_ci 91000, 29062306a36Sopenharmony_ci /* Index 860 - 869 */ 29162306a36Sopenharmony_ci 91400, 91800, 92200, 92600, 93000, 93400, 93800, 94200, 94600, 29262306a36Sopenharmony_ci 95000, 29362306a36Sopenharmony_ci /* Index 870 - 879 */ 29462306a36Sopenharmony_ci 95400, 95800, 96200, 96600, 97000, 97500, 98100, 98600, 99000, 29562306a36Sopenharmony_ci 99400, 29662306a36Sopenharmony_ci /* Index 880 - 889 */ 29762306a36Sopenharmony_ci 99800, 100200, 100600, 101000, 101400, 101800, 102200, 102600, 103000, 29862306a36Sopenharmony_ci 103400, 29962306a36Sopenharmony_ci /* Index 890 - 899 */ 30062306a36Sopenharmony_ci 103800, 104200, 104600, 105000, 105400, 105800, 106200, 106600, 107000, 30162306a36Sopenharmony_ci 107400, 30262306a36Sopenharmony_ci /* Index 900 - 909 */ 30362306a36Sopenharmony_ci 107800, 108200, 108600, 109000, 109400, 109800, 110200, 110600, 111000, 30462306a36Sopenharmony_ci 111400, 30562306a36Sopenharmony_ci /* Index 910 - 919 */ 30662306a36Sopenharmony_ci 111800, 112200, 112600, 113000, 113400, 113800, 114200, 114600, 115000, 30762306a36Sopenharmony_ci 115400, 30862306a36Sopenharmony_ci /* Index 920 - 929 */ 30962306a36Sopenharmony_ci 115800, 116200, 116600, 117000, 117400, 117800, 118200, 118600, 119000, 31062306a36Sopenharmony_ci 119400, 31162306a36Sopenharmony_ci /* Index 930 - 939 */ 31262306a36Sopenharmony_ci 119800, 120200, 120600, 121000, 121400, 121800, 122200, 122600, 123000, 31362306a36Sopenharmony_ci 123400, 31462306a36Sopenharmony_ci /* Index 940 - 945 */ 31562306a36Sopenharmony_ci 123800, 124200, 124600, 124900, 125000, 125000, 31662306a36Sopenharmony_ci}; 31762306a36Sopenharmony_ci 31862306a36Sopenharmony_ci/* DRA752 data */ 31962306a36Sopenharmony_ciconst struct ti_bandgap_data dra752_data = { 32062306a36Sopenharmony_ci .features = TI_BANDGAP_FEATURE_FREEZE_BIT | 32162306a36Sopenharmony_ci TI_BANDGAP_FEATURE_TALERT | 32262306a36Sopenharmony_ci TI_BANDGAP_FEATURE_COUNTER_DELAY | 32362306a36Sopenharmony_ci TI_BANDGAP_FEATURE_HISTORY_BUFFER | 32462306a36Sopenharmony_ci TI_BANDGAP_FEATURE_ERRATA_814, 32562306a36Sopenharmony_ci .fclock_name = "l3instr_ts_gclk_div", 32662306a36Sopenharmony_ci .div_ck_name = "l3instr_ts_gclk_div", 32762306a36Sopenharmony_ci .conv_table = dra752_adc_to_temp, 32862306a36Sopenharmony_ci .adc_start_val = DRA752_ADC_START_VALUE, 32962306a36Sopenharmony_ci .adc_end_val = DRA752_ADC_END_VALUE, 33062306a36Sopenharmony_ci .expose_sensor = ti_thermal_expose_sensor, 33162306a36Sopenharmony_ci .remove_sensor = ti_thermal_remove_sensor, 33262306a36Sopenharmony_ci .sensors = { 33362306a36Sopenharmony_ci { 33462306a36Sopenharmony_ci .registers = &dra752_mpu_temp_sensor_registers, 33562306a36Sopenharmony_ci .ts_data = &dra752_mpu_temp_sensor_data, 33662306a36Sopenharmony_ci .domain = "cpu", 33762306a36Sopenharmony_ci .register_cooling = ti_thermal_register_cpu_cooling, 33862306a36Sopenharmony_ci .unregister_cooling = ti_thermal_unregister_cpu_cooling, 33962306a36Sopenharmony_ci .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 34062306a36Sopenharmony_ci .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 34162306a36Sopenharmony_ci }, 34262306a36Sopenharmony_ci { 34362306a36Sopenharmony_ci .registers = &dra752_gpu_temp_sensor_registers, 34462306a36Sopenharmony_ci .ts_data = &dra752_gpu_temp_sensor_data, 34562306a36Sopenharmony_ci .domain = "gpu", 34662306a36Sopenharmony_ci .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 34762306a36Sopenharmony_ci .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 34862306a36Sopenharmony_ci }, 34962306a36Sopenharmony_ci { 35062306a36Sopenharmony_ci .registers = &dra752_core_temp_sensor_registers, 35162306a36Sopenharmony_ci .ts_data = &dra752_core_temp_sensor_data, 35262306a36Sopenharmony_ci .domain = "core", 35362306a36Sopenharmony_ci .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 35462306a36Sopenharmony_ci .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 35562306a36Sopenharmony_ci }, 35662306a36Sopenharmony_ci { 35762306a36Sopenharmony_ci .registers = &dra752_dspeve_temp_sensor_registers, 35862306a36Sopenharmony_ci .ts_data = &dra752_dspeve_temp_sensor_data, 35962306a36Sopenharmony_ci .domain = "dspeve", 36062306a36Sopenharmony_ci .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 36162306a36Sopenharmony_ci .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 36262306a36Sopenharmony_ci }, 36362306a36Sopenharmony_ci { 36462306a36Sopenharmony_ci .registers = &dra752_iva_temp_sensor_registers, 36562306a36Sopenharmony_ci .ts_data = &dra752_iva_temp_sensor_data, 36662306a36Sopenharmony_ci .domain = "iva", 36762306a36Sopenharmony_ci .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 36862306a36Sopenharmony_ci .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 36962306a36Sopenharmony_ci }, 37062306a36Sopenharmony_ci }, 37162306a36Sopenharmony_ci .sensor_count = 5, 37262306a36Sopenharmony_ci}; 373