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