]> Pileus Git - ~andy/linux/blob - drivers/acpi/Kconfig
ACPI: Provide /sys/kernel/debug/ec/...
[~andy/linux] / drivers / acpi / Kconfig
1 #
2 # ACPI Configuration
3 #
4
5 menuconfig ACPI
6         bool "ACPI (Advanced Configuration and Power Interface) Support"
7         depends on !IA64_HP_SIM
8         depends on IA64 || X86
9         depends on PCI
10         depends on PM
11         select PNP
12         select CPU_IDLE
13         default y
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           <http://www.lesswatts.org/projects/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 co-developed by
37           Hewlett-Packard, Intel, Microsoft, Phoenix, and Toshiba.
38           The specification is available at:
39           <http://www.acpi.info>
40
41 if ACPI
42
43 config ACPI_SLEEP
44         bool
45         depends on SUSPEND || HIBERNATION
46         default y
47
48 config ACPI_PROCFS
49         bool "Deprecated /proc/acpi files"
50         depends on PROC_FS
51         help
52           For backwards compatibility, this option allows
53           deprecated /proc/acpi/ files to exist, even when
54           they have been replaced by functions in /sys.
55           The deprecated files (and their replacements) include:
56
57           /proc/acpi/sleep (/sys/power/state)
58           /proc/acpi/info (/sys/module/acpi/parameters/acpica_version)
59           /proc/acpi/dsdt (/sys/firmware/acpi/tables/DSDT)
60           /proc/acpi/fadt (/sys/firmware/acpi/tables/FACP)
61           /proc/acpi/debug_layer (/sys/module/acpi/parameters/debug_layer)
62           /proc/acpi/debug_level (/sys/module/acpi/parameters/debug_level)
63           /proc/acpi/processor/*/power (/sys/devices/system/cpu/*/cpuidle/*)
64           /proc/acpi/processor/*/performance (/sys/devices/system/cpu/*/
65                 cpufreq/*)
66           /proc/acpi/processor/*/throttling (/sys/class/thermal/
67                 cooling_device*/*)
68           This option has no effect on /proc/acpi/ files
69           and functions which do not yet exist in /sys.
70
71           Say N to delete /proc/acpi/ files that have moved to /sys/
72
73 config ACPI_PROCFS_POWER
74         bool "Deprecated power /proc/acpi directories"
75         depends on PROC_FS
76         default y
77         help
78           For backwards compatibility, this option allows
79           deprecated power /proc/acpi/ directories to exist, even when
80           they have been replaced by functions in /sys.
81           The deprecated directories (and their replacements) include:
82           /proc/acpi/battery/* (/sys/class/power_supply/*)
83           /proc/acpi/ac_adapter/* (sys/class/power_supply/*)
84           This option has no effect on /proc/acpi/ directories
85           and functions, which do not yet exist in /sys
86
87           Say N to delete power /proc/acpi/ directories that have moved to /sys/
88
89 config ACPI_POWER_METER
90         tristate "ACPI 4.0 power meter"
91         depends on HWMON
92         help
93           This driver exposes ACPI 4.0 power meters as hardware monitoring
94           devices.  Say Y (or M) if you have a computer with ACPI 4.0 firmware
95           and a power meter.
96
97           To compile this driver as a module, choose M here:
98           the module will be called power-meter.
99
100 config ACPI_SYSFS_POWER
101         bool "Future power /sys interface"
102         select POWER_SUPPLY
103         default y
104         help
105           Say N to disable power /sys interface
106
107 config ACPI_EC_DEBUGFS
108         tristate "EC read/write access through /sys/kernel/debug/ec"
109         default y
110         help
111           Say N to disable Embedded Controller /sys/kernel/debug interface
112
113           An Embedded Controller typically is available on laptops and reads
114           sensor values like battery state and temperature.
115           The kernel access the EC through ACPI parsed code provided by BIOS
116           tables.
117           Thus this option is a debug option that helps to write ACPI drivers
118           and can be used to identify ACPI code or EC firmware bugs.
119
120 config ACPI_PROC_EVENT
121         bool "Deprecated /proc/acpi/event support"
122         depends on PROC_FS
123         default y
124         help
125           A user-space daemon, acpid, typically reads /proc/acpi/event
126           and handles all ACPI-generated events.
127
128           These events are now delivered to user-space either
129           via the input layer or as netlink events.
130
131           This build option enables the old code for legacy
132           user-space implementation.  After some time, this will
133           be moved under CONFIG_ACPI_PROCFS, and then deleted.
134
135           Say Y here to retain the old behaviour.  Say N if your
136           user-space is newer than kernel 2.6.23 (September 2007).
137
138 config ACPI_AC
139         tristate "AC Adapter"
140         depends on X86
141         default y
142         help
143           This driver supports the AC Adapter object, which indicates
144           whether a system is on AC or not.  If you have a system that can
145           switch between A/C and battery, say Y.
146
147           To compile this driver as a module, choose M here:
148           the module will be called ac.
149
150 config ACPI_BATTERY
151         tristate "Battery"
152         depends on X86
153         default y
154         help
155           This driver adds support for battery information through
156           /proc/acpi/battery. If you have a mobile system with a battery, 
157           say Y.
158
159           To compile this driver as a module, choose M here:
160           the module will be called battery.
161
162 config ACPI_BUTTON
163         tristate "Button"
164         depends on INPUT
165         default y
166         help
167           This driver handles events on the power, sleep, and lid buttons.
168           A daemon reads /proc/acpi/event and perform user-defined actions
169           such as shutting down the system.  This is necessary for
170           software-controlled poweroff.
171
172           To compile this driver as a module, choose M here:
173           the module will be called button.
174
175 config ACPI_VIDEO
176         tristate "Video"
177         depends on X86 && BACKLIGHT_CLASS_DEVICE && VIDEO_OUTPUT_CONTROL
178         depends on INPUT
179         select THERMAL
180         help
181           This driver implements the ACPI Extensions For Display Adapters
182           for integrated graphics devices on motherboard, as specified in
183           ACPI 2.0 Specification, Appendix B.  This supports basic operations
184           such as defining the video POST device, retrieving EDID information,
185           and setting up a video output.
186
187           To compile this driver as a module, choose M here:
188           the module will be called video.
189
190 config ACPI_FAN
191         tristate "Fan"
192         select THERMAL
193         default y
194         help
195           This driver supports ACPI fan devices, allowing user-mode
196           applications to perform basic fan control (on, off, status).
197
198           To compile this driver as a module, choose M here:
199           the module will be called fan.
200
201 config ACPI_DOCK
202         bool "Dock"
203         depends on EXPERIMENTAL
204         help
205           This driver supports ACPI-controlled docking stations and removable
206           drive bays such as the IBM Ultrabay and the Dell Module Bay.
207
208 config ACPI_PROCESSOR
209         tristate "Processor"
210         select THERMAL
211         default y
212         help
213           This driver installs ACPI as the idle handler for Linux and uses
214           ACPI C2 and C3 processor states to save power on systems that
215           support it.  It is required by several flavors of cpufreq
216           performance-state drivers.
217
218           To compile this driver as a module, choose M here:
219           the module will be called processor.
220
221 config ACPI_HOTPLUG_CPU
222         bool
223         depends on ACPI_PROCESSOR && HOTPLUG_CPU
224         select ACPI_CONTAINER
225         default y
226
227 config ACPI_PROCESSOR_AGGREGATOR
228         tristate "Processor Aggregator"
229         depends on ACPI_PROCESSOR
230         depends on EXPERIMENTAL
231         depends on X86
232         help
233           ACPI 4.0 defines processor Aggregator, which enables OS to perform
234           specific processor configuration and control that applies to all
235           processors in the platform. Currently only logical processor idling
236           is defined, which is to reduce power consumption. This driver
237           supports the new device.
238
239 config ACPI_THERMAL
240         tristate "Thermal Zone"
241         depends on ACPI_PROCESSOR
242         select THERMAL
243         default y
244         help
245           This driver supports ACPI thermal zones.  Most mobile and
246           some desktop systems support ACPI thermal zones.  It is HIGHLY
247           recommended that this option be enabled, as your processor(s)
248           may be damaged without it.
249
250           To compile this driver as a module, choose M here:
251           the module will be called thermal.
252
253 config ACPI_NUMA
254         bool "NUMA support"
255         depends on NUMA
256         depends on (X86 || IA64)
257         default y if IA64_GENERIC || IA64_SGI_SN2
258
259 config ACPI_CUSTOM_DSDT_FILE
260         string "Custom DSDT Table file to include"
261         default ""
262         depends on !STANDALONE
263         help
264           This option supports a custom DSDT by linking it into the kernel.
265           See Documentation/acpi/dsdt-override.txt
266
267           Enter the full path name to the file which includes the AmlCode
268           declaration.
269
270           If unsure, don't enter a file name.
271
272 config ACPI_CUSTOM_DSDT
273         bool
274         default ACPI_CUSTOM_DSDT_FILE != ""
275
276 config ACPI_BLACKLIST_YEAR
277         int "Disable ACPI for systems before Jan 1st this year" if X86_32
278         default 0
279         help
280           Enter a 4-digit year, e.g., 2001, to disable ACPI by default
281           on platforms with DMI BIOS date before January 1st that year.
282           "acpi=force" can be used to override this mechanism.
283
284           Enter 0 to disable this mechanism and allow ACPI to
285           run by default no matter what the year.  (default)
286
287 config ACPI_DEBUG
288         bool "Debug Statements"
289         default n
290         help
291           The ACPI subsystem can produce debug output.  Saying Y enables this
292           output and increases the kernel size by around 50K.
293
294           Use the acpi.debug_layer and acpi.debug_level kernel command-line
295           parameters documented in Documentation/acpi/debug.txt and
296           Documentation/kernel-parameters.txt to control the type and
297           amount of debug output.
298
299 config ACPI_DEBUG_FUNC_TRACE
300         bool "Additionally enable ACPI function tracing"
301         default n
302         depends on ACPI_DEBUG
303         help
304           ACPI Debug Statements slow down ACPI processing. Function trace
305           is about half of the penalty and is rarely useful.
306
307 config ACPI_PCI_SLOT
308         tristate "PCI slot detection driver"
309         depends on SYSFS
310         default n
311         help
312           This driver creates entries in /sys/bus/pci/slots/ for all PCI
313           slots in the system.  This can help correlate PCI bus addresses,
314           i.e., segment/bus/device/function tuples, with physical slots in
315           the system.  If you are unsure, say N.
316
317           To compile this driver as a module, choose M here:
318           the module will be called pci_slot.
319
320 config X86_PM_TIMER
321         bool "Power Management Timer Support" if EMBEDDED
322         depends on X86
323         default y
324         help
325           The Power Management Timer is available on all ACPI-capable,
326           in most cases even if ACPI is unusable or blacklisted.
327
328           This timing source is not affected by power management features
329           like aggressive processor idling, throttling, frequency and/or
330           voltage scaling, unlike the commonly used Time Stamp Counter
331           (TSC) timing source.
332
333           You should nearly always say Y here because many modern
334           systems require this timer. 
335
336 config ACPI_CONTAINER
337         tristate "Container and Module Devices (EXPERIMENTAL)"
338         depends on EXPERIMENTAL
339         default (ACPI_HOTPLUG_MEMORY || ACPI_HOTPLUG_CPU || ACPI_HOTPLUG_IO)
340         help
341           This driver supports ACPI Container and Module devices (IDs
342           ACPI0004, PNP0A05, and PNP0A06).
343
344           This helps support hotplug of nodes, CPUs, and memory.
345
346           To compile this driver as a module, choose M here:
347           the module will be called container.
348
349 config ACPI_HOTPLUG_MEMORY
350         tristate "Memory Hotplug"
351         depends on MEMORY_HOTPLUG
352         default n
353         help
354           This driver supports ACPI memory hotplug.  The driver
355           fields notifications on ACPI memory devices (PNP0C80),
356           which represent memory ranges that may be onlined or
357           offlined during runtime.
358
359           If your hardware and firmware do not support adding or
360           removing memory devices at runtime, you need not enable
361           this driver.
362
363           To compile this driver as a module, choose M here:
364           the module will be called acpi_memhotplug.
365
366 config ACPI_SBS
367         tristate "Smart Battery System"
368         depends on X86
369         help
370           This driver supports the Smart Battery System, another
371           type of access to battery information, found on some laptops.
372
373           To compile this driver as a module, choose M here:
374           the modules will be called sbs and sbshc.
375
376 config ACPI_HED
377         tristate "Hardware Error Device"
378         help
379           This driver supports the Hardware Error Device (PNP0C33),
380           which is used to report some hardware errors notified via
381           SCI, mainly the corrected errors.
382
383 source "drivers/acpi/apei/Kconfig"
384
385 endif   # ACPI