ACPI, IO memory pre-mapping and atomic accessing
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / acpi / Kconfig
CommitLineData
1da177e4
LT
1#
2# ACPI Configuration
3#
4
3f2c48c9 5menuconfig ACPI
355ee5eb 6 bool "ACPI (Advanced Configuration and Power Interface) Support"
1da177e4
LT
7 depends on !IA64_HP_SIM
8 depends on IA64 || X86
1300124f 9 depends on PCI
6796a120 10 depends on PM
243b66e7 11 select PNP
9fdd54f2 12 select CPU_IDLE
1da177e4 13 default y
1c48aa36 14 help
1da177e4 15 Advanced Configuration and Power Interface (ACPI) support for
1c48aa36 16 Linux requires an ACPI-compliant platform (hardware/firmware),
1da177e4
LT
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
1c48aa36 26 are configured, ACPI is used.
1da177e4 27
1c48aa36
BH
28 The project home page for the Linux ACPI subsystem is here:
29 <http://www.lesswatts.org/projects/acpi/>
1da177e4
LT
30
31 Linux support for ACPI is based on Intel Corporation's ACPI
1c48aa36
BH
32 Component Architecture (ACPI CA). For more information on the
33 ACPI CA, see:
34 <http://acpica.org/>
1da177e4 35
1c48aa36
BH
36 ACPI is an open industry specification co-developed by
37 Hewlett-Packard, Intel, Microsoft, Phoenix, and Toshiba.
38 The specification is available at:
1da177e4
LT
39 <http://www.acpi.info>
40
3e11c3ce
LB
41if ACPI
42
673d5b43
LB
43config ACPI_SLEEP
44 bool
5d1e072b 45 depends on SUSPEND || HIBERNATION
673d5b43
LB
46 default y
47
b981c591 48config ACPI_PROCFS
fb804714
LB
49 bool "Deprecated /proc/acpi files"
50 depends on PROC_FS
1c48aa36 51 help
fb804714 52 For backwards compatibility, this option allows
405bbe9f 53 deprecated /proc/acpi/ files to exist, even when
fb804714
LB
54 they have been replaced by functions in /sys.
55 The deprecated files (and their replacements) include:
56
43532c8a 57 /proc/acpi/sleep (/sys/power/state)
1c48aa36 58 /proc/acpi/info (/sys/module/acpi/parameters/acpica_version)
fb804714
LB
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)
74cad4ee
ZY
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*/*)
fb804714
LB
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/
1c48aa36 72
fdcedbba 73config ACPI_PROCFS_POWER
9e527971 74 bool "Deprecated power /proc/acpi directories"
fdcedbba
AS
75 depends on PROC_FS
76 default y
1c48aa36 77 help
fdcedbba 78 For backwards compatibility, this option allows
9e527971 79 deprecated power /proc/acpi/ directories to exist, even when
fdcedbba 80 they have been replaced by functions in /sys.
9e527971 81 The deprecated directories (and their replacements) include:
fdcedbba
AS
82 /proc/acpi/battery/* (/sys/class/power_supply/*)
83 /proc/acpi/ac_adapter/* (sys/class/power_supply/*)
9e527971 84 This option has no effect on /proc/acpi/ directories
fdcedbba 85 and functions, which do not yet exist in /sys
b981c591 86
9e527971
AC
87 Say N to delete power /proc/acpi/ directories that have moved to /sys/
88
de584afa
DW
89config 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
97749cd9
AS
100config ACPI_SYSFS_POWER
101 bool "Future power /sys interface"
102 select POWER_SUPPLY
103 default y
1c48aa36 104 help
97749cd9 105 Say N to disable power /sys interface
9e527971 106
14e04fb3
LB
107config ACPI_PROC_EVENT
108 bool "Deprecated /proc/acpi/event support"
109 depends on PROC_FS
721ebe00 110 default y
1c48aa36
BH
111 help
112 A user-space daemon, acpid, typically reads /proc/acpi/event
113 and handles all ACPI-generated events.
14e04fb3 114
1c48aa36
BH
115 These events are now delivered to user-space either
116 via the input layer or as netlink events.
14e04fb3 117
721ebe00 118 This build option enables the old code for legacy
14e04fb3
LB
119 user-space implementation. After some time, this will
120 be moved under CONFIG_ACPI_PROCFS, and then deleted.
121
721ebe00
HD
122 Say Y here to retain the old behaviour. Say N if your
123 user-space is newer than kernel 2.6.23 (September 2007).
124
1da177e4
LT
125config ACPI_AC
126 tristate "AC Adapter"
5527c8be 127 depends on X86
07fefe4c 128 default y
1da177e4 129 help
1c48aa36
BH
130 This driver supports the AC Adapter object, which indicates
131 whether a system is on AC or not. If you have a system that can
07fefe4c 132 switch between A/C and battery, say Y.
1da177e4 133
1c48aa36
BH
134 To compile this driver as a module, choose M here:
135 the module will be called ac.
136
1da177e4
LT
137config ACPI_BATTERY
138 tristate "Battery"
5527c8be 139 depends on X86
07fefe4c 140 default y
1da177e4
LT
141 help
142 This driver adds support for battery information through
143 /proc/acpi/battery. If you have a mobile system with a battery,
144 say Y.
145
1c48aa36
BH
146 To compile this driver as a module, choose M here:
147 the module will be called battery.
148
1da177e4
LT
149config ACPI_BUTTON
150 tristate "Button"
c0968f0e 151 depends on INPUT
07fefe4c 152 default y
1da177e4 153 help
1c48aa36 154 This driver handles events on the power, sleep, and lid buttons.
07fefe4c
LB
155 A daemon reads /proc/acpi/event and perform user-defined actions
156 such as shutting down the system. This is necessary for
1c48aa36
BH
157 software-controlled poweroff.
158
159 To compile this driver as a module, choose M here:
160 the module will be called button.
1da177e4
LT
161
162config ACPI_VIDEO
163 tristate "Video"
23b0f015 164 depends on X86 && BACKLIGHT_CLASS_DEVICE && VIDEO_OUTPUT_CONTROL
03e2bf26 165 depends on INPUT
63c4ec90 166 select THERMAL
1da177e4 167 help
1c48aa36 168 This driver implements the ACPI Extensions For Display Adapters
1da177e4 169 for integrated graphics devices on motherboard, as specified in
1c48aa36
BH
170 ACPI 2.0 Specification, Appendix B. This supports basic operations
171 such as defining the video POST device, retrieving EDID information,
172 and setting up a video output.
173
174 To compile this driver as a module, choose M here:
175 the module will be called video.
1da177e4
LT
176
177config ACPI_FAN
178 tristate "Fan"
63c4ec90 179 select THERMAL
07fefe4c 180 default y
1da177e4 181 help
1c48aa36 182 This driver supports ACPI fan devices, allowing user-mode
1da177e4
LT
183 applications to perform basic fan control (on, off, status).
184
1c48aa36
BH
185 To compile this driver as a module, choose M here:
186 the module will be called fan.
187
c8f7a62c 188config ACPI_DOCK
898b054f 189 bool "Dock"
8d7bff6c 190 depends on EXPERIMENTAL
c8f7a62c 191 help
1c48aa36
BH
192 This driver supports ACPI-controlled docking stations and removable
193 drive bays such as the IBM Ultrabay and the Dell Module Bay.
01b57e73 194
1da177e4
LT
195config ACPI_PROCESSOR
196 tristate "Processor"
63c4ec90 197 select THERMAL
07fefe4c 198 default y
1da177e4 199 help
1c48aa36
BH
200 This driver installs ACPI as the idle handler for Linux and uses
201 ACPI C2 and C3 processor states to save power on systems that
07fefe4c 202 support it. It is required by several flavors of cpufreq
1c48aa36
BH
203 performance-state drivers.
204
205 To compile this driver as a module, choose M here:
206 the module will be called processor.
1da177e4
LT
207
208config ACPI_HOTPLUG_CPU
cbfc1bae
AB
209 bool
210 depends on ACPI_PROCESSOR && HOTPLUG_CPU
1da177e4 211 select ACPI_CONTAINER
cbfc1bae 212 default y
1da177e4 213
8e0af514
SL
214config ACPI_PROCESSOR_AGGREGATOR
215 tristate "Processor Aggregator"
216 depends on ACPI_PROCESSOR
217 depends on EXPERIMENTAL
d91f79eb 218 depends on X86
8e0af514
SL
219 help
220 ACPI 4.0 defines processor Aggregator, which enables OS to perform
c4c4e2a5 221 specific processor configuration and control that applies to all
8e0af514
SL
222 processors in the platform. Currently only logical processor idling
223 is defined, which is to reduce power consumption. This driver
c4c4e2a5 224 supports the new device.
8e0af514 225
1da177e4
LT
226config ACPI_THERMAL
227 tristate "Thermal Zone"
228 depends on ACPI_PROCESSOR
3f655ef8 229 select THERMAL
07fefe4c 230 default y
1da177e4 231 help
1c48aa36 232 This driver supports ACPI thermal zones. Most mobile and
1da177e4
LT
233 some desktop systems support ACPI thermal zones. It is HIGHLY
234 recommended that this option be enabled, as your processor(s)
235 may be damaged without it.
236
1c48aa36
BH
237 To compile this driver as a module, choose M here:
238 the module will be called thermal.
239
1da177e4
LT
240config ACPI_NUMA
241 bool "NUMA support"
242 depends on NUMA
762834e8 243 depends on (X86 || IA64)
1da177e4
LT
244 default y if IA64_GENERIC || IA64_SGI_SN2
245
7ce9573e
RD
246config ACPI_CUSTOM_DSDT_FILE
247 string "Custom DSDT Table file to include"
248 default ""
1da177e4 249 depends on !STANDALONE
1da177e4 250 help
d89e9d6b
LB
251 This option supports a custom DSDT by linking it into the kernel.
252 See Documentation/acpi/dsdt-override.txt
253
c30fe7f7
UZ
254 Enter the full path name to the file which includes the AmlCode
255 declaration.
1da177e4 256
7ce9573e
RD
257 If unsure, don't enter a file name.
258
259config ACPI_CUSTOM_DSDT
260 bool
261 default ACPI_CUSTOM_DSDT_FILE != ""
262
1da177e4 263config ACPI_BLACKLIST_YEAR
2eb1bdba 264 int "Disable ACPI for systems before Jan 1st this year" if X86_32
1da177e4
LT
265 default 0
266 help
1c48aa36 267 Enter a 4-digit year, e.g., 2001, to disable ACPI by default
1da177e4
LT
268 on platforms with DMI BIOS date before January 1st that year.
269 "acpi=force" can be used to override this mechanism.
270
271 Enter 0 to disable this mechanism and allow ACPI to
272 run by default no matter what the year. (default)
273
274config ACPI_DEBUG
275 bool "Debug Statements"
1da177e4
LT
276 default n
277 help
a0d84a92
BH
278 The ACPI subsystem can produce debug output. Saying Y enables this
279 output and increases the kernel size by around 50K.
280
281 Use the acpi.debug_layer and acpi.debug_level kernel command-line
282 parameters documented in Documentation/acpi/debug.txt and
283 Documentation/kernel-parameters.txt to control the type and
284 amount of debug output.
1da177e4 285
798d9103
TR
286config ACPI_DEBUG_FUNC_TRACE
287 bool "Additionally enable ACPI function tracing"
288 default n
289 depends on ACPI_DEBUG
290 help
291 ACPI Debug Statements slow down ACPI processing. Function trace
292 is about half of the penalty and is rarely useful.
293
8344b568
AC
294config ACPI_PCI_SLOT
295 tristate "PCI slot detection driver"
268a03a4 296 depends on SYSFS
8344b568
AC
297 default n
298 help
1c48aa36
BH
299 This driver creates entries in /sys/bus/pci/slots/ for all PCI
300 slots in the system. This can help correlate PCI bus addresses,
301 i.e., segment/bus/device/function tuples, with physical slots in
302 the system. If you are unsure, say N.
303
304 To compile this driver as a module, choose M here:
305 the module will be called pci_slot.
8344b568 306
1da177e4 307config X86_PM_TIMER
e78256b8 308 bool "Power Management Timer Support" if EMBEDDED
1da177e4 309 depends on X86
07fefe4c 310 default y
1da177e4
LT
311 help
312 The Power Management Timer is available on all ACPI-capable,
313 in most cases even if ACPI is unusable or blacklisted.
314
c73a668c 315 This timing source is not affected by power management features
1da177e4
LT
316 like aggressive processor idling, throttling, frequency and/or
317 voltage scaling, unlike the commonly used Time Stamp Counter
318 (TSC) timing source.
319
e78256b8
AK
320 You should nearly always say Y here because many modern
321 systems require this timer.
1da177e4
LT
322
323config ACPI_CONTAINER
1c48aa36 324 tristate "Container and Module Devices (EXPERIMENTAL)"
1da177e4
LT
325 depends on EXPERIMENTAL
326 default (ACPI_HOTPLUG_MEMORY || ACPI_HOTPLUG_CPU || ACPI_HOTPLUG_IO)
1c48aa36
BH
327 help
328 This driver supports ACPI Container and Module devices (IDs
329 ACPI0004, PNP0A05, and PNP0A06).
45b1b196 330
1c48aa36
BH
331 This helps support hotplug of nodes, CPUs, and memory.
332
333 To compile this driver as a module, choose M here:
334 the module will be called container.
1da177e4
LT
335
336config ACPI_HOTPLUG_MEMORY
337 tristate "Memory Hotplug"
bc02af93 338 depends on MEMORY_HOTPLUG
1da177e4
LT
339 default n
340 help
1c48aa36
BH
341 This driver supports ACPI memory hotplug. The driver
342 fields notifications on ACPI memory devices (PNP0C80),
343 which represent memory ranges that may be onlined or
344 offlined during runtime.
1da177e4 345
1c48aa36
BH
346 If your hardware and firmware do not support adding or
347 removing memory devices at runtime, you need not enable
348 this driver.
1da177e4 349
1c48aa36
BH
350 To compile this driver as a module, choose M here:
351 the module will be called acpi_memhotplug.
3f86b832
RT
352
353config ACPI_SBS
94f6c086 354 tristate "Smart Battery System"
b4150fc4 355 depends on X86
3f86b832 356 help
1c48aa36 357 This driver supports the Smart Battery System, another
94f6c086 358 type of access to battery information, found on some laptops.
3f86b832 359
1c48aa36
BH
360 To compile this driver as a module, choose M here:
361 the modules will be called sbs and sbshc.
362
1da177e4 363endif # ACPI