18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * OMAP5 thermal driver. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2011-2012 Texas Instruments Inc. 68c2ecf20Sopenharmony_ci * Contact: 78c2ecf20Sopenharmony_ci * Eduardo Valentin <eduardo.valentin@ti.com> 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#include "ti-thermal.h" 118c2ecf20Sopenharmony_ci#include "ti-bandgap.h" 128c2ecf20Sopenharmony_ci#include "omap5xxx-bandgap.h" 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/* 158c2ecf20Sopenharmony_ci * OMAP5430 has three instances of thermal sensor for MPU, GPU & CORE, 168c2ecf20Sopenharmony_ci * need to describe the individual registers and bit fields. 178c2ecf20Sopenharmony_ci */ 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci/* 208c2ecf20Sopenharmony_ci * OMAP5430 MPU thermal sensor register offset and bit-fields 218c2ecf20Sopenharmony_ci */ 228c2ecf20Sopenharmony_cistatic struct temp_sensor_registers 238c2ecf20Sopenharmony_ciomap5430_mpu_temp_sensor_registers = { 248c2ecf20Sopenharmony_ci .temp_sensor_ctrl = OMAP5430_TEMP_SENSOR_MPU_OFFSET, 258c2ecf20Sopenharmony_ci .bgap_tempsoff_mask = OMAP5430_BGAP_TEMPSOFF_MASK, 268c2ecf20Sopenharmony_ci .bgap_eocz_mask = OMAP5430_BGAP_TEMP_SENSOR_EOCZ_MASK, 278c2ecf20Sopenharmony_ci .bgap_dtemp_mask = OMAP5430_BGAP_TEMP_SENSOR_DTEMP_MASK, 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci .bgap_mask_ctrl = OMAP5430_BGAP_CTRL_OFFSET, 308c2ecf20Sopenharmony_ci .mask_hot_mask = OMAP5430_MASK_HOT_MPU_MASK, 318c2ecf20Sopenharmony_ci .mask_cold_mask = OMAP5430_MASK_COLD_MPU_MASK, 328c2ecf20Sopenharmony_ci .mask_counter_delay_mask = OMAP5430_MASK_COUNTER_DELAY_MASK, 338c2ecf20Sopenharmony_ci .mask_freeze_mask = OMAP5430_MASK_FREEZE_MPU_MASK, 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci .bgap_counter = OMAP5430_BGAP_CTRL_OFFSET, 368c2ecf20Sopenharmony_ci .counter_mask = OMAP5430_COUNTER_MASK, 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci .bgap_threshold = OMAP5430_BGAP_THRESHOLD_MPU_OFFSET, 398c2ecf20Sopenharmony_ci .threshold_thot_mask = OMAP5430_T_HOT_MASK, 408c2ecf20Sopenharmony_ci .threshold_tcold_mask = OMAP5430_T_COLD_MASK, 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci .tshut_threshold = OMAP5430_BGAP_TSHUT_MPU_OFFSET, 438c2ecf20Sopenharmony_ci .tshut_hot_mask = OMAP5430_TSHUT_HOT_MASK, 448c2ecf20Sopenharmony_ci .tshut_cold_mask = OMAP5430_TSHUT_COLD_MASK, 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci .bgap_status = OMAP5430_BGAP_STATUS_OFFSET, 478c2ecf20Sopenharmony_ci .status_hot_mask = OMAP5430_HOT_MPU_FLAG_MASK, 488c2ecf20Sopenharmony_ci .status_cold_mask = OMAP5430_COLD_MPU_FLAG_MASK, 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci .ctrl_dtemp_1 = OMAP5430_BGAP_DTEMP_MPU_1_OFFSET, 518c2ecf20Sopenharmony_ci .ctrl_dtemp_2 = OMAP5430_BGAP_DTEMP_MPU_2_OFFSET, 528c2ecf20Sopenharmony_ci .bgap_efuse = OMAP5430_FUSE_OPP_BGAP_MPU, 538c2ecf20Sopenharmony_ci}; 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci/* 568c2ecf20Sopenharmony_ci * OMAP5430 GPU thermal sensor register offset and bit-fields 578c2ecf20Sopenharmony_ci */ 588c2ecf20Sopenharmony_cistatic struct temp_sensor_registers 598c2ecf20Sopenharmony_ciomap5430_gpu_temp_sensor_registers = { 608c2ecf20Sopenharmony_ci .temp_sensor_ctrl = OMAP5430_TEMP_SENSOR_GPU_OFFSET, 618c2ecf20Sopenharmony_ci .bgap_tempsoff_mask = OMAP5430_BGAP_TEMPSOFF_MASK, 628c2ecf20Sopenharmony_ci .bgap_eocz_mask = OMAP5430_BGAP_TEMP_SENSOR_EOCZ_MASK, 638c2ecf20Sopenharmony_ci .bgap_dtemp_mask = OMAP5430_BGAP_TEMP_SENSOR_DTEMP_MASK, 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci .bgap_mask_ctrl = OMAP5430_BGAP_CTRL_OFFSET, 668c2ecf20Sopenharmony_ci .mask_hot_mask = OMAP5430_MASK_HOT_GPU_MASK, 678c2ecf20Sopenharmony_ci .mask_cold_mask = OMAP5430_MASK_COLD_GPU_MASK, 688c2ecf20Sopenharmony_ci .mask_counter_delay_mask = OMAP5430_MASK_COUNTER_DELAY_MASK, 698c2ecf20Sopenharmony_ci .mask_freeze_mask = OMAP5430_MASK_FREEZE_GPU_MASK, 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ci .bgap_counter = OMAP5430_BGAP_CTRL_OFFSET, 728c2ecf20Sopenharmony_ci .counter_mask = OMAP5430_COUNTER_MASK, 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci .bgap_threshold = OMAP5430_BGAP_THRESHOLD_GPU_OFFSET, 758c2ecf20Sopenharmony_ci .threshold_thot_mask = OMAP5430_T_HOT_MASK, 768c2ecf20Sopenharmony_ci .threshold_tcold_mask = OMAP5430_T_COLD_MASK, 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci .tshut_threshold = OMAP5430_BGAP_TSHUT_GPU_OFFSET, 798c2ecf20Sopenharmony_ci .tshut_hot_mask = OMAP5430_TSHUT_HOT_MASK, 808c2ecf20Sopenharmony_ci .tshut_cold_mask = OMAP5430_TSHUT_COLD_MASK, 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ci .bgap_status = OMAP5430_BGAP_STATUS_OFFSET, 838c2ecf20Sopenharmony_ci .status_hot_mask = OMAP5430_HOT_GPU_FLAG_MASK, 848c2ecf20Sopenharmony_ci .status_cold_mask = OMAP5430_COLD_GPU_FLAG_MASK, 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci .ctrl_dtemp_1 = OMAP5430_BGAP_DTEMP_GPU_1_OFFSET, 878c2ecf20Sopenharmony_ci .ctrl_dtemp_2 = OMAP5430_BGAP_DTEMP_GPU_2_OFFSET, 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ci .bgap_efuse = OMAP5430_FUSE_OPP_BGAP_GPU, 908c2ecf20Sopenharmony_ci}; 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci/* 938c2ecf20Sopenharmony_ci * OMAP5430 CORE thermal sensor register offset and bit-fields 948c2ecf20Sopenharmony_ci */ 958c2ecf20Sopenharmony_cistatic struct temp_sensor_registers 968c2ecf20Sopenharmony_ciomap5430_core_temp_sensor_registers = { 978c2ecf20Sopenharmony_ci .temp_sensor_ctrl = OMAP5430_TEMP_SENSOR_CORE_OFFSET, 988c2ecf20Sopenharmony_ci .bgap_tempsoff_mask = OMAP5430_BGAP_TEMPSOFF_MASK, 998c2ecf20Sopenharmony_ci .bgap_eocz_mask = OMAP5430_BGAP_TEMP_SENSOR_EOCZ_MASK, 1008c2ecf20Sopenharmony_ci .bgap_dtemp_mask = OMAP5430_BGAP_TEMP_SENSOR_DTEMP_MASK, 1018c2ecf20Sopenharmony_ci 1028c2ecf20Sopenharmony_ci .bgap_mask_ctrl = OMAP5430_BGAP_CTRL_OFFSET, 1038c2ecf20Sopenharmony_ci .mask_hot_mask = OMAP5430_MASK_HOT_CORE_MASK, 1048c2ecf20Sopenharmony_ci .mask_cold_mask = OMAP5430_MASK_COLD_CORE_MASK, 1058c2ecf20Sopenharmony_ci .mask_counter_delay_mask = OMAP5430_MASK_COUNTER_DELAY_MASK, 1068c2ecf20Sopenharmony_ci .mask_freeze_mask = OMAP5430_MASK_FREEZE_CORE_MASK, 1078c2ecf20Sopenharmony_ci 1088c2ecf20Sopenharmony_ci .bgap_counter = OMAP5430_BGAP_CTRL_OFFSET, 1098c2ecf20Sopenharmony_ci .counter_mask = OMAP5430_COUNTER_MASK, 1108c2ecf20Sopenharmony_ci 1118c2ecf20Sopenharmony_ci .bgap_threshold = OMAP5430_BGAP_THRESHOLD_CORE_OFFSET, 1128c2ecf20Sopenharmony_ci .threshold_thot_mask = OMAP5430_T_HOT_MASK, 1138c2ecf20Sopenharmony_ci .threshold_tcold_mask = OMAP5430_T_COLD_MASK, 1148c2ecf20Sopenharmony_ci 1158c2ecf20Sopenharmony_ci .tshut_threshold = OMAP5430_BGAP_TSHUT_CORE_OFFSET, 1168c2ecf20Sopenharmony_ci .tshut_hot_mask = OMAP5430_TSHUT_HOT_MASK, 1178c2ecf20Sopenharmony_ci .tshut_cold_mask = OMAP5430_TSHUT_COLD_MASK, 1188c2ecf20Sopenharmony_ci 1198c2ecf20Sopenharmony_ci .bgap_status = OMAP5430_BGAP_STATUS_OFFSET, 1208c2ecf20Sopenharmony_ci .status_hot_mask = OMAP5430_HOT_CORE_FLAG_MASK, 1218c2ecf20Sopenharmony_ci .status_cold_mask = OMAP5430_COLD_CORE_FLAG_MASK, 1228c2ecf20Sopenharmony_ci 1238c2ecf20Sopenharmony_ci .ctrl_dtemp_1 = OMAP5430_BGAP_DTEMP_CORE_1_OFFSET, 1248c2ecf20Sopenharmony_ci .ctrl_dtemp_2 = OMAP5430_BGAP_DTEMP_CORE_2_OFFSET, 1258c2ecf20Sopenharmony_ci 1268c2ecf20Sopenharmony_ci .bgap_efuse = OMAP5430_FUSE_OPP_BGAP_CORE, 1278c2ecf20Sopenharmony_ci}; 1288c2ecf20Sopenharmony_ci 1298c2ecf20Sopenharmony_ci/* Thresholds and limits for OMAP5430 MPU temperature sensor */ 1308c2ecf20Sopenharmony_cistatic struct temp_sensor_data omap5430_mpu_temp_sensor_data = { 1318c2ecf20Sopenharmony_ci .tshut_hot = OMAP5430_MPU_TSHUT_HOT, 1328c2ecf20Sopenharmony_ci .tshut_cold = OMAP5430_MPU_TSHUT_COLD, 1338c2ecf20Sopenharmony_ci .t_hot = OMAP5430_MPU_T_HOT, 1348c2ecf20Sopenharmony_ci .t_cold = OMAP5430_MPU_T_COLD, 1358c2ecf20Sopenharmony_ci .min_freq = OMAP5430_MPU_MIN_FREQ, 1368c2ecf20Sopenharmony_ci .max_freq = OMAP5430_MPU_MAX_FREQ, 1378c2ecf20Sopenharmony_ci}; 1388c2ecf20Sopenharmony_ci 1398c2ecf20Sopenharmony_ci/* Thresholds and limits for OMAP5430 GPU temperature sensor */ 1408c2ecf20Sopenharmony_cistatic struct temp_sensor_data omap5430_gpu_temp_sensor_data = { 1418c2ecf20Sopenharmony_ci .tshut_hot = OMAP5430_GPU_TSHUT_HOT, 1428c2ecf20Sopenharmony_ci .tshut_cold = OMAP5430_GPU_TSHUT_COLD, 1438c2ecf20Sopenharmony_ci .t_hot = OMAP5430_GPU_T_HOT, 1448c2ecf20Sopenharmony_ci .t_cold = OMAP5430_GPU_T_COLD, 1458c2ecf20Sopenharmony_ci .min_freq = OMAP5430_GPU_MIN_FREQ, 1468c2ecf20Sopenharmony_ci .max_freq = OMAP5430_GPU_MAX_FREQ, 1478c2ecf20Sopenharmony_ci}; 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_ci/* Thresholds and limits for OMAP5430 CORE temperature sensor */ 1508c2ecf20Sopenharmony_cistatic struct temp_sensor_data omap5430_core_temp_sensor_data = { 1518c2ecf20Sopenharmony_ci .tshut_hot = OMAP5430_CORE_TSHUT_HOT, 1528c2ecf20Sopenharmony_ci .tshut_cold = OMAP5430_CORE_TSHUT_COLD, 1538c2ecf20Sopenharmony_ci .t_hot = OMAP5430_CORE_T_HOT, 1548c2ecf20Sopenharmony_ci .t_cold = OMAP5430_CORE_T_COLD, 1558c2ecf20Sopenharmony_ci .min_freq = OMAP5430_CORE_MIN_FREQ, 1568c2ecf20Sopenharmony_ci .max_freq = OMAP5430_CORE_MAX_FREQ, 1578c2ecf20Sopenharmony_ci}; 1588c2ecf20Sopenharmony_ci 1598c2ecf20Sopenharmony_ci/* 1608c2ecf20Sopenharmony_ci * OMAP54xx ES2.0 : Temperature values in milli degree celsius 1618c2ecf20Sopenharmony_ci * ADC code values from 540 to 945 1628c2ecf20Sopenharmony_ci */ 1638c2ecf20Sopenharmony_cistatic int 1648c2ecf20Sopenharmony_ciomap5430_adc_to_temp[ 1658c2ecf20Sopenharmony_ci OMAP5430_ADC_END_VALUE - OMAP5430_ADC_START_VALUE + 1] = { 1668c2ecf20Sopenharmony_ci /* Index 540 - 549 */ 1678c2ecf20Sopenharmony_ci -40000, -40000, -40000, -40000, -39800, -39400, -39000, -38600, -38200, 1688c2ecf20Sopenharmony_ci -37800, 1698c2ecf20Sopenharmony_ci /* Index 550 - 559 */ 1708c2ecf20Sopenharmony_ci -37400, -37000, -36600, -36200, -35800, -35300, -34700, -34200, -33800, 1718c2ecf20Sopenharmony_ci -33400, 1728c2ecf20Sopenharmony_ci /* Index 560 - 569 */ 1738c2ecf20Sopenharmony_ci -33000, -32600, -32200, -31800, -31400, -31000, -30600, -30200, -29800, 1748c2ecf20Sopenharmony_ci -29400, 1758c2ecf20Sopenharmony_ci /* Index 570 - 579 */ 1768c2ecf20Sopenharmony_ci -29000, -28600, -28200, -27700, -27100, -26600, -26200, -25800, -25400, 1778c2ecf20Sopenharmony_ci -25000, 1788c2ecf20Sopenharmony_ci /* Index 580 - 589 */ 1798c2ecf20Sopenharmony_ci -24600, -24200, -23800, -23400, -23000, -22600, -22200, -21600, -21400, 1808c2ecf20Sopenharmony_ci -21000, 1818c2ecf20Sopenharmony_ci /* Index 590 - 599 */ 1828c2ecf20Sopenharmony_ci -20500, -19900, -19400, -19000, -18600, -18200, -17800, -17400, -17000, 1838c2ecf20Sopenharmony_ci -16600, 1848c2ecf20Sopenharmony_ci /* Index 600 - 609 */ 1858c2ecf20Sopenharmony_ci -16200, -15800, -15400, -15000, -14600, -14200, -13800, -13400, -13000, 1868c2ecf20Sopenharmony_ci -12500, 1878c2ecf20Sopenharmony_ci /* Index 610 - 619 */ 1888c2ecf20Sopenharmony_ci -11900, -11400, -11000, -10600, -10200, -9800, -9400, -9000, -8600, 1898c2ecf20Sopenharmony_ci -8200, 1908c2ecf20Sopenharmony_ci /* Index 620 - 629 */ 1918c2ecf20Sopenharmony_ci -7800, -7400, -7000, -6600, -6200, -5800, -5400, -5000, -4500, -3900, 1928c2ecf20Sopenharmony_ci /* Index 630 - 639 */ 1938c2ecf20Sopenharmony_ci -3400, -3000, -2600, -2200, -1800, -1400, -1000, -600, -200, 200, 1948c2ecf20Sopenharmony_ci /* Index 640 - 649 */ 1958c2ecf20Sopenharmony_ci 600, 1000, 1400, 1800, 2200, 2600, 3000, 3400, 3900, 4500, 1968c2ecf20Sopenharmony_ci /* Index 650 - 659 */ 1978c2ecf20Sopenharmony_ci 5000, 5400, 5800, 6200, 6600, 7000, 7400, 7800, 8200, 8600, 1988c2ecf20Sopenharmony_ci /* Index 660 - 669 */ 1998c2ecf20Sopenharmony_ci 9000, 9400, 9800, 10200, 10600, 11000, 11400, 11800, 12200, 12700, 2008c2ecf20Sopenharmony_ci /* Index 670 - 679 */ 2018c2ecf20Sopenharmony_ci 13300, 13800, 14200, 14600, 15000, 15400, 15800, 16200, 16600, 17000, 2028c2ecf20Sopenharmony_ci /* Index 680 - 689 */ 2038c2ecf20Sopenharmony_ci 17400, 17800, 18200, 18600, 19000, 19400, 19800, 20200, 20600, 21100, 2048c2ecf20Sopenharmony_ci /* Index 690 - 699 */ 2058c2ecf20Sopenharmony_ci 21400, 21900, 22500, 23000, 23400, 23800, 24200, 24600, 25000, 25400, 2068c2ecf20Sopenharmony_ci /* Index 700 - 709 */ 2078c2ecf20Sopenharmony_ci 25800, 26200, 26600, 27000, 27400, 27800, 28200, 28600, 29000, 29400, 2088c2ecf20Sopenharmony_ci /* Index 710 - 719 */ 2098c2ecf20Sopenharmony_ci 29800, 30200, 30600, 31000, 31400, 31900, 32500, 33000, 33400, 33800, 2108c2ecf20Sopenharmony_ci /* Index 720 - 729 */ 2118c2ecf20Sopenharmony_ci 34200, 34600, 35000, 35400, 35800, 36200, 36600, 37000, 37400, 37800, 2128c2ecf20Sopenharmony_ci /* Index 730 - 739 */ 2138c2ecf20Sopenharmony_ci 38200, 38600, 39000, 39400, 39800, 40200, 40600, 41000, 41400, 41800, 2148c2ecf20Sopenharmony_ci /* Index 740 - 749 */ 2158c2ecf20Sopenharmony_ci 42200, 42600, 43100, 43700, 44200, 44600, 45000, 45400, 45800, 46200, 2168c2ecf20Sopenharmony_ci /* Index 750 - 759 */ 2178c2ecf20Sopenharmony_ci 46600, 47000, 47400, 47800, 48200, 48600, 49000, 49400, 49800, 50200, 2188c2ecf20Sopenharmony_ci /* Index 760 - 769 */ 2198c2ecf20Sopenharmony_ci 50600, 51000, 51400, 51800, 52200, 52600, 53000, 53400, 53800, 54200, 2208c2ecf20Sopenharmony_ci /* Index 770 - 779 */ 2218c2ecf20Sopenharmony_ci 54600, 55000, 55400, 55900, 56500, 57000, 57400, 57800, 58200, 58600, 2228c2ecf20Sopenharmony_ci /* Index 780 - 789 */ 2238c2ecf20Sopenharmony_ci 59000, 59400, 59800, 60200, 60600, 61000, 61400, 61800, 62200, 62600, 2248c2ecf20Sopenharmony_ci /* Index 790 - 799 */ 2258c2ecf20Sopenharmony_ci 63000, 63400, 63800, 64200, 64600, 65000, 65400, 65800, 66200, 66600, 2268c2ecf20Sopenharmony_ci /* Index 800 - 809 */ 2278c2ecf20Sopenharmony_ci 67000, 67400, 67800, 68200, 68600, 69000, 69400, 69800, 70200, 70600, 2288c2ecf20Sopenharmony_ci /* Index 810 - 819 */ 2298c2ecf20Sopenharmony_ci 71000, 71500, 72100, 72600, 73000, 73400, 73800, 74200, 74600, 75000, 2308c2ecf20Sopenharmony_ci /* Index 820 - 829 */ 2318c2ecf20Sopenharmony_ci 75400, 75800, 76200, 76600, 77000, 77400, 77800, 78200, 78600, 79000, 2328c2ecf20Sopenharmony_ci /* Index 830 - 839 */ 2338c2ecf20Sopenharmony_ci 79400, 79800, 80200, 80600, 81000, 81400, 81800, 82200, 82600, 83000, 2348c2ecf20Sopenharmony_ci /* Index 840 - 849 */ 2358c2ecf20Sopenharmony_ci 83400, 83800, 84200, 84600, 85000, 85400, 85800, 86200, 86600, 87000, 2368c2ecf20Sopenharmony_ci /* Index 850 - 859 */ 2378c2ecf20Sopenharmony_ci 87400, 87800, 88200, 88600, 89000, 89400, 89800, 90200, 90600, 91000, 2388c2ecf20Sopenharmony_ci /* Index 860 - 869 */ 2398c2ecf20Sopenharmony_ci 91400, 91800, 92200, 92600, 93000, 93400, 93800, 94200, 94600, 95000, 2408c2ecf20Sopenharmony_ci /* Index 870 - 879 */ 2418c2ecf20Sopenharmony_ci 95400, 95800, 96200, 96600, 97000, 97500, 98100, 98600, 99000, 99400, 2428c2ecf20Sopenharmony_ci /* Index 880 - 889 */ 2438c2ecf20Sopenharmony_ci 99800, 100200, 100600, 101000, 101400, 101800, 102200, 102600, 103000, 2448c2ecf20Sopenharmony_ci 103400, 2458c2ecf20Sopenharmony_ci /* Index 890 - 899 */ 2468c2ecf20Sopenharmony_ci 103800, 104200, 104600, 105000, 105400, 105800, 106200, 106600, 107000, 2478c2ecf20Sopenharmony_ci 107400, 2488c2ecf20Sopenharmony_ci /* Index 900 - 909 */ 2498c2ecf20Sopenharmony_ci 107800, 108200, 108600, 109000, 109400, 109800, 110200, 110600, 111000, 2508c2ecf20Sopenharmony_ci 111400, 2518c2ecf20Sopenharmony_ci /* Index 910 - 919 */ 2528c2ecf20Sopenharmony_ci 111800, 112200, 112600, 113000, 113400, 113800, 114200, 114600, 115000, 2538c2ecf20Sopenharmony_ci 115400, 2548c2ecf20Sopenharmony_ci /* Index 920 - 929 */ 2558c2ecf20Sopenharmony_ci 115800, 116200, 116600, 117000, 117400, 117800, 118200, 118600, 119000, 2568c2ecf20Sopenharmony_ci 119400, 2578c2ecf20Sopenharmony_ci /* Index 930 - 939 */ 2588c2ecf20Sopenharmony_ci 119800, 120200, 120600, 121000, 121400, 121800, 122400, 122600, 123000, 2598c2ecf20Sopenharmony_ci 123400, 2608c2ecf20Sopenharmony_ci /* Index 940 - 945 */ 2618c2ecf20Sopenharmony_ci 123800, 124200, 124600, 124900, 125000, 125000, 2628c2ecf20Sopenharmony_ci}; 2638c2ecf20Sopenharmony_ci 2648c2ecf20Sopenharmony_ci/* OMAP54xx ES2.0 data */ 2658c2ecf20Sopenharmony_ciconst struct ti_bandgap_data omap5430_data = { 2668c2ecf20Sopenharmony_ci .features = TI_BANDGAP_FEATURE_TSHUT_CONFIG | 2678c2ecf20Sopenharmony_ci TI_BANDGAP_FEATURE_FREEZE_BIT | 2688c2ecf20Sopenharmony_ci TI_BANDGAP_FEATURE_TALERT | 2698c2ecf20Sopenharmony_ci TI_BANDGAP_FEATURE_COUNTER_DELAY | 2708c2ecf20Sopenharmony_ci TI_BANDGAP_FEATURE_HISTORY_BUFFER, 2718c2ecf20Sopenharmony_ci .fclock_name = "l3instr_ts_gclk_div", 2728c2ecf20Sopenharmony_ci .div_ck_name = "l3instr_ts_gclk_div", 2738c2ecf20Sopenharmony_ci .conv_table = omap5430_adc_to_temp, 2748c2ecf20Sopenharmony_ci .adc_start_val = OMAP5430_ADC_START_VALUE, 2758c2ecf20Sopenharmony_ci .adc_end_val = OMAP5430_ADC_END_VALUE, 2768c2ecf20Sopenharmony_ci .expose_sensor = ti_thermal_expose_sensor, 2778c2ecf20Sopenharmony_ci .remove_sensor = ti_thermal_remove_sensor, 2788c2ecf20Sopenharmony_ci .report_temperature = ti_thermal_report_sensor_temperature, 2798c2ecf20Sopenharmony_ci .sensors = { 2808c2ecf20Sopenharmony_ci { 2818c2ecf20Sopenharmony_ci .registers = &omap5430_mpu_temp_sensor_registers, 2828c2ecf20Sopenharmony_ci .ts_data = &omap5430_mpu_temp_sensor_data, 2838c2ecf20Sopenharmony_ci .domain = "cpu", 2848c2ecf20Sopenharmony_ci .register_cooling = ti_thermal_register_cpu_cooling, 2858c2ecf20Sopenharmony_ci .unregister_cooling = ti_thermal_unregister_cpu_cooling, 2868c2ecf20Sopenharmony_ci .slope_pcb = OMAP_GRADIENT_SLOPE_W_PCB_5430_CPU, 2878c2ecf20Sopenharmony_ci .constant_pcb = OMAP_GRADIENT_CONST_W_PCB_5430_CPU, 2888c2ecf20Sopenharmony_ci }, 2898c2ecf20Sopenharmony_ci { 2908c2ecf20Sopenharmony_ci .registers = &omap5430_gpu_temp_sensor_registers, 2918c2ecf20Sopenharmony_ci .ts_data = &omap5430_gpu_temp_sensor_data, 2928c2ecf20Sopenharmony_ci .domain = "gpu", 2938c2ecf20Sopenharmony_ci .slope_pcb = OMAP_GRADIENT_SLOPE_W_PCB_5430_GPU, 2948c2ecf20Sopenharmony_ci .constant_pcb = OMAP_GRADIENT_CONST_W_PCB_5430_GPU, 2958c2ecf20Sopenharmony_ci }, 2968c2ecf20Sopenharmony_ci { 2978c2ecf20Sopenharmony_ci .registers = &omap5430_core_temp_sensor_registers, 2988c2ecf20Sopenharmony_ci .ts_data = &omap5430_core_temp_sensor_data, 2998c2ecf20Sopenharmony_ci .domain = "core", 3008c2ecf20Sopenharmony_ci }, 3018c2ecf20Sopenharmony_ci }, 3028c2ecf20Sopenharmony_ci .sensor_count = 3, 3038c2ecf20Sopenharmony_ci}; 304