Kconfig 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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. choice
  39. prompt "Default Thermal governor"
  40. default THERMAL_DEFAULT_GOV_STEP_WISE
  41. help
  42. This option sets which thermal governor shall be loaded at
  43. startup. If in doubt, select 'step_wise'.
  44. config THERMAL_DEFAULT_GOV_BACKWARD_COMPATIBLE
  45. bool "backward_compatible"
  46. select THERMAL_BACKWARD_COMPATIBLE
  47. help
  48. Use the backward_compatible governor as default. This throttles the
  49. devices when the temperature is over each trip point.
  50. Backward-compatible governor resembles the behaviors of thermal
  51. framework in Linux kernel 2.6. It sets cooler states whenever
  52. temperature is updated no meter cooler state change or not.
  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. endchoice
  73. config THERMAL_BACKWARD_COMPATIBLE
  74. bool "Backward-compatible thermal governor"
  75. help
  76. Enable this to manage platform thermals using backward-compatible governor.
  77. Backward-compatible governor resembles the behaviors of thermal
  78. framework in Linux kernel 2.6. It sets cooler states whenever
  79. temperature is updated no meter cooler state change or not.
  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 CPU_THERMAL
  102. bool "generic cpu cooling support"
  103. depends on CPU_FREQ
  104. depends on THERMAL_OF
  105. help
  106. This implements the generic cpu cooling mechanism through frequency
  107. reduction. An ACPI version of this already exists
  108. (drivers/acpi/processor_thermal.c).
  109. This will be useful for platforms using the generic thermal interface
  110. and not the ACPI interface.
  111. If you want this support, you should say Y here.
  112. config THERMAL_EMULATION
  113. bool "Thermal emulation mode support"
  114. help
  115. Enable this option to make a emul_temp sysfs node in thermal zone
  116. directory to support temperature emulation. With emulation sysfs node,
  117. user can manually input temperature and test the different trip
  118. threshold behaviour for simulation purpose.
  119. WARNING: Be careful while enabling this option on production systems,
  120. because userland can easily disable the thermal policy by simply
  121. flooding this sysfs node with low temperature values.
  122. config IMX_THERMAL
  123. tristate "Temperature sensor driver for Freescale i.MX SoCs"
  124. depends on CPU_THERMAL
  125. depends on MFD_SYSCON
  126. depends on OF
  127. help
  128. Support for Temperature Monitor (TEMPMON) found on Freescale i.MX SoCs.
  129. It supports one critical trip point and one passive trip point. The
  130. cpufreq is used as the cooling device to throttle CPUs when the
  131. passive trip is crossed.
  132. config SPEAR_THERMAL
  133. bool "SPEAr thermal sensor driver"
  134. depends on PLAT_SPEAR
  135. depends on OF
  136. help
  137. Enable this to plug the SPEAr thermal sensor driver into the Linux
  138. thermal framework.
  139. config RCAR_THERMAL
  140. tristate "Renesas R-Car thermal driver"
  141. depends on ARCH_SHMOBILE || COMPILE_TEST
  142. depends on HAS_IOMEM
  143. help
  144. Enable this to plug the R-Car thermal sensor driver into the Linux
  145. thermal framework.
  146. config KIRKWOOD_THERMAL
  147. tristate "Temperature sensor on Marvell Kirkwood SoCs"
  148. depends on MACH_KIRKWOOD
  149. depends on OF
  150. help
  151. Support for the Kirkwood thermal sensor driver into the Linux thermal
  152. framework. Only kirkwood 88F6282 and 88F6283 have this sensor.
  153. config DOVE_THERMAL
  154. tristate "Temperature sensor on Marvell Dove SoCs"
  155. depends on ARCH_DOVE || MACH_DOVE
  156. depends on OF
  157. help
  158. Support for the Dove thermal sensor driver in the Linux thermal
  159. framework.
  160. config DB8500_THERMAL
  161. bool "DB8500 thermal management"
  162. depends on ARCH_U8500
  163. default y
  164. help
  165. Adds DB8500 thermal management implementation according to the thermal
  166. management framework. A thermal zone with several trip points will be
  167. created. Cooling devices can be bound to the trip points to cool this
  168. thermal zone if trip points reached.
  169. config ARMADA_THERMAL
  170. tristate "Armada 370/XP thermal management"
  171. depends on ARCH_MVEBU
  172. depends on OF
  173. help
  174. Enable this option if you want to have support for thermal management
  175. controller present in Armada 370 and Armada XP SoC.
  176. config DB8500_CPUFREQ_COOLING
  177. tristate "DB8500 cpufreq cooling"
  178. depends on ARCH_U8500
  179. depends on CPU_THERMAL
  180. default y
  181. help
  182. Adds DB8500 cpufreq cooling devices, and these cooling devices can be
  183. bound to thermal zone trip points. When a trip point reached, the
  184. bound cpufreq cooling device turns active to set CPU frequency low to
  185. cool down the CPU.
  186. config INTEL_POWERCLAMP
  187. tristate "Intel PowerClamp idle injection driver"
  188. depends on THERMAL
  189. depends on X86
  190. depends on CPU_SUP_INTEL
  191. help
  192. Enable this to enable Intel PowerClamp idle injection driver. This
  193. enforce idle time which results in more package C-state residency. The
  194. user interface is exposed via generic thermal framework.
  195. config X86_PKG_TEMP_THERMAL
  196. tristate "X86 package temperature thermal driver"
  197. depends on X86_THERMAL_VECTOR
  198. select THERMAL_GOV_USER_SPACE
  199. default m
  200. help
  201. Enable this to register CPU digital sensor for package temperature as
  202. thermal zone. Each package will have its own thermal zone. There are
  203. two trip points which can be set by user to get notifications via thermal
  204. notification methods.
  205. config INTEL_SOC_DTS_THERMAL
  206. tristate "Intel SoCs DTS thermal driver"
  207. depends on X86 && IOSF_MBI
  208. help
  209. Enable this to register Intel SoCs (e.g. Bay Trail) platform digital
  210. temperature sensor (DTS). These SoCs have two additional DTSs in
  211. addition to DTSs on CPU cores. Each DTS will be registered as a
  212. thermal zone. There are two trip points. One of the trip point can
  213. be set by user mode programs to get notifications via Linux thermal
  214. notification methods.The other trip is a critical trip point, which
  215. was set by the driver based on the TJ MAX temperature.
  216. config INT340X_THERMAL
  217. tristate "ACPI INT340X thermal drivers"
  218. depends on X86 && ACPI
  219. select THERMAL_GOV_USER_SPACE
  220. select ACPI_THERMAL_REL
  221. select ACPI_FAN
  222. help
  223. Newer laptops and tablets that use ACPI may have thermal sensors and
  224. other devices with thermal control capabilities outside the core
  225. CPU/SOC, for thermal safety reasons.
  226. They are exposed for the OS to use via the INT3400 ACPI device object
  227. as the master, and INT3401~INT340B ACPI device objects as the slaves.
  228. Enable this to expose the temperature information and cooling ability
  229. from these objects to userspace via the normal thermal framework.
  230. This means that a wide range of applications and GUI widgets can show
  231. the information to the user or use this information for making
  232. decisions. For example, the Intel Thermal Daemon can use this
  233. information to allow the user to select his laptop to run without
  234. turning on the fans.
  235. config ACPI_THERMAL_REL
  236. tristate
  237. depends on ACPI
  238. menu "Texas Instruments thermal drivers"
  239. source "drivers/thermal/ti-soc-thermal/Kconfig"
  240. endmenu
  241. menu "Samsung thermal drivers"
  242. depends on ARCH_EXYNOS
  243. source "drivers/thermal/samsung/Kconfig"
  244. endmenu
  245. menu "STMicroelectronics thermal drivers"
  246. depends on ARCH_STI && OF
  247. source "drivers/thermal/st/Kconfig"
  248. endmenu
  249. endif