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