| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | config MTK_THERMAL |
| 2 | tristate "Mediatek thermal drivers" |
| 3 | depends on THERMAL_OF |
| 4 | help |
| 5 | This is the option for Mediatek thermal software |
| 6 | solutions. Please enable corresponding options to |
| 7 | get temperature information from thermal sensors or |
| 8 | turn on throttle mechaisms for thermal mitigation. |
| 9 | |
| 10 | if MTK_THERMAL |
| 11 | |
| 12 | config MTK_SOC_THERMAL |
| 13 | tristate "Temperature sensor driver for Mediatek SoCs" |
| 14 | depends on HAS_IOMEM |
| 15 | depends on NVMEM || NVMEM=n |
| 16 | depends on RESET_CONTROLLER |
| 17 | help |
| 18 | Enable this option if you want to get SoC temperature |
| 19 | information for Mediatek platforms. This driver |
| 20 | configures thermal controllers to collect temperature |
| 21 | via AUXADC interface. |
| 22 | |
| 23 | config MTK_SOC_THERMAL_LVTS |
| 24 | tristate "LVTS (Low voltage thermal sensor) driver for Mediatek SoCs" |
| 25 | depends on HAS_IOMEM |
| 26 | depends on NVMEM |
| 27 | depends on RESET_TI_SYSCON |
| 28 | help |
| 29 | Enable this option if you want to get SoC temperature |
| 30 | information for Mediatek platforms. This driver |
| 31 | configures LVTS thermal controllers to collect temperatures |
| 32 | via ASIF interface. |
| 33 | |
| 34 | config MTK_BOARD_THERMAL |
| 35 | tristate "On-board NTC thermistor driver for Mediatek SoCs" |
| 36 | help |
| 37 | Enable this option if you want to get PCB temperature |
| 38 | via on-board NTC for Mediatek platforms. |
| 39 | This driver reads the voltage value from TIA hardware |
| 40 | which is responsible for reading all PMIC AUXADC channels |
| 41 | sequentially. The address of TIA register for each channel |
| 42 | and temperature convert table should be specified in |
| 43 | device tree. |
| 44 | |
| 45 | config MTK_PMIC_THERMAL |
| 46 | tristate "PMIC thermal sensor driver for Mediatek SoCs" |
| 47 | help |
| 48 | Enable this option if you want to get PMIC temperature |
| 49 | for Mediatek platforms. |
| 50 | This driver reads the voltage value from PMIC AUXADC channels, |
| 51 | and converts raw value to PMIC temperature via PMIC efuse data. |
| 52 | |
| 53 | config MTK_MD_THERMAL |
| 54 | tristate "Mediatek Modem cooling framework" |
| 55 | depends on MTK_ECCCI_DRIVER |
| 56 | help |
| 57 | Enable this option to turn on modem throttle mechanisms |
| 58 | for Mediatek platforms. |
| 59 | This option depends on MTK_ECCCI_DRIVER which is the |
| 60 | IPC interface between AP SoC and modem. |
| 61 | |
| 62 | if MTK_MD_THERMAL |
| 63 | |
| 64 | config MTK_MD_THERMAL_MUTT |
| 65 | tristate "Mediatek modem uplink throughput throttle driver" |
| 66 | help |
| 67 | Enable this option if you want to use modem |
| 68 | uplink throughput throttle cooler for Mediatek |
| 69 | platforms. |
| 70 | The throttling levels are defined in modem. |
| 71 | |
| 72 | config MTK_MD_THERMAL_TX_POWER |
| 73 | tristate "Mediatek modem TX power throttle driver" |
| 74 | help |
| 75 | Enable this option if you want use modem TX power |
| 76 | throttle cooler for Mediatek platforms. |
| 77 | This feature is only supported for mt6297 or later |
| 78 | modem platforms. |
| 79 | |
| 80 | config MTK_MD_THERMAL_SCG_OFF |
| 81 | tristate "Mediatek modem SCG cell off driver" |
| 82 | help |
| 83 | Enable this option if you want use modem SCG cell |
| 84 | throttle cooler for Mediatek platforms. |
| 85 | This feature is only supported for mt6297 or later |
| 86 | modem platforms. |
| 87 | |
| 88 | config MTK_MD_THERMAL_SYSFS |
| 89 | tristate "Mediatek modem throttle sysfs driver" |
| 90 | default n |
| 91 | help |
| 92 | Enable this option if you want to use sysfs debug |
| 93 | interface for Mediatek modem coolers. |
| 94 | This option should be enabled only for HW power |
| 95 | evaluation purpose. |
| 96 | endif |
| 97 | |
| 98 | config MTK_MD_RF_THERMAL |
| 99 | tristate "Mediatek modem RF thermal zone driver" |
| 100 | depends on MTK_ECCCI_DRIVER |
| 101 | help |
| 102 | Enable this option if you want to get modem RF |
| 103 | temperature information for Mediatek platforms. |
| 104 | This driver queries temperature via CCCI interface |
| 105 | and handles the feedback from modem in the callback |
| 106 | function which is registered to CCCI driver at |
| 107 | driver initialization stage. |
| 108 | |
| 109 | config MTK_THERMAL_IPI |
| 110 | tristate "Mediatek thermal IPI interface driver" |
| 111 | depends on MTK_TINYSYS_SSPM_SUPPORT |
| 112 | help |
| 113 | Enable this option if you want to use and communicate |
| 114 | with tinysys microprocessors for Mediatek platforms. |
| 115 | This driver defines thermal ipi commands and provides an |
| 116 | API to send a ipi command to tinysys microprocessors. |
| 117 | |
| 118 | if MTK_THERMAL_IPI |
| 119 | config MTK_THERMAL_TRM |
| 120 | tristate "Mediatek thermal risk monitor (TRM) driver" |
| 121 | help |
| 122 | Enable this option if you want to offload Linux thermal |
| 123 | framework (LTF) onto a tinysys microprocesssor when AP MCU |
| 124 | suspended. TRM will take it over and keep monitoring |
| 125 | temperatures. If a device is going to overheat, TRM will |
| 126 | wake AP MCU up and give the control back to LTF. |
| 127 | endif |
| 128 | endif |