Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Generic thermal drivers configuration
  4. #
  5. menuconfig THERMAL
  6. bool "Thermal drivers"
  7. help
  8. Thermal drivers offer a generic mechanism for
  9. thermal management. Usually it's made up of one or more thermal
  10. zones and cooling devices.
  11. Each thermal zone contains its own temperature, trip points,
  12. and cooling devices.
  13. All platforms with ACPI or Open Firmware thermal support can use
  14. this driver.
  15. If you want this support, you should say Y here.
  16. if THERMAL
  17. config THERMAL_NETLINK
  18. bool "Thermal netlink management"
  19. depends on NET
  20. help
  21. The thermal framework has a netlink interface to do thermal
  22. zones discovery, temperature readings and events such as
  23. trip point crossed, cooling device update or governor
  24. change. It is recommended to enable the feature.
  25. config THERMAL_STATISTICS
  26. bool "Thermal state transition statistics"
  27. help
  28. Export thermal state transition statistics information through sysfs.
  29. If in doubt, say N.
  30. config THERMAL_EMERGENCY_POWEROFF_DELAY_MS
  31. int "Emergency poweroff delay in milli-seconds"
  32. default 0
  33. help
  34. Thermal subsystem will issue a graceful shutdown when
  35. critical temperatures are reached using orderly_poweroff(). In
  36. case of failure of an orderly_poweroff(), the thermal emergency
  37. poweroff kicks in after a delay has elapsed and shuts down the system.
  38. This config is number of milliseconds to delay before emergency
  39. poweroff kicks in. Similarly to the critical trip point,
  40. the delay should be carefully profiled so as to give adequate
  41. time for orderly_poweroff() to finish on regular execution.
  42. If set to 0 emergency poweroff will not be supported.
  43. In doubt, leave as 0.
  44. config THERMAL_HWMON
  45. bool
  46. prompt "Expose thermal sensors as hwmon device"
  47. depends on HWMON=y || HWMON=THERMAL
  48. default y
  49. help
  50. In case a sensor is registered with the thermal
  51. framework, this option will also register it
  52. as a hwmon. The sensor will then have the common
  53. hwmon sysfs interface.
  54. Say 'Y' here if you want all thermal sensors to
  55. have hwmon sysfs interface too.
  56. config THERMAL_OF
  57. bool
  58. prompt "APIs to parse thermal data out of device tree"
  59. depends on OF
  60. default y
  61. help
  62. This options provides helpers to add the support to
  63. read and parse thermal data definitions out of the
  64. device tree blob.
  65. Say 'Y' here if you need to build thermal infrastructure
  66. based on device tree.
  67. config THERMAL_WRITABLE_TRIPS
  68. bool "Enable writable trip points"
  69. help
  70. This option allows the system integrator to choose whether
  71. trip temperatures can be changed from userspace. The
  72. writable trips need to be specified when setting up the
  73. thermal zone but the choice here takes precedence.
  74. Say 'Y' here if you would like to allow userspace tools to
  75. change trip temperatures.
  76. choice
  77. prompt "Default Thermal governor"
  78. default THERMAL_DEFAULT_GOV_STEP_WISE
  79. help
  80. This option sets which thermal governor shall be loaded at
  81. startup. If in doubt, select 'step_wise'.
  82. config THERMAL_DEFAULT_GOV_STEP_WISE
  83. bool "step_wise"
  84. select THERMAL_GOV_STEP_WISE
  85. help
  86. Use the step_wise governor as default. This throttles the
  87. devices one step at a time.
  88. config THERMAL_DEFAULT_GOV_FAIR_SHARE
  89. bool "fair_share"
  90. select THERMAL_GOV_FAIR_SHARE
  91. help
  92. Use the fair_share governor as default. This throttles the
  93. devices based on their 'contribution' to a zone. The
  94. contribution should be provided through platform data.
  95. config THERMAL_DEFAULT_GOV_USER_SPACE
  96. bool "user_space"
  97. select THERMAL_GOV_USER_SPACE
  98. help
  99. Select this if you want to let the user space manage the
  100. platform thermals.
  101. config THERMAL_DEFAULT_GOV_POWER_ALLOCATOR
  102. bool "power_allocator"
  103. depends on THERMAL_GOV_POWER_ALLOCATOR
  104. help
  105. Select this if you want to control temperature based on
  106. system and device power allocation. This governor can only
  107. operate on cooling devices that implement the power API.
  108. endchoice
  109. config THERMAL_GOV_FAIR_SHARE
  110. bool "Fair-share thermal governor"
  111. help
  112. Enable this to manage platform thermals using fair-share governor.
  113. config THERMAL_GOV_STEP_WISE
  114. bool "Step_wise thermal governor"
  115. help
  116. Enable this to manage platform thermals using a simple linear
  117. governor.
  118. config THERMAL_GOV_BANG_BANG
  119. bool "Bang Bang thermal governor"
  120. default n
  121. help
  122. Enable this to manage platform thermals using bang bang governor.
  123. Say 'Y' here if you want to use two point temperature regulation
  124. used for fans without throttling. Some fan drivers depend on this
  125. governor to be enabled (e.g. acerhdf).
  126. config THERMAL_GOV_USER_SPACE
  127. bool "User_space thermal governor"
  128. help
  129. Enable this to let the user space manage the platform thermals.
  130. config THERMAL_GOV_POWER_ALLOCATOR
  131. bool "Power allocator thermal governor"
  132. depends on ENERGY_MODEL
  133. help
  134. Enable this to manage platform thermals by dynamically
  135. allocating and limiting power to devices.
  136. config CPU_THERMAL
  137. bool "Generic cpu cooling support"
  138. depends on THERMAL_OF
  139. help
  140. Enable the CPU cooling features. If the system has no active
  141. cooling device available, this option allows to use the CPU
  142. as a cooling device.
  143. if CPU_THERMAL
  144. config CPU_FREQ_THERMAL
  145. bool "CPU frequency cooling device"
  146. depends on CPU_FREQ
  147. default y
  148. help
  149. This implements the generic cpu cooling mechanism through frequency
  150. reduction. An ACPI version of this already exists
  151. (drivers/acpi/processor_thermal.c).
  152. This will be useful for platforms using the generic thermal interface
  153. and not the ACPI interface.
  154. config CPU_IDLE_THERMAL
  155. bool "CPU idle cooling device"
  156. depends on IDLE_INJECT
  157. help
  158. This implements the CPU cooling mechanism through
  159. idle injection. This will throttle the CPU by injecting
  160. idle cycle.
  161. endif
  162. config DEVFREQ_THERMAL
  163. bool "Generic device cooling support"
  164. depends on PM_DEVFREQ
  165. depends on PM_OPP
  166. help
  167. This implements the generic devfreq cooling mechanism through
  168. frequency reduction for devices using devfreq.
  169. This will throttle the device by limiting the maximum allowed DVFS
  170. frequency corresponding to the cooling level.
  171. In order to use the power extensions of the cooling device,
  172. devfreq should use the simple_ondemand governor.
  173. If you want this support, you should say Y here.
  174. config THERMAL_EMULATION
  175. bool "Thermal emulation mode support"
  176. help
  177. Enable this option to make a emul_temp sysfs node in thermal zone
  178. directory to support temperature emulation. With emulation sysfs node,
  179. user can manually input temperature and test the different trip
  180. threshold behaviour for simulation purpose.
  181. WARNING: Be careful while enabling this option on production systems,
  182. because userland can easily disable the thermal policy by simply
  183. flooding this sysfs node with low temperature values.
  184. config THERMAL_MMIO
  185. tristate "Generic Thermal MMIO driver"
  186. depends on OF || COMPILE_TEST
  187. depends on HAS_IOMEM
  188. help
  189. This option enables the generic thermal MMIO driver that will use
  190. memory-mapped reads to get the temperature. Any HW/System that
  191. allows temperature reading by a single memory-mapped reading, be it
  192. register or shared memory, is a potential candidate to work with this
  193. driver.
  194. config HISI_THERMAL
  195. tristate "Hisilicon thermal driver"
  196. depends on ARCH_HISI || COMPILE_TEST
  197. depends on HAS_IOMEM
  198. depends on OF
  199. default y
  200. help
  201. Enable this to plug hisilicon's thermal sensor driver into the Linux
  202. thermal framework. cpufreq is used as the cooling device to throttle
  203. CPUs when the passive trip is crossed.
  204. config IMX_THERMAL
  205. tristate "Temperature sensor driver for Freescale i.MX SoCs"
  206. depends on ARCH_MXC || COMPILE_TEST
  207. depends on NVMEM || !NVMEM
  208. depends on MFD_SYSCON
  209. depends on OF
  210. help
  211. Support for Temperature Monitor (TEMPMON) found on Freescale i.MX SoCs.
  212. It supports one critical trip point and one passive trip point. The
  213. cpufreq is used as the cooling device to throttle CPUs when the
  214. passive trip is crossed.
  215. config IMX_SC_THERMAL
  216. tristate "Temperature sensor driver for NXP i.MX SoCs with System Controller"
  217. depends on IMX_SCU
  218. depends on OF
  219. help
  220. Support for Temperature Monitor (TEMPMON) found on NXP i.MX SoCs with
  221. system controller inside, Linux kernel has to communicate with system
  222. controller via MU (message unit) IPC to get temperature from thermal
  223. sensor. It supports one critical trip point and one
  224. passive trip point for each thermal sensor.
  225. config IMX8MM_THERMAL
  226. tristate "Temperature sensor driver for Freescale i.MX8MM SoC"
  227. depends on ARCH_MXC || COMPILE_TEST
  228. depends on OF
  229. help
  230. Support for Thermal Monitoring Unit (TMU) found on Freescale i.MX8MM SoC.
  231. It supports one critical trip point and one passive trip point. The
  232. cpufreq is used as the cooling device to throttle CPUs when the passive
  233. trip is crossed.
  234. config K3_THERMAL
  235. tristate "Texas Instruments K3 thermal support"
  236. depends on ARCH_K3 || COMPILE_TEST
  237. help
  238. If you say yes here you get thermal support for the Texas Instruments
  239. K3 SoC family. The current chip supported is:
  240. - AM654
  241. This includes temperature reading functionality.
  242. config MAX77620_THERMAL
  243. tristate "Temperature sensor driver for Maxim MAX77620 PMIC"
  244. depends on MFD_MAX77620
  245. depends on OF
  246. help
  247. Support for die junction temperature warning alarm for Maxim
  248. Semiconductor PMIC MAX77620 device. Device generates two alarm
  249. interrupts when PMIC die temperature cross the threshold of
  250. 120 degC and 140 degC.
  251. config QORIQ_THERMAL
  252. tristate "QorIQ Thermal Monitoring Unit"
  253. depends on THERMAL_OF && HAS_IOMEM
  254. depends on PPC_E500MC || SOC_LS1021A || ARCH_LAYERSCAPE || (ARCH_MXC && ARM64) || COMPILE_TEST
  255. select REGMAP_MMIO
  256. help
  257. Support for Thermal Monitoring Unit (TMU) found on QorIQ platforms.
  258. It supports one critical trip point and one passive trip point. The
  259. cpufreq is used as the cooling device to throttle CPUs when the
  260. passive trip is crossed.
  261. config SPEAR_THERMAL
  262. tristate "SPEAr thermal sensor driver"
  263. depends on PLAT_SPEAR || COMPILE_TEST
  264. depends on HAS_IOMEM
  265. depends on OF
  266. help
  267. Enable this to plug the SPEAr thermal sensor driver into the Linux
  268. thermal framework.
  269. config SUN8I_THERMAL
  270. tristate "Allwinner sun8i thermal driver"
  271. depends on ARCH_SUNXI || COMPILE_TEST
  272. depends on HAS_IOMEM
  273. depends on NVMEM
  274. depends on OF
  275. depends on RESET_CONTROLLER
  276. help
  277. Support for the sun8i thermal sensor driver into the Linux thermal
  278. framework.
  279. To compile this driver as a module, choose M here: the
  280. module will be called sun8i-thermal.
  281. config ROCKCHIP_THERMAL
  282. tristate "Rockchip thermal driver"
  283. depends on ARCH_ROCKCHIP || COMPILE_TEST
  284. depends on RESET_CONTROLLER
  285. depends on HAS_IOMEM
  286. help
  287. Rockchip thermal driver provides support for Temperature sensor
  288. ADC (TS-ADC) found on Rockchip SoCs. It supports one critical
  289. trip point. Cpufreq is used as the cooling device and will throttle
  290. CPUs when the Temperature crosses the passive trip point.
  291. config RCAR_THERMAL
  292. tristate "Renesas R-Car thermal driver"
  293. depends on ARCH_RENESAS || COMPILE_TEST
  294. depends on HAS_IOMEM
  295. help
  296. Enable this to plug the R-Car thermal sensor driver into the Linux
  297. thermal framework.
  298. config RCAR_GEN3_THERMAL
  299. tristate "Renesas R-Car Gen3 and RZ/G2 thermal driver"
  300. depends on ARCH_RENESAS || COMPILE_TEST
  301. depends on HAS_IOMEM
  302. depends on OF
  303. help
  304. Enable this to plug the R-Car Gen3 or RZ/G2 thermal sensor driver into
  305. the Linux thermal framework.
  306. config KIRKWOOD_THERMAL
  307. tristate "Temperature sensor on Marvell Kirkwood SoCs"
  308. depends on MACH_KIRKWOOD || COMPILE_TEST
  309. depends on HAS_IOMEM
  310. depends on OF
  311. help
  312. Support for the Kirkwood thermal sensor driver into the Linux thermal
  313. framework. Only kirkwood 88F6282 and 88F6283 have this sensor.
  314. config DOVE_THERMAL
  315. tristate "Temperature sensor on Marvell Dove SoCs"
  316. depends on ARCH_DOVE || MACH_DOVE || COMPILE_TEST
  317. depends on HAS_IOMEM
  318. depends on OF
  319. help
  320. Support for the Dove thermal sensor driver in the Linux thermal
  321. framework.
  322. config DB8500_THERMAL
  323. tristate "DB8500 thermal management"
  324. depends on MFD_DB8500_PRCMU && OF
  325. default y
  326. help
  327. Adds DB8500 thermal management implementation according to the thermal
  328. management framework. A thermal zone with several trip points will be
  329. created. Cooling devices can be bound to the trip points to cool this
  330. thermal zone if trip points reached.
  331. config ARMADA_THERMAL
  332. tristate "Marvell EBU Armada SoCs thermal management"
  333. depends on ARCH_MVEBU || COMPILE_TEST
  334. depends on HAS_IOMEM
  335. depends on OF
  336. help
  337. Enable this option if you want to have support for thermal management
  338. controller present in Marvell EBU Armada SoCs (370,375,XP,38x,7K,8K).
  339. config DA9062_THERMAL
  340. tristate "DA9062/DA9061 Dialog Semiconductor thermal driver"
  341. depends on MFD_DA9062 || COMPILE_TEST
  342. depends on OF
  343. help
  344. Enable this for the Dialog Semiconductor thermal sensor driver.
  345. This will report PMIC junction over-temperature for one thermal trip
  346. zone.
  347. Compatible with the DA9062 and DA9061 PMICs.
  348. config MTK_THERMAL
  349. tristate "Temperature sensor driver for mediatek SoCs"
  350. depends on ARCH_MEDIATEK || COMPILE_TEST
  351. depends on HAS_IOMEM
  352. depends on NVMEM || NVMEM=n
  353. depends on RESET_CONTROLLER
  354. default y
  355. help
  356. Enable this option if you want to have support for thermal management
  357. controller present in Mediatek SoCs
  358. config AMLOGIC_THERMAL
  359. tristate "Amlogic Thermal Support"
  360. default ARCH_MESON
  361. depends on OF && ARCH_MESON
  362. help
  363. If you say yes here you get support for Amlogic Thermal
  364. for G12 SoC Family.
  365. This driver can also be built as a module. If so, the module will
  366. be called amlogic_thermal.
  367. menu "Intel thermal drivers"
  368. depends on X86 || X86_INTEL_QUARK || COMPILE_TEST
  369. source "drivers/thermal/intel/Kconfig"
  370. endmenu
  371. menu "Broadcom thermal drivers"
  372. depends on ARCH_BCM || ARCH_BRCMSTB || ARCH_BCM2835 || ARCH_BCM_IPROC || \
  373. COMPILE_TEST
  374. source "drivers/thermal/broadcom/Kconfig"
  375. endmenu
  376. menu "Texas Instruments thermal drivers"
  377. depends on ARCH_HAS_BANDGAP || COMPILE_TEST
  378. depends on HAS_IOMEM
  379. source "drivers/thermal/ti-soc-thermal/Kconfig"
  380. endmenu
  381. menu "Samsung thermal drivers"
  382. depends on ARCH_EXYNOS || COMPILE_TEST
  383. source "drivers/thermal/samsung/Kconfig"
  384. endmenu
  385. menu "STMicroelectronics thermal drivers"
  386. depends on (ARCH_STI || ARCH_STM32) && OF
  387. source "drivers/thermal/st/Kconfig"
  388. endmenu
  389. config TANGO_THERMAL
  390. tristate "Tango thermal management"
  391. depends on ARCH_TANGO || COMPILE_TEST
  392. help
  393. Enable the Tango thermal driver, which supports the primitive
  394. temperature sensor embedded in Tango chips since the SMP8758.
  395. This sensor only generates a 1-bit signal to indicate whether
  396. the die temperature exceeds a programmable threshold.
  397. source "drivers/thermal/tegra/Kconfig"
  398. config GENERIC_ADC_THERMAL
  399. tristate "Generic ADC based thermal sensor"
  400. depends on IIO
  401. help
  402. This enabled a thermal sysfs driver for the temperature sensor
  403. which is connected to the General Purpose ADC. The ADC channel
  404. is read via IIO framework and the channel information is provided
  405. to this driver. This driver reports the temperature by reading ADC
  406. channel and converts it to temperature based on lookup table.
  407. menu "Qualcomm thermal drivers"
  408. depends on (ARCH_QCOM && OF) || COMPILE_TEST
  409. source "drivers/thermal/qcom/Kconfig"
  410. endmenu
  411. config ZX2967_THERMAL
  412. tristate "Thermal sensors on zx2967 SoC"
  413. depends on ARCH_ZX || COMPILE_TEST
  414. help
  415. Enable the zx2967 thermal sensors driver, which supports
  416. the primitive temperature sensor embedded in zx2967 SoCs.
  417. This sensor generates the real time die temperature.
  418. config UNIPHIER_THERMAL
  419. tristate "Socionext UniPhier thermal driver"
  420. depends on ARCH_UNIPHIER || COMPILE_TEST
  421. depends on THERMAL_OF && MFD_SYSCON
  422. help
  423. Enable this to plug in UniPhier on-chip PVT thermal driver into the
  424. thermal framework. The driver supports CPU thermal zone temperature
  425. reporting and a couple of trip points.
  426. config SPRD_THERMAL
  427. tristate "Temperature sensor on Spreadtrum SoCs"
  428. depends on ARCH_SPRD || COMPILE_TEST
  429. help
  430. Support for the Spreadtrum thermal sensor driver in the Linux thermal
  431. framework.
  432. config KHADAS_MCU_FAN_THERMAL
  433. tristate "Khadas MCU controller FAN cooling support"
  434. depends on OF || COMPILE_TEST
  435. depends on MFD_KHADAS_MCU
  436. select MFD_CORE
  437. select REGMAP
  438. help
  439. If you say yes here you get support for the FAN controlled
  440. by the Microcontroller found on the Khadas VIM boards.
  441. endif