Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. #
  2. # ACPI Configuration
  3. #
  4. menuconfig ACPI
  5. bool "ACPI (Advanced Configuration and Power Interface) Support"
  6. depends on !IA64_HP_SIM
  7. depends on IA64 || X86
  8. depends on PCI
  9. select PNP
  10. default y
  11. help
  12. Advanced Configuration and Power Interface (ACPI) support for
  13. Linux requires an ACPI-compliant platform (hardware/firmware),
  14. and assumes the presence of OS-directed configuration and power
  15. management (OSPM) software. This option will enlarge your
  16. kernel by about 70K.
  17. Linux ACPI provides a robust functional replacement for several
  18. legacy configuration and power management interfaces, including
  19. the Plug-and-Play BIOS specification (PnP BIOS), the
  20. MultiProcessor Specification (MPS), and the Advanced Power
  21. Management (APM) specification. If both ACPI and APM support
  22. are configured, ACPI is used.
  23. The project home page for the Linux ACPI subsystem is here:
  24. <https://01.org/linux-acpi>
  25. Linux support for ACPI is based on Intel Corporation's ACPI
  26. Component Architecture (ACPI CA). For more information on the
  27. ACPI CA, see:
  28. <http://acpica.org/>
  29. ACPI is an open industry specification originally co-developed by
  30. Hewlett-Packard, Intel, Microsoft, Phoenix, and Toshiba. Currently,
  31. it is developed by the ACPI Specification Working Group (ASWG) under
  32. the UEFI Forum and any UEFI member can join the ASWG and contribute
  33. to the ACPI specification.
  34. The specification is available at:
  35. <http://www.acpi.info>
  36. <http://www.uefi.org/acpi/specs>
  37. if ACPI
  38. config ACPI_LEGACY_TABLES_LOOKUP
  39. bool
  40. config ARCH_MIGHT_HAVE_ACPI_PDC
  41. bool
  42. config ACPI_SLEEP
  43. bool
  44. depends on SUSPEND || HIBERNATION
  45. default y
  46. config ACPI_PROCFS_POWER
  47. bool "Deprecated power /proc/acpi directories"
  48. depends on PROC_FS
  49. help
  50. For backwards compatibility, this option allows
  51. deprecated power /proc/acpi/ directories to exist, even when
  52. they have been replaced by functions in /sys.
  53. The deprecated directories (and their replacements) include:
  54. /proc/acpi/battery/* (/sys/class/power_supply/*)
  55. /proc/acpi/ac_adapter/* (sys/class/power_supply/*)
  56. This option has no effect on /proc/acpi/ directories
  57. and functions, which do not yet exist in /sys
  58. This option, together with the proc directories, will be
  59. deleted in the future.
  60. Say N to delete power /proc/acpi/ directories that have moved to /sys/
  61. config ACPI_EC_DEBUGFS
  62. tristate "EC read/write access through /sys/kernel/debug/ec"
  63. default n
  64. help
  65. Say N to disable Embedded Controller /sys/kernel/debug interface
  66. Be aware that using this interface can confuse your Embedded
  67. Controller in a way that a normal reboot is not enough. You then
  68. have to power off your system, and remove the laptop battery for
  69. some seconds.
  70. An Embedded Controller typically is available on laptops and reads
  71. sensor values like battery state and temperature.
  72. The kernel accesses the EC through ACPI parsed code provided by BIOS
  73. tables. This option allows to access the EC directly without ACPI
  74. code being involved.
  75. Thus this option is a debug option that helps to write ACPI drivers
  76. and can be used to identify ACPI code or EC firmware bugs.
  77. config ACPI_AC
  78. tristate "AC Adapter"
  79. depends on X86
  80. select POWER_SUPPLY
  81. default y
  82. help
  83. This driver supports the AC Adapter object, which indicates
  84. whether a system is on AC or not. If you have a system that can
  85. switch between A/C and battery, say Y.
  86. To compile this driver as a module, choose M here:
  87. the module will be called ac.
  88. config ACPI_BATTERY
  89. tristate "Battery"
  90. depends on X86
  91. select POWER_SUPPLY
  92. default y
  93. help
  94. This driver adds support for battery information through
  95. /proc/acpi/battery. If you have a mobile system with a battery,
  96. say Y.
  97. To compile this driver as a module, choose M here:
  98. the module will be called battery.
  99. config ACPI_BUTTON
  100. tristate "Button"
  101. depends on INPUT
  102. default y
  103. help
  104. This driver handles events on the power, sleep, and lid buttons.
  105. A daemon reads events from input devices or via netlink and
  106. performs user-defined actions such as shutting down the system.
  107. This is necessary for software-controlled poweroff.
  108. To compile this driver as a module, choose M here:
  109. the module will be called button.
  110. config ACPI_VIDEO
  111. tristate "Video"
  112. depends on X86 && BACKLIGHT_CLASS_DEVICE
  113. depends on INPUT
  114. select THERMAL
  115. help
  116. This driver implements the ACPI Extensions For Display Adapters
  117. for integrated graphics devices on motherboard, as specified in
  118. ACPI 2.0 Specification, Appendix B. This supports basic operations
  119. such as defining the video POST device, retrieving EDID information,
  120. and setting up a video output.
  121. To compile this driver as a module, choose M here:
  122. the module will be called video.
  123. config ACPI_FAN
  124. tristate "Fan"
  125. depends on THERMAL
  126. default y
  127. help
  128. This driver supports ACPI fan devices, allowing user-mode
  129. applications to perform basic fan control (on, off, status).
  130. To compile this driver as a module, choose M here:
  131. the module will be called fan.
  132. config ACPI_DOCK
  133. bool "Dock"
  134. help
  135. This driver supports ACPI-controlled docking stations and removable
  136. drive bays such as the IBM Ultrabay and the Dell Module Bay.
  137. config ACPI_PROCESSOR
  138. tristate "Processor"
  139. select THERMAL
  140. select CPU_IDLE
  141. default y
  142. help
  143. This driver installs ACPI as the idle handler for Linux and uses
  144. ACPI C2 and C3 processor states to save power on systems that
  145. support it. It is required by several flavors of cpufreq
  146. performance-state drivers.
  147. To compile this driver as a module, choose M here:
  148. the module will be called processor.
  149. config ACPI_IPMI
  150. tristate "IPMI"
  151. depends on IPMI_SI
  152. default n
  153. help
  154. This driver enables the ACPI to access the BMC controller. And it
  155. uses the IPMI request/response message to communicate with BMC
  156. controller, which can be found on on the server.
  157. To compile this driver as a module, choose M here:
  158. the module will be called as acpi_ipmi.
  159. config ACPI_HOTPLUG_CPU
  160. bool
  161. depends on ACPI_PROCESSOR && HOTPLUG_CPU
  162. select ACPI_CONTAINER
  163. default y
  164. config ACPI_PROCESSOR_AGGREGATOR
  165. tristate "Processor Aggregator"
  166. depends on ACPI_PROCESSOR
  167. depends on X86
  168. help
  169. ACPI 4.0 defines processor Aggregator, which enables OS to perform
  170. specific processor configuration and control that applies to all
  171. processors in the platform. Currently only logical processor idling
  172. is defined, which is to reduce power consumption. This driver
  173. supports the new device.
  174. config ACPI_THERMAL
  175. tristate "Thermal Zone"
  176. depends on ACPI_PROCESSOR
  177. select THERMAL
  178. default y
  179. help
  180. This driver supports ACPI thermal zones. Most mobile and
  181. some desktop systems support ACPI thermal zones. It is HIGHLY
  182. recommended that this option be enabled, as your processor(s)
  183. may be damaged without it.
  184. To compile this driver as a module, choose M here:
  185. the module will be called thermal.
  186. config ACPI_NUMA
  187. bool "NUMA support"
  188. depends on NUMA
  189. depends on (X86 || IA64)
  190. default y if IA64_GENERIC || IA64_SGI_SN2
  191. config ACPI_CUSTOM_DSDT_FILE
  192. string "Custom DSDT Table file to include"
  193. default ""
  194. depends on !STANDALONE
  195. help
  196. This option supports a custom DSDT by linking it into the kernel.
  197. See Documentation/acpi/dsdt-override.txt
  198. Enter the full path name to the file which includes the AmlCode
  199. declaration.
  200. If unsure, don't enter a file name.
  201. config ACPI_CUSTOM_DSDT
  202. bool
  203. default ACPI_CUSTOM_DSDT_FILE != ""
  204. config ACPI_INITRD_TABLE_OVERRIDE
  205. bool "ACPI tables override via initrd"
  206. depends on BLK_DEV_INITRD && X86
  207. default n
  208. help
  209. This option provides functionality to override arbitrary ACPI tables
  210. via initrd. No functional change if no ACPI tables are passed via
  211. initrd, therefore it's safe to say Y.
  212. See Documentation/acpi/initrd_table_override.txt for details
  213. config ACPI_DEBUG
  214. bool "Debug Statements"
  215. default n
  216. help
  217. The ACPI subsystem can produce debug output. Saying Y enables this
  218. output and increases the kernel size by around 50K.
  219. Use the acpi.debug_layer and acpi.debug_level kernel command-line
  220. parameters documented in Documentation/acpi/debug.txt and
  221. Documentation/kernel-parameters.txt to control the type and
  222. amount of debug output.
  223. config ACPI_PCI_SLOT
  224. bool "PCI slot detection driver"
  225. depends on SYSFS
  226. default n
  227. help
  228. This driver creates entries in /sys/bus/pci/slots/ for all PCI
  229. slots in the system. This can help correlate PCI bus addresses,
  230. i.e., segment/bus/device/function tuples, with physical slots in
  231. the system. If you are unsure, say N.
  232. config X86_PM_TIMER
  233. bool "Power Management Timer Support" if EXPERT
  234. depends on X86
  235. default y
  236. help
  237. The Power Management Timer is available on all ACPI-capable,
  238. in most cases even if ACPI is unusable or blacklisted.
  239. This timing source is not affected by power management features
  240. like aggressive processor idling, throttling, frequency and/or
  241. voltage scaling, unlike the commonly used Time Stamp Counter
  242. (TSC) timing source.
  243. You should nearly always say Y here because many modern
  244. systems require this timer.
  245. config ACPI_CONTAINER
  246. bool "Container and Module Devices"
  247. default (ACPI_HOTPLUG_MEMORY || ACPI_HOTPLUG_CPU)
  248. help
  249. This driver supports ACPI Container and Module devices (IDs
  250. ACPI0004, PNP0A05, and PNP0A06).
  251. This helps support hotplug of nodes, CPUs, and memory.
  252. To compile this driver as a module, choose M here:
  253. the module will be called container.
  254. config ACPI_HOTPLUG_MEMORY
  255. bool "Memory Hotplug"
  256. depends on MEMORY_HOTPLUG
  257. help
  258. This driver supports ACPI memory hotplug. The driver
  259. fields notifications on ACPI memory devices (PNP0C80),
  260. which represent memory ranges that may be onlined or
  261. offlined during runtime.
  262. If your hardware and firmware do not support adding or
  263. removing memory devices at runtime, you need not enable
  264. this driver.
  265. To compile this driver as a module, choose M here:
  266. the module will be called acpi_memhotplug.
  267. config ACPI_SBS
  268. tristate "Smart Battery System"
  269. depends on X86
  270. select POWER_SUPPLY
  271. help
  272. This driver supports the Smart Battery System, another
  273. type of access to battery information, found on some laptops.
  274. To compile this driver as a module, choose M here:
  275. the modules will be called sbs and sbshc.
  276. config ACPI_HED
  277. tristate "Hardware Error Device"
  278. help
  279. This driver supports the Hardware Error Device (PNP0C33),
  280. which is used to report some hardware errors notified via
  281. SCI, mainly the corrected errors.
  282. config ACPI_CUSTOM_METHOD
  283. tristate "Allow ACPI methods to be inserted/replaced at run time"
  284. depends on DEBUG_FS
  285. default n
  286. help
  287. This debug facility allows ACPI AML methods to be inserted and/or
  288. replaced without rebooting the system. For details refer to:
  289. Documentation/acpi/method-customizing.txt.
  290. NOTE: This option is security sensitive, because it allows arbitrary
  291. kernel memory to be written to by root (uid=0) users, allowing them
  292. to bypass certain security measures (e.g. if root is not allowed to
  293. load additional kernel modules after boot, this feature may be used
  294. to override that restriction).
  295. config ACPI_BGRT
  296. bool "Boottime Graphics Resource Table support"
  297. depends on EFI && X86
  298. help
  299. This driver adds support for exposing the ACPI Boottime Graphics
  300. Resource Table, which allows the operating system to obtain
  301. data from the firmware boot splash. It will appear under
  302. /sys/firmware/acpi/bgrt/ .
  303. config ACPI_REDUCED_HARDWARE_ONLY
  304. bool "Hardware-reduced ACPI support only" if EXPERT
  305. def_bool n
  306. help
  307. This config item changes the way the ACPI code is built. When this
  308. option is selected, the kernel will use a specialized version of
  309. ACPICA that ONLY supports the ACPI "reduced hardware" mode. The
  310. resulting kernel will be smaller but it will also be restricted to
  311. running in ACPI reduced hardware mode ONLY.
  312. If you are unsure what to do, do not enable this option.
  313. source "drivers/acpi/apei/Kconfig"
  314. config ACPI_EXTLOG
  315. tristate "Extended Error Log support"
  316. depends on X86_MCE && X86_LOCAL_APIC
  317. select UEFI_CPER
  318. select RAS
  319. default n
  320. help
  321. Certain usages such as Predictive Failure Analysis (PFA) require
  322. more information about the error than what can be described in
  323. processor machine check banks. Most server processors log
  324. additional information about the error in processor uncore
  325. registers. Since the addresses and layout of these registers vary
  326. widely from one processor to another, system software cannot
  327. readily make use of them. To complicate matters further, some of
  328. the additional error information cannot be constructed without
  329. detailed knowledge about platform topology.
  330. Enhanced MCA Logging allows firmware to provide additional error
  331. information to system software, synchronous with MCE or CMCI. This
  332. driver adds support for that functionality with corresponding
  333. tracepoint which carries that information to userspace.
  334. menuconfig PMIC_OPREGION
  335. bool "PMIC (Power Management Integrated Circuit) operation region support"
  336. help
  337. Select this option to enable support for ACPI operation
  338. region of the PMIC chip. The operation region can be used
  339. to control power rails and sensor reading/writing on the
  340. PMIC chip.
  341. if PMIC_OPREGION
  342. config CRC_PMIC_OPREGION
  343. bool "ACPI operation region support for CrystalCove PMIC"
  344. depends on INTEL_SOC_PMIC
  345. help
  346. This config adds ACPI operation region support for CrystalCove PMIC.
  347. config XPOWER_PMIC_OPREGION
  348. bool "ACPI operation region support for XPower AXP288 PMIC"
  349. depends on AXP288_ADC = y
  350. help
  351. This config adds ACPI operation region support for XPower AXP288 PMIC.
  352. endif
  353. endif # ACPI