Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. menuconfig POWER_SUPPLY
  2. tristate "Power supply class support"
  3. help
  4. Say Y here to enable power supply class support. This allows
  5. power supply (batteries, AC, USB) monitoring by userspace
  6. via sysfs and uevent (if available) and/or APM kernel interface
  7. (if selected below).
  8. if POWER_SUPPLY
  9. config POWER_SUPPLY_DEBUG
  10. bool "Power supply debug"
  11. help
  12. Say Y here to enable debugging messages for power supply class
  13. and drivers.
  14. config PDA_POWER
  15. tristate "Generic PDA/phone power driver"
  16. depends on !S390
  17. help
  18. Say Y here to enable generic power driver for PDAs and phones with
  19. one or two external power supplies (AC/USB) connected to main and
  20. backup batteries, and optional builtin charger.
  21. config APM_POWER
  22. tristate "APM emulation for class batteries"
  23. depends on APM_EMULATION
  24. help
  25. Say Y here to enable support APM status emulation using
  26. battery class devices.
  27. config MAX8925_POWER
  28. tristate "MAX8925 battery charger support"
  29. depends on MFD_MAX8925
  30. help
  31. Say Y here to enable support for the battery charger in the Maxim
  32. MAX8925 PMIC.
  33. config WM831X_BACKUP
  34. tristate "WM831X backup battery charger support"
  35. depends on MFD_WM831X
  36. help
  37. Say Y here to enable support for the backup battery charger
  38. in the Wolfson Microelectronics WM831x PMICs.
  39. config WM831X_POWER
  40. tristate "WM831X PMU support"
  41. depends on MFD_WM831X
  42. help
  43. Say Y here to enable support for the power management unit
  44. provided by Wolfson Microelectronics WM831x PMICs.
  45. config WM8350_POWER
  46. tristate "WM8350 PMU support"
  47. depends on MFD_WM8350
  48. help
  49. Say Y here to enable support for the power management unit
  50. provided by the Wolfson Microelectronics WM8350 PMIC.
  51. config TEST_POWER
  52. tristate "Test power driver"
  53. help
  54. This driver is used for testing. It's safe to say M here.
  55. config BATTERY_DS2760
  56. tristate "DS2760 battery driver (HP iPAQ & others)"
  57. depends on W1 && W1_SLAVE_DS2760
  58. help
  59. Say Y here to enable support for batteries with ds2760 chip.
  60. config BATTERY_DS2780
  61. tristate "DS2780 battery driver"
  62. depends on HAS_IOMEM
  63. select W1
  64. select W1_SLAVE_DS2780
  65. help
  66. Say Y here to enable support for batteries with ds2780 chip.
  67. config BATTERY_DS2781
  68. tristate "2781 battery driver"
  69. depends on HAS_IOMEM
  70. select W1
  71. select W1_SLAVE_DS2781
  72. help
  73. If you enable this you will have the DS2781 battery driver support.
  74. The battery monitor chip is used in many batteries/devices
  75. as the one who is responsible for charging/discharging/monitoring
  76. Li+ batteries.
  77. If you are unsure, say N.
  78. config BATTERY_DS2782
  79. tristate "DS2782/DS2786 standalone gas-gauge"
  80. depends on I2C
  81. help
  82. Say Y here to enable support for the DS2782/DS2786 standalone battery
  83. gas-gauge.
  84. config BATTERY_PMU
  85. tristate "Apple PMU battery"
  86. depends on PPC32 && ADB_PMU
  87. help
  88. Say Y here to expose battery information on Apple machines
  89. through the generic battery class.
  90. config BATTERY_OLPC
  91. tristate "One Laptop Per Child battery"
  92. depends on X86_32 && OLPC
  93. help
  94. Say Y to enable support for the battery on the OLPC laptop.
  95. config BATTERY_TOSA
  96. tristate "Sharp SL-6000 (tosa) battery"
  97. depends on MACH_TOSA && MFD_TC6393XB && TOUCHSCREEN_WM97XX
  98. help
  99. Say Y to enable support for the battery on the Sharp Zaurus
  100. SL-6000 (tosa) models.
  101. config BATTERY_COLLIE
  102. tristate "Sharp SL-5500 (collie) battery"
  103. depends on SA1100_COLLIE && MCP_UCB1200
  104. help
  105. Say Y to enable support for the battery on the Sharp Zaurus
  106. SL-5500 (collie) models.
  107. config BATTERY_WM97XX
  108. bool "WM97xx generic battery driver"
  109. depends on TOUCHSCREEN_WM97XX=y
  110. help
  111. Say Y to enable support for battery measured by WM97xx aux port.
  112. config BATTERY_SBS
  113. tristate "SBS Compliant gas gauge"
  114. depends on I2C
  115. help
  116. Say Y to include support for SBS battery driver for SBS-compliant
  117. gas gauges.
  118. config BATTERY_BQ27x00
  119. tristate "BQ27x00 battery driver"
  120. help
  121. Say Y here to enable support for batteries with BQ27x00 (I2C/HDQ) chips.
  122. config BATTERY_BQ27X00_I2C
  123. bool "BQ27200/BQ27500 support"
  124. depends on BATTERY_BQ27x00
  125. depends on I2C
  126. default y
  127. help
  128. Say Y here to enable support for batteries with BQ27x00 (I2C) chips.
  129. config BATTERY_BQ27X00_PLATFORM
  130. bool "BQ27000 support"
  131. depends on BATTERY_BQ27x00
  132. default y
  133. help
  134. Say Y here to enable support for batteries with BQ27000 (HDQ) chips.
  135. config BATTERY_DA9030
  136. tristate "DA9030 battery driver"
  137. depends on PMIC_DA903X
  138. help
  139. Say Y here to enable support for batteries charger integrated into
  140. DA9030 PMIC.
  141. config BATTERY_DA9052
  142. tristate "Dialog DA9052 Battery"
  143. depends on PMIC_DA9052
  144. depends on BROKEN
  145. help
  146. Say Y here to enable support for batteries charger integrated into
  147. DA9052 PMIC.
  148. config BATTERY_MAX17040
  149. tristate "Maxim MAX17040 Fuel Gauge"
  150. depends on I2C
  151. help
  152. MAX17040 is fuel-gauge systems for lithium-ion (Li+) batteries
  153. in handheld and portable equipment. The MAX17040 is configured
  154. to operate with a single lithium cell
  155. config BATTERY_MAX17042
  156. tristate "Maxim MAX17042/8997/8966 Fuel Gauge"
  157. depends on I2C
  158. help
  159. MAX17042 is fuel-gauge systems for lithium-ion (Li+) batteries
  160. in handheld and portable equipment. The MAX17042 is configured
  161. to operate with a single lithium cell. MAX8997 and MAX8966 are
  162. multi-function devices that include fuel gauages that are compatible
  163. with MAX17042.
  164. config BATTERY_Z2
  165. tristate "Z2 battery driver"
  166. depends on I2C && MACH_ZIPIT2
  167. help
  168. Say Y to include support for the battery on the Zipit Z2.
  169. config BATTERY_S3C_ADC
  170. tristate "Battery driver for Samsung ADC based monitoring"
  171. depends on S3C_ADC
  172. help
  173. Say Y here to enable support for iPAQ h1930/h1940/rx1950 battery
  174. config CHARGER_PCF50633
  175. tristate "NXP PCF50633 MBC"
  176. depends on MFD_PCF50633
  177. help
  178. Say Y to include support for NXP PCF50633 Main Battery Charger.
  179. config BATTERY_JZ4740
  180. tristate "Ingenic JZ4740 battery"
  181. depends on MACH_JZ4740
  182. depends on MFD_JZ4740_ADC
  183. help
  184. Say Y to enable support for the battery on Ingenic JZ4740 based
  185. boards.
  186. This driver can be build as a module. If so, the module will be
  187. called jz4740-battery.
  188. config BATTERY_INTEL_MID
  189. tristate "Battery driver for Intel MID platforms"
  190. depends on INTEL_SCU_IPC && SPI
  191. help
  192. Say Y here to enable the battery driver on Intel MID
  193. platforms.
  194. config CHARGER_ISP1704
  195. tristate "ISP1704 USB Charger Detection"
  196. depends on USB_OTG_UTILS
  197. help
  198. Say Y to enable support for USB Charger Detection with
  199. ISP1707/ISP1704 USB transceivers.
  200. config CHARGER_MAX8903
  201. tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
  202. depends on GENERIC_HARDIRQS
  203. help
  204. Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
  205. The driver supports controlling charger-enable and current-limit
  206. pins based on the status of charger connections with interrupt
  207. handlers.
  208. config CHARGER_TWL4030
  209. tristate "OMAP TWL4030 BCI charger driver"
  210. depends on TWL4030_CORE
  211. help
  212. Say Y here to enable support for TWL4030 Battery Charge Interface.
  213. config CHARGER_LP8727
  214. tristate "TI/National Semiconductor LP8727 charger driver"
  215. depends on I2C
  216. help
  217. Say Y here to enable support for LP8727 Charger Driver.
  218. config CHARGER_GPIO
  219. tristate "GPIO charger"
  220. depends on GPIOLIB
  221. help
  222. Say Y to include support for chargers which report their online status
  223. through a GPIO pin.
  224. This driver can be build as a module. If so, the module will be
  225. called gpio-charger.
  226. config CHARGER_MANAGER
  227. bool "Battery charger manager for multiple chargers"
  228. depends on REGULATOR && RTC_CLASS
  229. help
  230. Say Y to enable charger-manager support, which allows multiple
  231. chargers attached to a battery and multiple batteries attached to a
  232. system. The charger-manager also can monitor charging status in
  233. runtime and in suspend-to-RAM by waking up the system periodically
  234. with help of suspend_again support.
  235. config CHARGER_MAX8997
  236. tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver"
  237. depends on MFD_MAX8997 && REGULATOR_MAX8997
  238. help
  239. Say Y to enable support for the battery charger control sysfs and
  240. platform data of MAX8997/LP3974 PMICs.
  241. config CHARGER_MAX8998
  242. tristate "Maxim MAX8998/LP3974 PMIC battery charger driver"
  243. depends on MFD_MAX8998 && REGULATOR_MAX8998
  244. help
  245. Say Y to enable support for the battery charger control sysfs and
  246. platform data of MAX8998/LP3974 PMICs.
  247. config BATTERY_MSM
  248. tristate "MSM battery"
  249. depends on ARCH_MSM && MSM_ONCRPCROUTER
  250. help
  251. Say Y to enable support for the battery in Qualcomm MSM.
  252. config BATTERY_MSM_FAKE
  253. tristate "Fake MSM battery"
  254. depends on ARCH_MSM && BATTERY_MSM
  255. default n
  256. help
  257. Say Y to bypass actual battery queries.
  258. config BATTERY_MSM8X60
  259. tristate "MSM8X60 battery"
  260. select PMIC8XXX_BATTALARM
  261. help
  262. Some MSM boards have dual charging paths to charge the battery.
  263. Say Y to enable support for the battery charging in
  264. such devices.
  265. config PM8058_CHARGER
  266. tristate "pmic8058 charger"
  267. depends on BATTERY_MSM8X60
  268. depends on PMIC8058
  269. help
  270. Say Y to enable support for battery charging from the pmic8058.
  271. pmic8058 provides a linear charging circuit connected to the usb
  272. cable on Qualcomm's msm8x60 surf board.
  273. config ISL9519_CHARGER
  274. tristate "isl9519 charger"
  275. depends on (BATTERY_MSM8X60 || PM8921_CHARGER)
  276. depends on I2C
  277. default n
  278. help
  279. The isl9519q charger chip from intersil is connected to an external
  280. charger cable and is preferred way of charging the battery because
  281. of its high current rating.
  282. Choose Y if you are compiling for Qualcomm's msm8x60 surf/ffa board.
  283. config SMB137B_CHARGER
  284. tristate "smb137b charger"
  285. default n
  286. depends on I2C
  287. help
  288. The smb137b charger chip from summit is a switching mode based
  289. charging solution.
  290. Choose Y if you are compiling for Qualcomm's msm8x60 fluid board.
  291. To compile this driver as a module, choose M here: the module will
  292. be called smb137b.
  293. config SMB137C_CHARGER
  294. tristate "Summit SMB137C Battery Charger"
  295. depends on I2C
  296. depends on OF
  297. help
  298. The SMB137C charger chip from Summit is a switching mode based
  299. charging solution. This driver supports enabling and disabling
  300. charging, setting the input current limit, and enabling USB OTG mode
  301. in order to supply 5 V on the VBUS line.
  302. config SMB349_CHARGER
  303. tristate "smb349 charger"
  304. depends on I2C
  305. help
  306. Say Y to enable support for the SMB349 switching mode based charger
  307. and sysfs. The driver supports controlling charger-enable and
  308. current limiting capabilities. The driver also lets the
  309. SMB349 be operated as a slave device via the power supply
  310. framework.
  311. config SMB350_CHARGER
  312. tristate "smb350 charger"
  313. depends on I2C
  314. help
  315. Say Y to enable battery charging by SMB350 switching mode based
  316. external charger. The device supports stack-cell battery charging.
  317. The driver configures the device volatile parameters
  318. and the charger device works autonomously.
  319. The driver supports charger-enable and charger-suspend/resume.
  320. The driver reports the charger status via the power supply framework.
  321. A charger status change triggers an IRQ via the device STAT pin.
  322. config PM8058_FIX_USB
  323. tristate "pmic8058 software workaround for usb removal"
  324. depends on PMIC8058
  325. depends on !PM8058_CHARGER
  326. help
  327. Say Y to enable the software workaround to USB Vbus line
  328. staying high even when USB cable is removed. This option
  329. is in lieu of a complete pm8058 charging driver.
  330. config BATTERY_QCIBAT
  331. tristate "Quanta Computer Inc. Battery"
  332. depends on SENSORS_WPCE775X
  333. default n
  334. help
  335. Say Y here if you want to use the Quanta battery driver for ST15
  336. platform.
  337. config BATTERY_BQ27520
  338. tristate "BQ27520 battery driver"
  339. depends on I2C
  340. default n
  341. help
  342. Say Y here to enable support for batteries with BQ27520 (I2C) chips.
  343. config SMB358_CHARGER
  344. tristate "SMB358 Battery Charger"
  345. depends on I2C
  346. help
  347. Say Y to include support for SMB358 Battery Charger.
  348. SMB358 is a single path switching mode charger capable of charging
  349. the battery with 2Amps of current.
  350. The driver supports charger enable/disable.
  351. The driver reports the charger status via the power supply framework.
  352. A charger status change triggers an IRQ via the device STAT pin.
  353. config BQ27520_TEST_ENABLE
  354. bool "Enable BQ27520 Fuel Gauge Chip Test"
  355. depends on BATTERY_BQ27520
  356. default n
  357. help
  358. Say Y here to enable Test sysfs Interface for BQ27520 Drivers.
  359. config BATTERY_BQ27541
  360. tristate "BQ27541 battery driver"
  361. depends on I2C
  362. default n
  363. help
  364. Say Y here to enable support for batteries with BQ27541 (I2C) chips.
  365. config BATTERY_BQ28400
  366. tristate "BQ28400 battery driver"
  367. depends on I2C
  368. default n
  369. help
  370. Say Y here to enable support for batteries with BQ28400 (I2C) chips.
  371. The bq28400 Texas Instruments Inc device monitors the battery
  372. charging/discharging status via Rsens resistor, typically 10 mohm.
  373. It monitors the battery temperature via Thermistor.
  374. The device monitors the battery level (Relative-State-Of-Charge).
  375. The device is SBS compliant, providing battery info over I2C.
  376. config PM8921_CHARGER
  377. tristate "PM8921 Charger driver"
  378. depends on MFD_PM8921_CORE
  379. help
  380. Say Y here to enable support for pm8921 chip charger subdevice
  381. config QPNP_CHARGER
  382. tristate "QPNP Charger driver"
  383. depends on SPMI
  384. depends on OF_SPMI
  385. depends on THERMAL_QPNP_ADC_TM
  386. help
  387. Say Y here to enable the switch mode battery charger
  388. and boost device which supports USB detection and charging. The driver
  389. also offers relevant information to userspace via the power supply
  390. framework.
  391. config QPNP_SEC_CHARGER
  392. tristate "QPNP Charger driver"
  393. depends on SPMI
  394. depends on OF_SPMI
  395. depends on THERMAL_QPNP_ADC_TM
  396. help
  397. Say Y here to enable the switch mode battery charger
  398. and boost device which supports USB detection and charging. The driver
  399. also offers relevant information to userspace via the power supply
  400. framework.This driver is compliant to SAMSUNG charging specification.
  401. config NOT_USE_EXT_OVP
  402. bool "Not use external ovp PM8x26 PMICs"
  403. depends on QPNP_SEC_CHARGER
  404. default n
  405. help
  406. Support for external ovp the PM8X26 PMIC.
  407. Say Y if you want to enable this feature.
  408. config PM8XXX_CCADC
  409. tristate "PM8XXX battery current adc driver"
  410. depends on MFD_PM8921_CORE
  411. help
  412. Say Y here to enable support for pm8921 chip bms subdevice
  413. config LTC4088_CHARGER
  414. tristate "LTC4088 Charger driver"
  415. depends on GPIOLIB
  416. help
  417. Say Y here to enable support for ltc4088 chip charger. It controls the
  418. operations through GPIO pins.
  419. config PM8921_BMS
  420. select PM8XXX_CCADC
  421. tristate "PM8921 Battery Monitoring System driver"
  422. depends on MFD_PM8921_CORE
  423. help
  424. Say Y here to enable support for pm8921 chip bms subdevice
  425. config BATTERY_BCL
  426. tristate "Battery Current Limit driver"
  427. help
  428. Say Y here to enable support for battery current limit
  429. device. The BCL driver will poll BMS if
  430. thermal daemon enables BCL.
  431. It will notify thermal daemon if IBat crosses Imax threshold.
  432. config CHARGER_SMB347
  433. tristate "Summit Microelectronics SMB347 Battery Charger"
  434. depends on I2C
  435. help
  436. Say Y to include support for Summit Microelectronics SMB347
  437. Battery Charger.
  438. config AB8500_BM
  439. bool "AB8500 Battery Management Driver"
  440. depends on AB8500_CORE && AB8500_GPADC
  441. help
  442. Say Y to include support for AB5500 battery management.
  443. config AB8500_BATTERY_THERM_ON_BATCTRL
  444. bool "Thermistor connected on BATCTRL ADC"
  445. depends on AB8500_BM
  446. help
  447. Say Y to enable battery temperature measurements using
  448. thermistor connected on BATCTRL ADC.
  449. config QPNP_BMS
  450. tristate "QPNP Battery Monitoring System driver"
  451. depends on SPMI
  452. depends on MSM_QPNP_INT
  453. help
  454. Say Y here to enable support for QPNP chip bms device.
  455. It registers a fuelgauge bms power supply to report
  456. State of Charge.
  457. endif # POWER_SUPPLY