Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. #
  2. # Generic thermal sysfs drivers configuration
  3. #
  4. menuconfig THERMAL
  5. tristate "Generic Thermal sysfs driver"
  6. help
  7. Generic Thermal Sysfs driver offers a generic mechanism for
  8. thermal management. Usually it's made up of one or more thermal
  9. zone and cooling device.
  10. Each thermal zone contains its own temperature, trip points,
  11. cooling devices.
  12. All platforms with ACPI thermal support can use this driver.
  13. If you want this support, you should say Y or M here.
  14. if THERMAL
  15. config THERMAL_HWMON
  16. bool
  17. prompt "Expose thermal sensors as hwmon device"
  18. depends on HWMON=y || HWMON=THERMAL
  19. default y
  20. help
  21. In case a sensor is registered with the thermal
  22. framework, this option will also register it
  23. as a hwmon. The sensor will then have the common
  24. hwmon sysfs interface.
  25. Say 'Y' here if you want all thermal sensors to
  26. have hwmon sysfs interface too.
  27. config THERMAL_OF
  28. bool
  29. prompt "APIs to parse thermal data out of device tree"
  30. depends on OF
  31. default y
  32. help
  33. This options provides helpers to add the support to
  34. read and parse thermal data definitions out of the
  35. device tree blob.
  36. Say 'Y' here if you need to build thermal infrastructure
  37. based on device tree.
  38. config THERMAL_WRITABLE_TRIPS
  39. bool "Enable writable trip points"
  40. help
  41. This option allows the system integrator to choose whether
  42. trip temperatures can be changed from userspace. The
  43. writable trips need to be specified when setting up the
  44. thermal zone but the choice here takes precedence.
  45. Say 'Y' here if you would like to allow userspace tools to
  46. change trip temperatures.
  47. choice
  48. prompt "Default Thermal governor"
  49. default THERMAL_DEFAULT_GOV_STEP_WISE
  50. help
  51. This option sets which thermal governor shall be loaded at
  52. startup. If in doubt, select 'step_wise'.
  53. config THERMAL_DEFAULT_GOV_STEP_WISE
  54. bool "step_wise"
  55. select THERMAL_GOV_STEP_WISE
  56. help
  57. Use the step_wise governor as default. This throttles the
  58. devices one step at a time.
  59. config THERMAL_DEFAULT_GOV_FAIR_SHARE
  60. bool "fair_share"
  61. select THERMAL_GOV_FAIR_SHARE
  62. help
  63. Use the fair_share governor as default. This throttles the
  64. devices based on their 'contribution' to a zone. The
  65. contribution should be provided through platform data.
  66. config THERMAL_DEFAULT_GOV_USER_SPACE
  67. bool "user_space"
  68. select THERMAL_GOV_USER_SPACE
  69. help
  70. Select this if you want to let the user space manage the
  71. platform thermals.
  72. config THERMAL_DEFAULT_GOV_POWER_ALLOCATOR
  73. bool "power_allocator"
  74. select THERMAL_GOV_POWER_ALLOCATOR
  75. help
  76. Select this if you want to control temperature based on
  77. system and device power allocation. This governor can only
  78. operate on cooling devices that implement the power API.
  79. endchoice
  80. config THERMAL_GOV_FAIR_SHARE
  81. bool "Fair-share thermal governor"
  82. help
  83. Enable this to manage platform thermals using fair-share governor.
  84. config THERMAL_GOV_STEP_WISE
  85. bool "Step_wise thermal governor"
  86. help
  87. Enable this to manage platform thermals using a simple linear
  88. governor.
  89. config THERMAL_GOV_BANG_BANG
  90. bool "Bang Bang thermal governor"
  91. default n
  92. help
  93. Enable this to manage platform thermals using bang bang governor.
  94. Say 'Y' here if you want to use two point temperature regulation
  95. used for fans without throttling. Some fan drivers depend on this
  96. governor to be enabled (e.g. acerhdf).
  97. config THERMAL_GOV_USER_SPACE
  98. bool "User_space thermal governor"
  99. help
  100. Enable this to let the user space manage the platform thermals.
  101. config THERMAL_GOV_LOW_LIMITS
  102. bool "Low limits mitigation governor"
  103. help
  104. Enable this to manage platform limits using low limits
  105. governor.
  106. Enable this governor to monitor and trigger floor mitigation.
  107. This governor will monitor the limits going below a
  108. trip threshold to trigger a floor mitigation.
  109. config THERMAL_GOV_POWER_ALLOCATOR
  110. bool "Power allocator thermal governor"
  111. help
  112. Enable this to manage platform thermals by dynamically
  113. allocating and limiting power to devices.
  114. config CPU_THERMAL
  115. bool "generic cpu cooling support"
  116. depends on CPU_FREQ
  117. depends on THERMAL_OF
  118. help
  119. This implements the generic cpu cooling mechanism through frequency
  120. reduction. An ACPI version of this already exists
  121. (drivers/acpi/processor_thermal.c).
  122. This will be useful for platforms using the generic thermal interface
  123. and not the ACPI interface.
  124. If you want this support, you should say Y here.
  125. config CLOCK_THERMAL
  126. bool "Generic clock cooling support"
  127. depends on COMMON_CLK
  128. depends on PM_OPP
  129. help
  130. This entry implements the generic clock cooling mechanism through
  131. frequency clipping. Typically used to cool off co-processors. The
  132. device that is configured to use this cooling mechanism will be
  133. controlled to reduce clock frequency whenever temperature is high.
  134. config DEVFREQ_THERMAL
  135. bool "Generic device cooling support"
  136. depends on PM_DEVFREQ
  137. depends on PM_OPP
  138. help
  139. This implements the generic devfreq cooling mechanism through
  140. frequency reduction for devices using devfreq.
  141. This will throttle the device by limiting the maximum allowed DVFS
  142. frequency corresponding to the cooling level.
  143. In order to use the power extensions of the cooling device,
  144. devfreq should use the simple_ondemand governor.
  145. If you want this support, you should say Y here.
  146. config THERMAL_EMULATION
  147. bool "Thermal emulation mode support"
  148. help
  149. Enable this option to make a emul_temp sysfs node in thermal zone
  150. directory to support temperature emulation. With emulation sysfs node,
  151. user can manually input temperature and test the different trip
  152. threshold behaviour for simulation purpose.
  153. WARNING: Be careful while enabling this option on production systems,
  154. because userland can easily disable the thermal policy by simply
  155. flooding this sysfs node with low temperature values.
  156. config HISI_THERMAL
  157. tristate "Hisilicon thermal driver"
  158. depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST
  159. depends on HAS_IOMEM
  160. help
  161. Enable this to plug hisilicon's thermal sensor driver into the Linux
  162. thermal framework. cpufreq is used as the cooling device to throttle
  163. CPUs when the passive trip is crossed.
  164. config IMX_THERMAL
  165. tristate "Temperature sensor driver for Freescale i.MX SoCs"
  166. depends on (ARCH_MXC && CPU_THERMAL) || COMPILE_TEST
  167. depends on MFD_SYSCON
  168. depends on OF
  169. help
  170. Support for Temperature Monitor (TEMPMON) found on Freescale i.MX SoCs.
  171. It supports one critical trip point and one passive trip point. The
  172. cpufreq is used as the cooling device to throttle CPUs when the
  173. passive trip is crossed.
  174. config MAX77620_THERMAL
  175. tristate "Temperature sensor driver for Maxim MAX77620 PMIC"
  176. depends on MFD_MAX77620
  177. depends on OF
  178. help
  179. Support for die junction temperature warning alarm for Maxim
  180. Semiconductor PMIC MAX77620 device. Device generates two alarm
  181. interrupts when PMIC die temperature cross the threshold of
  182. 120 degC and 140 degC.
  183. config QORIQ_THERMAL
  184. tristate "QorIQ Thermal Monitoring Unit"
  185. depends on THERMAL_OF
  186. depends on HAS_IOMEM
  187. help
  188. Support for Thermal Monitoring Unit (TMU) found on QorIQ platforms.
  189. It supports one critical trip point and one passive trip point. The
  190. cpufreq is used as the cooling device to throttle CPUs when the
  191. passive trip is crossed.
  192. config SPEAR_THERMAL
  193. tristate "SPEAr thermal sensor driver"
  194. depends on PLAT_SPEAR || COMPILE_TEST
  195. depends on HAS_IOMEM
  196. depends on OF
  197. help
  198. Enable this to plug the SPEAr thermal sensor driver into the Linux
  199. thermal framework.
  200. config ROCKCHIP_THERMAL
  201. tristate "Rockchip thermal driver"
  202. depends on ARCH_ROCKCHIP || COMPILE_TEST
  203. depends on RESET_CONTROLLER
  204. depends on HAS_IOMEM
  205. help
  206. Rockchip thermal driver provides support for Temperature sensor
  207. ADC (TS-ADC) found on Rockchip SoCs. It supports one critical
  208. trip point. Cpufreq is used as the cooling device and will throttle
  209. CPUs when the Temperature crosses the passive trip point.
  210. config RCAR_THERMAL
  211. tristate "Renesas R-Car thermal driver"
  212. depends on ARCH_RENESAS || COMPILE_TEST
  213. depends on HAS_IOMEM
  214. help
  215. Enable this to plug the R-Car thermal sensor driver into the Linux
  216. thermal framework.
  217. config KIRKWOOD_THERMAL
  218. tristate "Temperature sensor on Marvell Kirkwood SoCs"
  219. depends on MACH_KIRKWOOD || COMPILE_TEST
  220. depends on HAS_IOMEM
  221. depends on OF
  222. help
  223. Support for the Kirkwood thermal sensor driver into the Linux thermal
  224. framework. Only kirkwood 88F6282 and 88F6283 have this sensor.
  225. config DOVE_THERMAL
  226. tristate "Temperature sensor on Marvell Dove SoCs"
  227. depends on ARCH_DOVE || MACH_DOVE || COMPILE_TEST
  228. depends on HAS_IOMEM
  229. depends on OF
  230. help
  231. Support for the Dove thermal sensor driver in the Linux thermal
  232. framework.
  233. config DB8500_THERMAL
  234. tristate "DB8500 thermal management"
  235. depends on MFD_DB8500_PRCMU
  236. default y
  237. help
  238. Adds DB8500 thermal management implementation according to the thermal
  239. management framework. A thermal zone with several trip points will be
  240. created. Cooling devices can be bound to the trip points to cool this
  241. thermal zone if trip points reached.
  242. config ARMADA_THERMAL
  243. tristate "Armada 370/XP thermal management"
  244. depends on ARCH_MVEBU || COMPILE_TEST
  245. depends on HAS_IOMEM
  246. depends on OF
  247. help
  248. Enable this option if you want to have support for thermal management
  249. controller present in Armada 370 and Armada XP SoC.
  250. config DB8500_CPUFREQ_COOLING
  251. tristate "DB8500 cpufreq cooling"
  252. depends on ARCH_U8500 || COMPILE_TEST
  253. depends on HAS_IOMEM
  254. depends on CPU_THERMAL
  255. default y
  256. help
  257. Adds DB8500 cpufreq cooling devices, and these cooling devices can be
  258. bound to thermal zone trip points. When a trip point reached, the
  259. bound cpufreq cooling device turns active to set CPU frequency low to
  260. cool down the CPU.
  261. config INTEL_POWERCLAMP
  262. tristate "Intel PowerClamp idle injection driver"
  263. depends on THERMAL
  264. depends on X86
  265. depends on CPU_SUP_INTEL
  266. help
  267. Enable this to enable Intel PowerClamp idle injection driver. This
  268. enforce idle time which results in more package C-state residency. The
  269. user interface is exposed via generic thermal framework.
  270. config X86_PKG_TEMP_THERMAL
  271. tristate "X86 package temperature thermal driver"
  272. depends on X86_THERMAL_VECTOR
  273. select THERMAL_GOV_USER_SPACE
  274. select THERMAL_WRITABLE_TRIPS
  275. default m
  276. help
  277. Enable this to register CPU digital sensor for package temperature as
  278. thermal zone. Each package will have its own thermal zone. There are
  279. two trip points which can be set by user to get notifications via thermal
  280. notification methods.
  281. config INTEL_SOC_DTS_IOSF_CORE
  282. tristate
  283. depends on X86 && PCI
  284. select IOSF_MBI
  285. help
  286. This is becoming a common feature for Intel SoCs to expose the additional
  287. digital temperature sensors (DTSs) using side band interface (IOSF). This
  288. implements the common set of helper functions to register, get temperature
  289. and get/set thresholds on DTSs.
  290. config INTEL_SOC_DTS_THERMAL
  291. tristate "Intel SoCs DTS thermal driver"
  292. depends on X86 && PCI
  293. select INTEL_SOC_DTS_IOSF_CORE
  294. select THERMAL_WRITABLE_TRIPS
  295. help
  296. Enable this to register Intel SoCs (e.g. Bay Trail) platform digital
  297. temperature sensor (DTS). These SoCs have two additional DTSs in
  298. addition to DTSs on CPU cores. Each DTS will be registered as a
  299. thermal zone. There are two trip points. One of the trip point can
  300. be set by user mode programs to get notifications via Linux thermal
  301. notification methods.The other trip is a critical trip point, which
  302. was set by the driver based on the TJ MAX temperature.
  303. config INTEL_QUARK_DTS_THERMAL
  304. tristate "Intel Quark DTS thermal driver"
  305. depends on X86_INTEL_QUARK
  306. help
  307. Enable this to register Intel Quark SoC (e.g. X1000) platform digital
  308. temperature sensor (DTS). For X1000 SoC, it has one on-die DTS.
  309. The DTS will be registered as a thermal zone. There are two trip points:
  310. hot & critical. The critical trip point default value is set by
  311. underlying BIOS/Firmware.
  312. menu "ACPI INT340X thermal drivers"
  313. source drivers/thermal/int340x_thermal/Kconfig
  314. endmenu
  315. config INTEL_BXT_PMIC_THERMAL
  316. tristate "Intel Broxton PMIC thermal driver"
  317. depends on X86 && INTEL_SOC_PMIC && REGMAP
  318. help
  319. Select this driver for Intel Broxton PMIC with ADC channels monitoring
  320. system temperature measurements and alerts.
  321. This driver is used for monitoring the ADC channels of PMIC and handles
  322. the alert trip point interrupts and notifies the thermal framework with
  323. the trip point and temperature details of the zone.
  324. config INTEL_PCH_THERMAL
  325. tristate "Intel PCH Thermal Reporting Driver"
  326. depends on X86 && PCI
  327. help
  328. Enable this to support thermal reporting on certain intel PCHs.
  329. Thermal reporting device will provide temperature reading,
  330. programmable trip points and other information.
  331. config MTK_THERMAL
  332. tristate "Temperature sensor driver for mediatek SoCs"
  333. depends on ARCH_MEDIATEK || COMPILE_TEST
  334. depends on HAS_IOMEM
  335. depends on NVMEM || NVMEM=n
  336. depends on RESET_CONTROLLER
  337. default y
  338. help
  339. Enable this option if you want to have support for thermal management
  340. controller present in Mediatek SoCs
  341. menu "Texas Instruments thermal drivers"
  342. depends on ARCH_HAS_BANDGAP || COMPILE_TEST
  343. depends on HAS_IOMEM
  344. source "drivers/thermal/ti-soc-thermal/Kconfig"
  345. endmenu
  346. menu "Samsung thermal drivers"
  347. depends on ARCH_EXYNOS || COMPILE_TEST
  348. source "drivers/thermal/samsung/Kconfig"
  349. endmenu
  350. menu "STMicroelectronics thermal drivers"
  351. depends on ARCH_STI && OF
  352. source "drivers/thermal/st/Kconfig"
  353. endmenu
  354. config TANGO_THERMAL
  355. tristate "Tango thermal management"
  356. depends on ARCH_TANGO || COMPILE_TEST
  357. help
  358. Enable the Tango thermal driver, which supports the primitive
  359. temperature sensor embedded in Tango chips since the SMP8758.
  360. This sensor only generates a 1-bit signal to indicate whether
  361. the die temperature exceeds a programmable threshold.
  362. source "drivers/thermal/tegra/Kconfig"
  363. config QCOM_SPMI_TEMP_ALARM
  364. tristate "Qualcomm SPMI PMIC Temperature Alarm"
  365. depends on OF && SPMI && IIO
  366. select REGMAP_SPMI
  367. help
  368. This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP)
  369. PMIC devices. It shows up in sysfs as a thermal sensor with multiple
  370. trip points. The temperature reported by the thermal sensor reflects the
  371. real time die temperature if an ADC is present or an estimate of the
  372. temperature based upon the over temperature stage value.
  373. config THERMAL_QPNP
  374. tristate "Qualcomm Technologies, Inc. QPNP PMIC Temperature Alarm"
  375. depends on OF && SPMI
  376. help
  377. This enables a thermal Sysfs driver for Qualcomm Technologies, Inc.
  378. QPNP PMIC devices. It shows up in Sysfs as a thermal zone with
  379. multiple trip points. The temperature reported by the thermal zone
  380. reflects the real time die temperature if an ADC is present or an
  381. estimate of the temperature based upon the over temperature stage
  382. value if no ADC is available. If allowed via compile time
  383. configuration; enabling the thermal zone device via the mode file
  384. results in shifting PMIC over temperature shutdown control from
  385. hardware to software.
  386. config GENERIC_ADC_THERMAL
  387. tristate "Generic ADC based thermal sensor"
  388. depends on IIO
  389. help
  390. This enabled a thermal sysfs driver for the temperature sensor
  391. which is connected to the General Purpose ADC. The ADC channel
  392. is read via IIO framework and the channel information is provided
  393. to this driver. This driver reports the temperature by reading ADC
  394. channel and converts it to temperature based on lookup table.
  395. config THERMAL_QPNP_ADC_TM
  396. tristate "Qualcomm Technologies Inc. Thermal Monitor ADC Driver"
  397. depends on THERMAL
  398. depends on SPMI
  399. help
  400. This enables the thermal Sysfs driver for the ADC thermal monitoring
  401. device. It shows up in Sysfs as a thermal zone with multiple trip points.
  402. Disabling the thermal zone device via the mode file results in disabling
  403. the sensor. Also able to set threshold temperature for both hot and cold
  404. and update when a threshold is reached.
  405. config THERMAL_TSENS
  406. tristate "Qualcomm Technologies Inc. TSENS Temperature driver"
  407. depends on THERMAL
  408. help
  409. This enables the thermal sysfs driver for the TSENS device. It shows
  410. up in Sysfs as a thermal zone with multiple trip points. Also able
  411. to set threshold temperature for both warm and cool and update
  412. thermal userspace client when a threshold is reached. Warm/Cool
  413. temperature thresholds can be set independently for each sensor.
  414. menu "Qualcomm thermal drivers"
  415. depends on (ARCH_QCOM && OF) || COMPILE_TEST
  416. source "drivers/thermal/qcom/Kconfig"
  417. endmenu
  418. endif