]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blob - drivers/acpi/Kconfig
Merge branch 'am335x-phy-fixes' into omap-for-v5.0/fixes-v2
[mirror_ubuntu-eoan-kernel.git] / drivers / acpi / Kconfig
1 # SPDX-License-Identifier: GPL-2.0
2 #
3 # ACPI Configuration
4 #
5
6 config ARCH_SUPPORTS_ACPI
7 bool
8
9 menuconfig ACPI
10 bool "ACPI (Advanced Configuration and Power Interface) Support"
11 depends on ARCH_SUPPORTS_ACPI
12 select PNP
13 default y if X86
14 help
15 Advanced Configuration and Power Interface (ACPI) support for
16 Linux requires an ACPI-compliant platform (hardware/firmware),
17 and assumes the presence of OS-directed configuration and power
18 management (OSPM) software. This option will enlarge your
19 kernel by about 70K.
20
21 Linux ACPI provides a robust functional replacement for several
22 legacy configuration and power management interfaces, including
23 the Plug-and-Play BIOS specification (PnP BIOS), the
24 MultiProcessor Specification (MPS), and the Advanced Power
25 Management (APM) specification. If both ACPI and APM support
26 are configured, ACPI is used.
27
28 The project home page for the Linux ACPI subsystem is here:
29 <https://01.org/linux-acpi>
30
31 Linux support for ACPI is based on Intel Corporation's ACPI
32 Component Architecture (ACPI CA). For more information on the
33 ACPI CA, see:
34 <http://acpica.org/>
35
36 ACPI is an open industry specification originally co-developed by
37 Hewlett-Packard, Intel, Microsoft, Phoenix, and Toshiba. Currently,
38 it is developed by the ACPI Specification Working Group (ASWG) under
39 the UEFI Forum and any UEFI member can join the ASWG and contribute
40 to the ACPI specification.
41 The specification is available at:
42 <http://www.acpi.info>
43 <http://www.uefi.org/acpi/specs>
44
45 if ACPI
46
47 config ACPI_LEGACY_TABLES_LOOKUP
48 bool
49
50 config ARCH_MIGHT_HAVE_ACPI_PDC
51 bool
52
53 config ACPI_GENERIC_GSI
54 bool
55
56 config ACPI_SYSTEM_POWER_STATES_SUPPORT
57 bool
58
59 config ACPI_CCA_REQUIRED
60 bool
61
62 config ACPI_DEBUGGER
63 bool "AML debugger interface"
64 select ACPI_DEBUG
65 help
66 Enable in-kernel debugging of AML facilities: statistics,
67 internal object dump, single step control method execution.
68 This is still under development, currently enabling this only
69 results in the compilation of the ACPICA debugger files.
70
71 if ACPI_DEBUGGER
72
73 config ACPI_DEBUGGER_USER
74 tristate "Userspace debugger accessiblity"
75 depends on DEBUG_FS
76 help
77 Export /sys/kernel/debug/acpi/acpidbg for userspace utilities
78 to access the debugger functionalities.
79
80 endif
81
82 config ACPI_SPCR_TABLE
83 bool "ACPI Serial Port Console Redirection Support"
84 default y if X86
85 help
86 Enable support for Serial Port Console Redirection (SPCR) Table.
87 This table provides information about the configuration of the
88 earlycon console.
89
90 config ACPI_LPIT
91 bool
92 depends on X86_64
93 default y
94
95 config ACPI_SLEEP
96 bool
97 depends on SUSPEND || HIBERNATION
98 depends on ACPI_SYSTEM_POWER_STATES_SUPPORT
99 default y
100
101 config ACPI_PROCFS_POWER
102 bool "Deprecated power /proc/acpi directories"
103 depends on X86 && PROC_FS
104 help
105 For backwards compatibility, this option allows
106 deprecated power /proc/acpi/ directories to exist, even when
107 they have been replaced by functions in /sys.
108 The deprecated directories (and their replacements) include:
109 /proc/acpi/battery/* (/sys/class/power_supply/*) and
110 /proc/acpi/ac_adapter/* (sys/class/power_supply/*).
111 This option has no effect on /proc/acpi/ directories
112 and functions which do not yet exist in /sys.
113 This option, together with the proc directories, will be
114 deleted in the future.
115
116 Say N to delete power /proc/acpi/ directories that have moved to /sys.
117
118 config ACPI_REV_OVERRIDE_POSSIBLE
119 bool "Allow supported ACPI revision to be overridden"
120 depends on X86
121 default y
122 help
123 The platform firmware on some systems expects Linux to return "5" as
124 the supported ACPI revision which makes it expose system configuration
125 information in a special way.
126
127 For example, based on what ACPI exports as the supported revision,
128 Dell XPS 13 (2015) configures its audio device to either work in HDA
129 mode or in I2S mode, where the former is supposed to be used on Linux
130 until the latter is fully supported (in the kernel as well as in user
131 space).
132
133 This option enables a DMI-based quirk for the above Dell machine (so
134 that HDA audio is exposed by the platform firmware to the kernel) and
135 makes it possible to force the kernel to return "5" as the supported
136 ACPI revision via the "acpi_rev_override" command line switch.
137
138 config ACPI_EC_DEBUGFS
139 tristate "EC read/write access through /sys/kernel/debug/ec"
140 help
141 Say N to disable Embedded Controller /sys/kernel/debug interface
142
143 Be aware that using this interface can confuse your Embedded
144 Controller in a way that a normal reboot is not enough. You then
145 have to power off your system, and remove the laptop battery for
146 some seconds.
147 An Embedded Controller typically is available on laptops and reads
148 sensor values like battery state and temperature.
149 The kernel accesses the EC through ACPI parsed code provided by BIOS
150 tables. This option allows to access the EC directly without ACPI
151 code being involved.
152 Thus this option is a debug option that helps to write ACPI drivers
153 and can be used to identify ACPI code or EC firmware bugs.
154
155 config ACPI_AC
156 tristate "AC Adapter"
157 depends on X86
158 select POWER_SUPPLY
159 default y
160 help
161 This driver supports the AC Adapter object, which indicates
162 whether a system is on AC or not. If you have a system that can
163 switch between A/C and battery, say Y.
164
165 To compile this driver as a module, choose M here:
166 the module will be called ac.
167
168 config ACPI_BATTERY
169 tristate "Battery"
170 depends on X86
171 select POWER_SUPPLY
172 default y
173 help
174 This driver adds support for battery information through
175 /proc/acpi/battery. If you have a mobile system with a battery,
176 say Y.
177
178 To compile this driver as a module, choose M here:
179 the module will be called battery.
180
181 config ACPI_BUTTON
182 tristate "Button"
183 depends on INPUT
184 default y
185 help
186 This driver handles events on the power, sleep, and lid buttons.
187 A daemon reads events from input devices or via netlink and
188 performs user-defined actions such as shutting down the system.
189 This is necessary for software-controlled poweroff.
190
191 To compile this driver as a module, choose M here:
192 the module will be called button.
193
194 config ACPI_VIDEO
195 tristate "Video"
196 depends on X86 && BACKLIGHT_CLASS_DEVICE
197 depends on INPUT
198 select THERMAL
199 help
200 This driver implements the ACPI Extensions For Display Adapters
201 for integrated graphics devices on motherboard, as specified in
202 ACPI 2.0 Specification, Appendix B. This supports basic operations
203 such as defining the video POST device, retrieving EDID information,
204 and setting up a video output.
205
206 To compile this driver as a module, choose M here:
207 the module will be called video.
208
209 config ACPI_FAN
210 tristate "Fan"
211 depends on THERMAL
212 default y
213 help
214 This driver supports ACPI fan devices, allowing user-mode
215 applications to perform basic fan control (on, off, status).
216
217 To compile this driver as a module, choose M here:
218 the module will be called fan.
219
220 config ACPI_TAD
221 tristate "ACPI Time and Alarm (TAD) Device Support"
222 depends on SYSFS && PM_SLEEP
223 help
224 The ACPI Time and Alarm (TAD) device is an alternative to the Real
225 Time Clock (RTC). Its wake timers allow the system to transition from
226 the S3 (or optionally S4/S5) state to S0 state after a time period
227 elapses. In comparison with the RTC Alarm, the TAD provides a larger
228 scale of flexibility in the wake timers. The time capabilities of the
229 TAD maintain the time of day information across platform power
230 transitions, and keep track of time even when the platform is turned
231 off.
232
233 config ACPI_DOCK
234 bool "Dock"
235 help
236 This driver supports ACPI-controlled docking stations and removable
237 drive bays such as the IBM Ultrabay and the Dell Module Bay.
238
239 config ACPI_CPU_FREQ_PSS
240 bool
241 select THERMAL
242
243 config ACPI_PROCESSOR_CSTATE
244 def_bool y
245 depends on IA64 || X86
246
247 config ACPI_PROCESSOR_IDLE
248 bool
249 select CPU_IDLE
250
251 config ACPI_MCFG
252 bool
253
254 config ACPI_CPPC_LIB
255 bool
256 depends on ACPI_PROCESSOR
257 select MAILBOX
258 select PCC
259 help
260 If this option is enabled, this file implements common functionality
261 to parse CPPC tables as described in the ACPI 5.1+ spec. The
262 routines implemented are meant to be used by other
263 drivers to control CPU performance using CPPC semantics.
264 If your platform does not support CPPC in firmware,
265 leave this option disabled.
266
267 config ACPI_PROCESSOR
268 tristate "Processor"
269 depends on X86 || IA64 || ARM64
270 select ACPI_PROCESSOR_IDLE
271 select ACPI_CPU_FREQ_PSS if X86 || IA64
272 default y
273 help
274 This driver adds support for the ACPI Processor package. It is required
275 by several flavors of cpufreq performance-state, thermal, throttling and
276 idle drivers.
277
278 To compile this driver as a module, choose M here:
279 the module will be called processor.
280
281 config ACPI_IPMI
282 tristate "IPMI"
283 depends on IPMI_HANDLER
284 help
285 This driver enables the ACPI to access the BMC controller. And it
286 uses the IPMI request/response message to communicate with BMC
287 controller, which can be found on on the server.
288
289 To compile this driver as a module, choose M here:
290 the module will be called as acpi_ipmi.
291
292 config ACPI_HOTPLUG_CPU
293 bool
294 depends on ACPI_PROCESSOR && HOTPLUG_CPU
295 select ACPI_CONTAINER
296 default y
297
298 config ACPI_PROCESSOR_AGGREGATOR
299 tristate "Processor Aggregator"
300 depends on ACPI_PROCESSOR
301 depends on X86
302 help
303 ACPI 4.0 defines processor Aggregator, which enables OS to perform
304 specific processor configuration and control that applies to all
305 processors in the platform. Currently only logical processor idling
306 is defined, which is to reduce power consumption. This driver
307 supports the new device.
308
309 config ACPI_THERMAL
310 tristate "Thermal Zone"
311 depends on ACPI_PROCESSOR
312 select THERMAL
313 default y
314 help
315 This driver supports ACPI thermal zones. Most mobile and
316 some desktop systems support ACPI thermal zones. It is HIGHLY
317 recommended that this option be enabled, as your processor(s)
318 may be damaged without it.
319
320 To compile this driver as a module, choose M here:
321 the module will be called thermal.
322
323 config ACPI_NUMA
324 bool "NUMA support"
325 depends on NUMA
326 depends on (X86 || IA64 || ARM64)
327 default y if IA64_GENERIC || IA64_SGI_SN2 || ARM64
328
329 config ACPI_CUSTOM_DSDT_FILE
330 string "Custom DSDT Table file to include"
331 default ""
332 depends on !STANDALONE
333 help
334 This option supports a custom DSDT by linking it into the kernel.
335 See Documentation/acpi/dsdt-override.txt
336
337 Enter the full path name to the file which includes the AmlCode
338 or dsdt_aml_code declaration.
339
340 If unsure, don't enter a file name.
341
342 config ACPI_CUSTOM_DSDT
343 bool
344 default ACPI_CUSTOM_DSDT_FILE != ""
345
346 config ARCH_HAS_ACPI_TABLE_UPGRADE
347 def_bool n
348
349 config ACPI_TABLE_UPGRADE
350 bool "Allow upgrading ACPI tables via initrd"
351 depends on BLK_DEV_INITRD && ARCH_HAS_ACPI_TABLE_UPGRADE
352 default y
353 help
354 This option provides functionality to upgrade arbitrary ACPI tables
355 via initrd. No functional change if no ACPI tables are passed via
356 initrd, therefore it's safe to say Y.
357 See Documentation/acpi/initrd_table_override.txt for details
358
359 config ACPI_DEBUG
360 bool "Debug Statements"
361 help
362 The ACPI subsystem can produce debug output. Saying Y enables this
363 output and increases the kernel size by around 50K.
364
365 Use the acpi.debug_layer and acpi.debug_level kernel command-line
366 parameters documented in Documentation/acpi/debug.txt and
367 Documentation/admin-guide/kernel-parameters.rst to control the type and
368 amount of debug output.
369
370 config ACPI_PCI_SLOT
371 bool "PCI slot detection driver"
372 depends on SYSFS && PCI
373 help
374 This driver creates entries in /sys/bus/pci/slots/ for all PCI
375 slots in the system. This can help correlate PCI bus addresses,
376 i.e., segment/bus/device/function tuples, with physical slots in
377 the system. If you are unsure, say N.
378
379 config ACPI_CONTAINER
380 bool "Container and Module Devices"
381 default (ACPI_HOTPLUG_MEMORY || ACPI_HOTPLUG_CPU)
382 help
383 This driver supports ACPI Container and Module devices (IDs
384 ACPI0004, PNP0A05, and PNP0A06).
385
386 This helps support hotplug of nodes, CPUs, and memory.
387
388 To compile this driver as a module, choose M here:
389 the module will be called container.
390
391 config ACPI_HOTPLUG_MEMORY
392 bool "Memory Hotplug"
393 depends on MEMORY_HOTPLUG
394 help
395 This driver supports ACPI memory hotplug. The driver
396 fields notifications on ACPI memory devices (PNP0C80),
397 which represent memory ranges that may be onlined or
398 offlined during runtime.
399
400 If your hardware and firmware do not support adding or
401 removing memory devices at runtime, you need not enable
402 this driver.
403
404 To compile this driver as a module, choose M here:
405 the module will be called acpi_memhotplug.
406
407 config ACPI_HOTPLUG_IOAPIC
408 bool
409 depends on PCI
410 depends on X86_IO_APIC
411 default y
412
413 config ACPI_SBS
414 tristate "Smart Battery System"
415 depends on X86
416 select POWER_SUPPLY
417 help
418 This driver supports the Smart Battery System, another
419 type of access to battery information, found on some laptops.
420
421 To compile this driver as a module, choose M here:
422 the modules will be called sbs and sbshc.
423
424 config ACPI_HED
425 tristate "Hardware Error Device"
426 help
427 This driver supports the Hardware Error Device (PNP0C33),
428 which is used to report some hardware errors notified via
429 SCI, mainly the corrected errors.
430
431 config ACPI_CUSTOM_METHOD
432 tristate "Allow ACPI methods to be inserted/replaced at run time"
433 depends on DEBUG_FS
434 help
435 This debug facility allows ACPI AML methods to be inserted and/or
436 replaced without rebooting the system. For details refer to:
437 Documentation/acpi/method-customizing.txt.
438
439 NOTE: This option is security sensitive, because it allows arbitrary
440 kernel memory to be written to by root (uid=0) users, allowing them
441 to bypass certain security measures (e.g. if root is not allowed to
442 load additional kernel modules after boot, this feature may be used
443 to override that restriction).
444
445 config ACPI_BGRT
446 bool "Boottime Graphics Resource Table support"
447 depends on EFI && (X86 || ARM64)
448 help
449 This driver adds support for exposing the ACPI Boottime Graphics
450 Resource Table, which allows the operating system to obtain
451 data from the firmware boot splash. It will appear under
452 /sys/firmware/acpi/bgrt/ .
453
454 config ACPI_REDUCED_HARDWARE_ONLY
455 bool "Hardware-reduced ACPI support only" if EXPERT
456 def_bool n
457 help
458 This config item changes the way the ACPI code is built. When this
459 option is selected, the kernel will use a specialized version of
460 ACPICA that ONLY supports the ACPI "reduced hardware" mode. The
461 resulting kernel will be smaller but it will also be restricted to
462 running in ACPI reduced hardware mode ONLY.
463
464 If you are unsure what to do, do not enable this option.
465
466 source "drivers/acpi/nfit/Kconfig"
467
468 source "drivers/acpi/apei/Kconfig"
469 source "drivers/acpi/dptf/Kconfig"
470
471 config ACPI_WATCHDOG
472 bool
473
474 config ACPI_EXTLOG
475 tristate "Extended Error Log support"
476 depends on X86_MCE && X86_LOCAL_APIC && EDAC
477 select UEFI_CPER
478 help
479 Certain usages such as Predictive Failure Analysis (PFA) require
480 more information about the error than what can be described in
481 processor machine check banks. Most server processors log
482 additional information about the error in processor uncore
483 registers. Since the addresses and layout of these registers vary
484 widely from one processor to another, system software cannot
485 readily make use of them. To complicate matters further, some of
486 the additional error information cannot be constructed without
487 detailed knowledge about platform topology.
488
489 Enhanced MCA Logging allows firmware to provide additional error
490 information to system software, synchronous with MCE or CMCI. This
491 driver adds support for that functionality with corresponding
492 tracepoint which carries that information to userspace.
493
494 config ACPI_ADXL
495 bool
496
497 menuconfig PMIC_OPREGION
498 bool "PMIC (Power Management Integrated Circuit) operation region support"
499 help
500 Select this option to enable support for ACPI operation
501 region of the PMIC chip. The operation region can be used
502 to control power rails and sensor reading/writing on the
503 PMIC chip.
504
505 if PMIC_OPREGION
506 config CRC_PMIC_OPREGION
507 bool "ACPI operation region support for CrystalCove PMIC"
508 depends on INTEL_SOC_PMIC
509 help
510 This config adds ACPI operation region support for CrystalCove PMIC.
511
512 config XPOWER_PMIC_OPREGION
513 bool "ACPI operation region support for XPower AXP288 PMIC"
514 depends on MFD_AXP20X_I2C && IOSF_MBI=y
515 help
516 This config adds ACPI operation region support for XPower AXP288 PMIC.
517
518 config BXT_WC_PMIC_OPREGION
519 bool "ACPI operation region support for BXT WhiskeyCove PMIC"
520 depends on INTEL_SOC_PMIC_BXTWC
521 help
522 This config adds ACPI operation region support for BXT WhiskeyCove PMIC.
523
524 config CHT_WC_PMIC_OPREGION
525 bool "ACPI operation region support for CHT Whiskey Cove PMIC"
526 depends on INTEL_SOC_PMIC_CHTWC
527 help
528 This config adds ACPI operation region support for CHT Whiskey Cove PMIC.
529
530 config CHT_DC_TI_PMIC_OPREGION
531 bool "ACPI operation region support for Dollar Cove TI PMIC"
532 depends on INTEL_SOC_PMIC_CHTDC_TI
533 help
534 This config adds ACPI operation region support for Dollar Cove TI PMIC.
535
536 endif
537
538 config ACPI_CONFIGFS
539 tristate "ACPI configfs support"
540 select CONFIGFS_FS
541 help
542 Select this option to enable support for ACPI configuration from
543 userspace. The configurable ACPI groups will be visible under
544 /config/acpi, assuming configfs is mounted under /config.
545
546 if ARM64
547 source "drivers/acpi/arm64/Kconfig"
548
549 config ACPI_PPTT
550 bool
551 endif
552
553 config TPS68470_PMIC_OPREGION
554 bool "ACPI operation region support for TPS68470 PMIC"
555 depends on MFD_TPS68470
556 help
557 This config adds ACPI operation region support for TI TPS68470 PMIC.
558 TPS68470 device is an advanced power management unit that powers
559 a Compact Camera Module (CCM), generates clocks for image sensors,
560 drives a dual LED for flash and incorporates two LED drivers for
561 general purpose indicators.
562 This driver enables ACPI operation region support control voltage
563 regulators and clocks.
564
565 This option is a bool as it provides an ACPI operation
566 region, which must be available before any of the devices
567 using this, are probed.
568
569 endif # ACPI
570
571 config X86_PM_TIMER
572 bool "Power Management Timer Support" if EXPERT
573 depends on X86 && (ACPI || JAILHOUSE_GUEST)
574 default y
575 help
576 The Power Management Timer is available on all ACPI-capable,
577 in most cases even if ACPI is unusable or blacklisted.
578
579 This timing source is not affected by power management features
580 like aggressive processor idling, throttling, frequency and/or
581 voltage scaling, unlike the commonly used Time Stamp Counter
582 (TSC) timing source.
583
584 You should nearly always say Y here because many modern
585 systems require this timer.