hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/acpi/Kconfig
....@@ -9,8 +9,8 @@
99 menuconfig ACPI
1010 bool "ACPI (Advanced Configuration and Power Interface) Support"
1111 depends on ARCH_SUPPORTS_ACPI
12
- depends on PCI
1312 select PNP
13
+ select NLS
1414 default y if X86
1515 help
1616 Advanced Configuration and Power Interface (ACPI) support for
....@@ -32,7 +32,7 @@
3232 Linux support for ACPI is based on Intel Corporation's ACPI
3333 Component Architecture (ACPI CA). For more information on the
3434 ACPI CA, see:
35
- <http://acpica.org/>
35
+ <https://acpica.org/>
3636
3737 ACPI is an open industry specification originally co-developed by
3838 Hewlett-Packard, Intel, Microsoft, Phoenix, and Toshiba. Currently,
....@@ -40,8 +40,7 @@
4040 the UEFI Forum and any UEFI member can join the ASWG and contribute
4141 to the ACPI specification.
4242 The specification is available at:
43
- <http://www.acpi.info>
44
- <http://www.uefi.org/acpi/specs>
43
+ <https://uefi.org/specifications>
4544
4645 if ACPI
4746
....@@ -99,23 +98,6 @@
9998 depends on ACPI_SYSTEM_POWER_STATES_SUPPORT
10099 default y
101100
102
-config ACPI_PROCFS_POWER
103
- bool "Deprecated power /proc/acpi directories"
104
- depends on X86 && PROC_FS
105
- help
106
- For backwards compatibility, this option allows
107
- deprecated power /proc/acpi/ directories to exist, even when
108
- they have been replaced by functions in /sys.
109
- The deprecated directories (and their replacements) include:
110
- /proc/acpi/battery/* (/sys/class/power_supply/*) and
111
- /proc/acpi/ac_adapter/* (sys/class/power_supply/*).
112
- This option has no effect on /proc/acpi/ directories
113
- and functions which do not yet exist in /sys.
114
- This option, together with the proc directories, will be
115
- deleted in the future.
116
-
117
- Say N to delete power /proc/acpi/ directories that have moved to /sys.
118
-
119101 config ACPI_REV_OVERRIDE_POSSIBLE
120102 bool "Allow supported ACPI revision to be overridden"
121103 depends on X86
....@@ -138,7 +120,6 @@
138120
139121 config ACPI_EC_DEBUGFS
140122 tristate "EC read/write access through /sys/kernel/debug/ec"
141
- default n
142123 help
143124 Say N to disable Embedded Controller /sys/kernel/debug interface
144125
....@@ -156,7 +137,6 @@
156137
157138 config ACPI_AC
158139 tristate "AC Adapter"
159
- depends on X86
160140 select POWER_SUPPLY
161141 default y
162142 help
....@@ -169,7 +149,6 @@
169149
170150 config ACPI_BATTERY
171151 tristate "Battery"
172
- depends on X86
173152 select POWER_SUPPLY
174153 default y
175154 help
....@@ -192,6 +171,30 @@
192171
193172 To compile this driver as a module, choose M here:
194173 the module will be called button.
174
+
175
+config ACPI_TINY_POWER_BUTTON
176
+ tristate "Tiny Power Button Driver"
177
+ depends on !ACPI_BUTTON
178
+ help
179
+ This driver provides a tiny alternative to the ACPI Button driver.
180
+ The tiny power button driver only handles the power button. Rather
181
+ than notifying userspace via the input layer or a netlink event, this
182
+ driver directly signals the init process to shut down.
183
+
184
+ This driver is particularly suitable for cloud and VM environments,
185
+ which use a simulated power button to initiate a controlled poweroff,
186
+ but which may not want to run a separate userspace daemon to process
187
+ input events.
188
+
189
+config ACPI_TINY_POWER_BUTTON_SIGNAL
190
+ int "Tiny Power Button Signal"
191
+ depends on ACPI_TINY_POWER_BUTTON
192
+ default 38
193
+ help
194
+ Default signal to send to init in response to the power button.
195
+
196
+ Likely values here include 38 (SIGRTMIN+4) to power off, or 2
197
+ (SIGINT) to simulate Ctrl+Alt+Del.
195198
196199 config ACPI_VIDEO
197200 tristate "Video"
....@@ -244,6 +247,7 @@
244247
245248 config ACPI_PROCESSOR_CSTATE
246249 def_bool y
250
+ depends on ACPI_PROCESSOR
247251 depends on IA64 || X86
248252
249253 config ACPI_PROCESSOR_IDLE
....@@ -283,7 +287,6 @@
283287 config ACPI_IPMI
284288 tristate "IPMI"
285289 depends on IPMI_HANDLER
286
- default n
287290 help
288291 This driver enables the ACPI to access the BMC controller. And it
289292 uses the IPMI request/response message to communicate with BMC
....@@ -323,22 +326,16 @@
323326 To compile this driver as a module, choose M here:
324327 the module will be called thermal.
325328
326
-config ACPI_NUMA
327
- bool "NUMA support"
328
- depends on NUMA
329
- depends on (X86 || IA64 || ARM64)
330
- default y if IA64_GENERIC || IA64_SGI_SN2 || ARM64
331
-
332329 config ACPI_CUSTOM_DSDT_FILE
333330 string "Custom DSDT Table file to include"
334331 default ""
335332 depends on !STANDALONE
336333 help
337334 This option supports a custom DSDT by linking it into the kernel.
338
- See Documentation/acpi/dsdt-override.txt
335
+ See Documentation/admin-guide/acpi/dsdt-override.rst
339336
340337 Enter the full path name to the file which includes the AmlCode
341
- declaration.
338
+ or dsdt_aml_code declaration.
342339
343340 If unsure, don't enter a file name.
344341
....@@ -357,24 +354,32 @@
357354 This option provides functionality to upgrade arbitrary ACPI tables
358355 via initrd. No functional change if no ACPI tables are passed via
359356 initrd, therefore it's safe to say Y.
360
- See Documentation/acpi/initrd_table_override.txt for details
357
+ See Documentation/admin-guide/acpi/initrd_table_override.rst for details
358
+
359
+config ACPI_TABLE_OVERRIDE_VIA_BUILTIN_INITRD
360
+ bool "Override ACPI tables from built-in initrd"
361
+ depends on ACPI_TABLE_UPGRADE
362
+ depends on INITRAMFS_SOURCE!="" && INITRAMFS_COMPRESSION_NONE
363
+ help
364
+ This option provides functionality to override arbitrary ACPI tables
365
+ from built-in uncompressed initrd.
366
+
367
+ See Documentation/admin-guide/acpi/initrd_table_override.rst for details
361368
362369 config ACPI_DEBUG
363370 bool "Debug Statements"
364
- default n
365371 help
366372 The ACPI subsystem can produce debug output. Saying Y enables this
367373 output and increases the kernel size by around 50K.
368374
369375 Use the acpi.debug_layer and acpi.debug_level kernel command-line
370
- parameters documented in Documentation/acpi/debug.txt and
376
+ parameters documented in Documentation/firmware-guide/acpi/debug.rst and
371377 Documentation/admin-guide/kernel-parameters.rst to control the type and
372378 amount of debug output.
373379
374380 config ACPI_PCI_SLOT
375381 bool "PCI slot detection driver"
376
- depends on SYSFS
377
- default n
382
+ depends on SYSFS && PCI
378383 help
379384 This driver creates entries in /sys/bus/pci/slots/ for all PCI
380385 slots in the system. This can help correlate PCI bus addresses,
....@@ -436,11 +441,10 @@
436441 config ACPI_CUSTOM_METHOD
437442 tristate "Allow ACPI methods to be inserted/replaced at run time"
438443 depends on DEBUG_FS
439
- default n
440444 help
441445 This debug facility allows ACPI AML methods to be inserted and/or
442446 replaced without rebooting the system. For details refer to:
443
- Documentation/acpi/method-customizing.txt.
447
+ Documentation/firmware-guide/acpi/method-customizing.rst.
444448
445449 NOTE: This option is security sensitive, because it allows arbitrary
446450 kernel memory to be written to by root (uid=0) users, allowing them
....@@ -451,7 +455,7 @@
451455 config ACPI_BGRT
452456 bool "Boottime Graphics Resource Table support"
453457 depends on EFI && (X86 || ARM64)
454
- help
458
+ help
455459 This driver adds support for exposing the ACPI Boottime Graphics
456460 Resource Table, which allows the operating system to obtain
457461 data from the firmware boot splash. It will appear under
....@@ -470,7 +474,7 @@
470474 If you are unsure what to do, do not enable this option.
471475
472476 source "drivers/acpi/nfit/Kconfig"
473
-
477
+source "drivers/acpi/numa/Kconfig"
474478 source "drivers/acpi/apei/Kconfig"
475479 source "drivers/acpi/dptf/Kconfig"
476480
....@@ -481,7 +485,6 @@
481485 tristate "Extended Error Log support"
482486 depends on X86_MCE && X86_LOCAL_APIC && EDAC
483487 select UEFI_CPER
484
- default n
485488 help
486489 Certain usages such as Predictive Failure Analysis (PFA) require
487490 more information about the error than what can be described in
....@@ -498,46 +501,8 @@
498501 driver adds support for that functionality with corresponding
499502 tracepoint which carries that information to userspace.
500503
501
-menuconfig PMIC_OPREGION
502
- bool "PMIC (Power Management Integrated Circuit) operation region support"
503
- help
504
- Select this option to enable support for ACPI operation
505
- region of the PMIC chip. The operation region can be used
506
- to control power rails and sensor reading/writing on the
507
- PMIC chip.
508
-
509
-if PMIC_OPREGION
510
-config CRC_PMIC_OPREGION
511
- bool "ACPI operation region support for CrystalCove PMIC"
512
- depends on INTEL_SOC_PMIC
513
- help
514
- This config adds ACPI operation region support for CrystalCove PMIC.
515
-
516
-config XPOWER_PMIC_OPREGION
517
- bool "ACPI operation region support for XPower AXP288 PMIC"
518
- depends on MFD_AXP20X_I2C
519
- help
520
- This config adds ACPI operation region support for XPower AXP288 PMIC.
521
-
522
-config BXT_WC_PMIC_OPREGION
523
- bool "ACPI operation region support for BXT WhiskeyCove PMIC"
524
- depends on INTEL_SOC_PMIC_BXTWC
525
- help
526
- This config adds ACPI operation region support for BXT WhiskeyCove PMIC.
527
-
528
-config CHT_WC_PMIC_OPREGION
529
- bool "ACPI operation region support for CHT Whiskey Cove PMIC"
530
- depends on INTEL_SOC_PMIC_CHTWC
531
- help
532
- This config adds ACPI operation region support for CHT Whiskey Cove PMIC.
533
-
534
-config CHT_DC_TI_PMIC_OPREGION
535
- bool "ACPI operation region support for Dollar Cove TI PMIC"
536
- depends on INTEL_SOC_PMIC_CHTDC_TI
537
- help
538
- This config adds ACPI operation region support for Dollar Cove TI PMIC.
539
-
540
-endif
504
+config ACPI_ADXL
505
+ bool
541506
542507 config ACPI_CONFIGFS
543508 tristate "ACPI configfs support"
....@@ -554,21 +519,7 @@
554519 bool
555520 endif
556521
557
-config TPS68470_PMIC_OPREGION
558
- bool "ACPI operation region support for TPS68470 PMIC"
559
- depends on MFD_TPS68470
560
- help
561
- This config adds ACPI operation region support for TI TPS68470 PMIC.
562
- TPS68470 device is an advanced power management unit that powers
563
- a Compact Camera Module (CCM), generates clocks for image sensors,
564
- drives a dual LED for flash and incorporates two LED drivers for
565
- general purpose indicators.
566
- This driver enables ACPI operation region support control voltage
567
- regulators and clocks.
568
-
569
- This option is a bool as it provides an ACPI operation
570
- region, which must be available before any of the devices
571
- using this, are probed.
522
+source "drivers/acpi/pmic/Kconfig"
572523
573524 endif # ACPI
574525