PageRenderTime 49ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/drivers/acpi/Kconfig

https://bitbucket.org/ndreys/linux-sunxi
#! | 389 lines | 325 code | 64 blank | 0 comment | 0 complexity | 1bd391bb7b76c6e02569e5fc769c79ec MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
  1. #
  2. # ACPI Configuration
  3. #
  4. menuconfig ACPI
  5. bool "ACPI (Advanced Configuration and Power Interface) Support"
  6. depends on !IA64_HP_SIM
  7. depends on IA64 || X86
  8. depends on PCI
  9. select PNP
  10. default y
  11. help
  12. Advanced Configuration and Power Interface (ACPI) support for
  13. Linux requires an ACPI-compliant platform (hardware/firmware),
  14. and assumes the presence of OS-directed configuration and power
  15. management (OSPM) software. This option will enlarge your
  16. kernel by about 70K.
  17. Linux ACPI provides a robust functional replacement for several
  18. legacy configuration and power management interfaces, including
  19. the Plug-and-Play BIOS specification (PnP BIOS), the
  20. MultiProcessor Specification (MPS), and the Advanced Power
  21. Management (APM) specification. If both ACPI and APM support
  22. are configured, ACPI is used.
  23. The project home page for the Linux ACPI subsystem is here:
  24. <http://www.lesswatts.org/projects/acpi/>
  25. Linux support for ACPI is based on Intel Corporation's ACPI
  26. Component Architecture (ACPI CA). For more information on the
  27. ACPI CA, see:
  28. <http://acpica.org/>
  29. ACPI is an open industry specification co-developed by
  30. Hewlett-Packard, Intel, Microsoft, Phoenix, and Toshiba.
  31. The specification is available at:
  32. <http://www.acpi.info>
  33. if ACPI
  34. config ACPI_SLEEP
  35. bool
  36. depends on SUSPEND || HIBERNATION
  37. default y
  38. config ACPI_PROCFS
  39. bool "Deprecated /proc/acpi files"
  40. depends on PROC_FS
  41. help
  42. For backwards compatibility, this option allows
  43. deprecated /proc/acpi/ files to exist, even when
  44. they have been replaced by functions in /sys.
  45. This option has no effect on /proc/acpi/ files
  46. and functions which do not yet exist in /sys.
  47. Say N to delete /proc/acpi/ files that have moved to /sys/
  48. config ACPI_PROCFS_POWER
  49. bool "Deprecated power /proc/acpi directories"
  50. depends on PROC_FS
  51. help
  52. For backwards compatibility, this option allows
  53. deprecated power /proc/acpi/ directories to exist, even when
  54. they have been replaced by functions in /sys.
  55. The deprecated directories (and their replacements) include:
  56. /proc/acpi/battery/* (/sys/class/power_supply/*)
  57. /proc/acpi/ac_adapter/* (sys/class/power_supply/*)
  58. This option has no effect on /proc/acpi/ directories
  59. and functions, which do not yet exist in /sys
  60. This option, together with the proc directories, will be
  61. deleted in 2.6.39.
  62. Say N to delete power /proc/acpi/ directories that have moved to /sys/
  63. config ACPI_EC_DEBUGFS
  64. tristate "EC read/write access through /sys/kernel/debug/ec"
  65. default n
  66. help
  67. Say N to disable Embedded Controller /sys/kernel/debug interface
  68. Be aware that using this interface can confuse your Embedded
  69. Controller in a way that a normal reboot is not enough. You then
  70. have to power off your system, and remove the laptop battery for
  71. some seconds.
  72. An Embedded Controller typically is available on laptops and reads
  73. sensor values like battery state and temperature.
  74. The kernel accesses the EC through ACPI parsed code provided by BIOS
  75. tables. This option allows to access the EC directly without ACPI
  76. code being involved.
  77. Thus this option is a debug option that helps to write ACPI drivers
  78. and can be used to identify ACPI code or EC firmware bugs.
  79. config ACPI_PROC_EVENT
  80. bool "Deprecated /proc/acpi/event support"
  81. depends on PROC_FS
  82. default y
  83. help
  84. A user-space daemon, acpid, typically reads /proc/acpi/event
  85. and handles all ACPI-generated events.
  86. These events are now delivered to user-space either
  87. via the input layer or as netlink events.
  88. This build option enables the old code for legacy
  89. user-space implementation. After some time, this will
  90. be moved under CONFIG_ACPI_PROCFS, and then deleted.
  91. Say Y here to retain the old behaviour. Say N if your
  92. user-space is newer than kernel 2.6.23 (September 2007).
  93. config ACPI_AC
  94. tristate "AC Adapter"
  95. depends on X86
  96. select POWER_SUPPLY
  97. default y
  98. help
  99. This driver supports the AC Adapter object, which indicates
  100. whether a system is on AC or not. If you have a system that can
  101. switch between A/C and battery, say Y.
  102. To compile this driver as a module, choose M here:
  103. the module will be called ac.
  104. config ACPI_BATTERY
  105. tristate "Battery"
  106. depends on X86
  107. select POWER_SUPPLY
  108. default y
  109. help
  110. This driver adds support for battery information through
  111. /proc/acpi/battery. If you have a mobile system with a battery,
  112. say Y.
  113. To compile this driver as a module, choose M here:
  114. the module will be called battery.
  115. config ACPI_BUTTON
  116. tristate "Button"
  117. depends on INPUT
  118. default y
  119. help
  120. This driver handles events on the power, sleep, and lid buttons.
  121. A daemon reads /proc/acpi/event and perform user-defined actions
  122. such as shutting down the system. This is necessary for
  123. software-controlled poweroff.
  124. To compile this driver as a module, choose M here:
  125. the module will be called button.
  126. config ACPI_VIDEO
  127. tristate "Video"
  128. depends on X86 && BACKLIGHT_CLASS_DEVICE && VIDEO_OUTPUT_CONTROL
  129. depends on INPUT
  130. select THERMAL
  131. help
  132. This driver implements the ACPI Extensions For Display Adapters
  133. for integrated graphics devices on motherboard, as specified in
  134. ACPI 2.0 Specification, Appendix B. This supports basic operations
  135. such as defining the video POST device, retrieving EDID information,
  136. and setting up a video output.
  137. To compile this driver as a module, choose M here:
  138. the module will be called video.
  139. config ACPI_FAN
  140. tristate "Fan"
  141. select THERMAL
  142. default y
  143. help
  144. This driver supports ACPI fan devices, allowing user-mode
  145. applications to perform basic fan control (on, off, status).
  146. To compile this driver as a module, choose M here:
  147. the module will be called fan.
  148. config ACPI_DOCK
  149. bool "Dock"
  150. depends on EXPERIMENTAL
  151. help
  152. This driver supports ACPI-controlled docking stations and removable
  153. drive bays such as the IBM Ultrabay and the Dell Module Bay.
  154. config ACPI_PROCESSOR
  155. tristate "Processor"
  156. select THERMAL
  157. select CPU_IDLE
  158. default y
  159. help
  160. This driver installs ACPI as the idle handler for Linux and uses
  161. ACPI C2 and C3 processor states to save power on systems that
  162. support it. It is required by several flavors of cpufreq
  163. performance-state drivers.
  164. To compile this driver as a module, choose M here:
  165. the module will be called processor.
  166. config ACPI_IPMI
  167. tristate "IPMI"
  168. depends on EXPERIMENTAL && IPMI_SI && IPMI_HANDLER
  169. default n
  170. help
  171. This driver enables the ACPI to access the BMC controller. And it
  172. uses the IPMI request/response message to communicate with BMC
  173. controller, which can be found on on the server.
  174. To compile this driver as a module, choose M here:
  175. the module will be called as acpi_ipmi.
  176. config ACPI_HOTPLUG_CPU
  177. bool
  178. depends on ACPI_PROCESSOR && HOTPLUG_CPU
  179. select ACPI_CONTAINER
  180. default y
  181. config ACPI_PROCESSOR_AGGREGATOR
  182. tristate "Processor Aggregator"
  183. depends on ACPI_PROCESSOR
  184. depends on EXPERIMENTAL
  185. depends on X86
  186. help
  187. ACPI 4.0 defines processor Aggregator, which enables OS to perform
  188. specific processor configuration and control that applies to all
  189. processors in the platform. Currently only logical processor idling
  190. is defined, which is to reduce power consumption. This driver
  191. supports the new device.
  192. config ACPI_THERMAL
  193. tristate "Thermal Zone"
  194. depends on ACPI_PROCESSOR
  195. select THERMAL
  196. default y
  197. help
  198. This driver supports ACPI thermal zones. Most mobile and
  199. some desktop systems support ACPI thermal zones. It is HIGHLY
  200. recommended that this option be enabled, as your processor(s)
  201. may be damaged without it.
  202. To compile this driver as a module, choose M here:
  203. the module will be called thermal.
  204. config ACPI_NUMA
  205. bool "NUMA support"
  206. depends on NUMA
  207. depends on (X86 || IA64)
  208. default y if IA64_GENERIC || IA64_SGI_SN2
  209. config ACPI_CUSTOM_DSDT_FILE
  210. string "Custom DSDT Table file to include"
  211. default ""
  212. depends on !STANDALONE
  213. help
  214. This option supports a custom DSDT by linking it into the kernel.
  215. See Documentation/acpi/dsdt-override.txt
  216. Enter the full path name to the file which includes the AmlCode
  217. declaration.
  218. If unsure, don't enter a file name.
  219. config ACPI_CUSTOM_DSDT
  220. bool
  221. default ACPI_CUSTOM_DSDT_FILE != ""
  222. config ACPI_BLACKLIST_YEAR
  223. int "Disable ACPI for systems before Jan 1st this year" if X86_32
  224. default 0
  225. help
  226. Enter a 4-digit year, e.g., 2001, to disable ACPI by default
  227. on platforms with DMI BIOS date before January 1st that year.
  228. "acpi=force" can be used to override this mechanism.
  229. Enter 0 to disable this mechanism and allow ACPI to
  230. run by default no matter what the year. (default)
  231. config ACPI_DEBUG
  232. bool "Debug Statements"
  233. default n
  234. help
  235. The ACPI subsystem can produce debug output. Saying Y enables this
  236. output and increases the kernel size by around 50K.
  237. Use the acpi.debug_layer and acpi.debug_level kernel command-line
  238. parameters documented in Documentation/acpi/debug.txt and
  239. Documentation/kernel-parameters.txt to control the type and
  240. amount of debug output.
  241. config ACPI_DEBUG_FUNC_TRACE
  242. bool "Additionally enable ACPI function tracing"
  243. default n
  244. depends on ACPI_DEBUG
  245. help
  246. ACPI Debug Statements slow down ACPI processing. Function trace
  247. is about half of the penalty and is rarely useful.
  248. config ACPI_PCI_SLOT
  249. tristate "PCI slot detection driver"
  250. depends on SYSFS
  251. default n
  252. help
  253. This driver creates entries in /sys/bus/pci/slots/ for all PCI
  254. slots in the system. This can help correlate PCI bus addresses,
  255. i.e., segment/bus/device/function tuples, with physical slots in
  256. the system. If you are unsure, say N.
  257. To compile this driver as a module, choose M here:
  258. the module will be called pci_slot.
  259. config X86_PM_TIMER
  260. bool "Power Management Timer Support" if EXPERT
  261. depends on X86
  262. default y
  263. help
  264. The Power Management Timer is available on all ACPI-capable,
  265. in most cases even if ACPI is unusable or blacklisted.
  266. This timing source is not affected by power management features
  267. like aggressive processor idling, throttling, frequency and/or
  268. voltage scaling, unlike the commonly used Time Stamp Counter
  269. (TSC) timing source.
  270. You should nearly always say Y here because many modern
  271. systems require this timer.
  272. config ACPI_CONTAINER
  273. tristate "Container and Module Devices (EXPERIMENTAL)"
  274. depends on EXPERIMENTAL
  275. default (ACPI_HOTPLUG_MEMORY || ACPI_HOTPLUG_CPU || ACPI_HOTPLUG_IO)
  276. help
  277. This driver supports ACPI Container and Module devices (IDs
  278. ACPI0004, PNP0A05, and PNP0A06).
  279. This helps support hotplug of nodes, CPUs, and memory.
  280. To compile this driver as a module, choose M here:
  281. the module will be called container.
  282. config ACPI_HOTPLUG_MEMORY
  283. tristate "Memory Hotplug"
  284. depends on MEMORY_HOTPLUG
  285. default n
  286. help
  287. This driver supports ACPI memory hotplug. The driver
  288. fields notifications on ACPI memory devices (PNP0C80),
  289. which represent memory ranges that may be onlined or
  290. offlined during runtime.
  291. If your hardware and firmware do not support adding or
  292. removing memory devices at runtime, you need not enable
  293. this driver.
  294. To compile this driver as a module, choose M here:
  295. the module will be called acpi_memhotplug.
  296. config ACPI_SBS
  297. tristate "Smart Battery System"
  298. depends on X86
  299. select POWER_SUPPLY
  300. help
  301. This driver supports the Smart Battery System, another
  302. type of access to battery information, found on some laptops.
  303. To compile this driver as a module, choose M here:
  304. the modules will be called sbs and sbshc.
  305. config ACPI_HED
  306. tristate "Hardware Error Device"
  307. help
  308. This driver supports the Hardware Error Device (PNP0C33),
  309. which is used to report some hardware errors notified via
  310. SCI, mainly the corrected errors.
  311. config ACPI_CUSTOM_METHOD
  312. tristate "Allow ACPI methods to be inserted/replaced at run time"
  313. depends on DEBUG_FS
  314. default n
  315. help
  316. This debug facility allows ACPI AML methods to me inserted and/or
  317. replaced without rebooting the system. For details refer to:
  318. Documentation/acpi/method-customizing.txt.
  319. NOTE: This option is security sensitive, because it allows arbitrary
  320. kernel memory to be written to by root (uid=0) users, allowing them
  321. to bypass certain security measures (e.g. if root is not allowed to
  322. load additional kernel modules after boot, this feature may be used
  323. to override that restriction).
  324. source "drivers/acpi/apei/Kconfig"
  325. endif # ACPI