Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. menuconfig POWER_SUPPLY
  2. bool "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 GENERIC_ADC_BATTERY
  28. tristate "Generic battery support using IIO"
  29. depends on IIO
  30. help
  31. Say Y here to enable support for the generic battery driver
  32. which uses IIO framework to read adc.
  33. config MAX8925_POWER
  34. tristate "MAX8925 battery charger support"
  35. depends on MFD_MAX8925
  36. help
  37. Say Y here to enable support for the battery charger in the Maxim
  38. MAX8925 PMIC.
  39. config WM831X_BACKUP
  40. tristate "WM831X backup battery charger support"
  41. depends on MFD_WM831X
  42. help
  43. Say Y here to enable support for the backup battery charger
  44. in the Wolfson Microelectronics WM831x PMICs.
  45. config WM831X_POWER
  46. tristate "WM831X PMU support"
  47. depends on MFD_WM831X
  48. help
  49. Say Y here to enable support for the power management unit
  50. provided by Wolfson Microelectronics WM831x PMICs.
  51. config WM8350_POWER
  52. tristate "WM8350 PMU support"
  53. depends on MFD_WM8350
  54. help
  55. Say Y here to enable support for the power management unit
  56. provided by the Wolfson Microelectronics WM8350 PMIC.
  57. config TEST_POWER
  58. tristate "Test power driver"
  59. help
  60. This driver is used for testing. It's safe to say M here.
  61. config BATTERY_88PM860X
  62. tristate "Marvell 88PM860x battery driver"
  63. depends on MFD_88PM860X
  64. help
  65. Say Y here to enable battery monitor for Marvell 88PM860x chip.
  66. config BATTERY_ACT8945A
  67. tristate "Active-semi ACT8945A charger driver"
  68. depends on MFD_ACT8945A || COMPILE_TEST
  69. help
  70. Say Y here to enable support for power supply provided by
  71. Active-semi ActivePath ACT8945A charger.
  72. config BATTERY_DS2760
  73. tristate "DS2760 battery driver (HP iPAQ & others)"
  74. depends on W1 && W1_SLAVE_DS2760
  75. help
  76. Say Y here to enable support for batteries with ds2760 chip.
  77. config BATTERY_DS2780
  78. tristate "DS2780 battery driver"
  79. depends on HAS_IOMEM
  80. select W1
  81. select W1_SLAVE_DS2780
  82. help
  83. Say Y here to enable support for batteries with ds2780 chip.
  84. config BATTERY_DS2781
  85. tristate "DS2781 battery driver"
  86. depends on HAS_IOMEM
  87. select W1
  88. select W1_SLAVE_DS2781
  89. help
  90. If you enable this you will have the DS2781 battery driver support.
  91. The battery monitor chip is used in many batteries/devices
  92. as the one who is responsible for charging/discharging/monitoring
  93. Li+ batteries.
  94. If you are unsure, say N.
  95. config BATTERY_DS2782
  96. tristate "DS2782/DS2786 standalone gas-gauge"
  97. depends on I2C
  98. help
  99. Say Y here to enable support for the DS2782/DS2786 standalone battery
  100. gas-gauge.
  101. config BATTERY_LEGO_EV3
  102. tristate "LEGO MINDSTORMS EV3 battery"
  103. depends on OF && IIO && GPIOLIB
  104. help
  105. Say Y here to enable support for the LEGO MINDSTORMS EV3 battery.
  106. config BATTERY_PMU
  107. tristate "Apple PMU battery"
  108. depends on PPC32 && ADB_PMU
  109. help
  110. Say Y here to expose battery information on Apple machines
  111. through the generic battery class.
  112. config BATTERY_OLPC
  113. tristate "One Laptop Per Child battery"
  114. depends on X86_32 && OLPC
  115. help
  116. Say Y to enable support for the battery on the OLPC laptop.
  117. config BATTERY_TOSA
  118. tristate "Sharp SL-6000 (tosa) battery"
  119. depends on MACH_TOSA && MFD_TC6393XB && TOUCHSCREEN_WM97XX
  120. help
  121. Say Y to enable support for the battery on the Sharp Zaurus
  122. SL-6000 (tosa) models.
  123. config BATTERY_COLLIE
  124. tristate "Sharp SL-5500 (collie) battery"
  125. depends on SA1100_COLLIE && MCP_UCB1200
  126. help
  127. Say Y to enable support for the battery on the Sharp Zaurus
  128. SL-5500 (collie) models.
  129. config BATTERY_IPAQ_MICRO
  130. tristate "iPAQ Atmel Micro ASIC battery driver"
  131. depends on MFD_IPAQ_MICRO
  132. help
  133. Choose this option if you want to monitor battery status on
  134. Compaq/HP iPAQ h3100 and h3600.
  135. config BATTERY_WM97XX
  136. bool "WM97xx generic battery driver"
  137. depends on TOUCHSCREEN_WM97XX=y
  138. help
  139. Say Y to enable support for battery measured by WM97xx aux port.
  140. config BATTERY_SBS
  141. tristate "SBS Compliant gas gauge"
  142. depends on I2C
  143. help
  144. Say Y to include support for SBS battery driver for SBS-compliant
  145. gas gauges.
  146. config CHARGER_SBS
  147. tristate "SBS Compliant charger"
  148. depends on I2C
  149. help
  150. Say Y to include support for SBS compilant battery chargers.
  151. config BATTERY_BQ27XXX
  152. tristate "BQ27xxx battery driver"
  153. help
  154. Say Y here to enable support for batteries with BQ27xxx chips.
  155. config BATTERY_BQ27XXX_I2C
  156. tristate "BQ27xxx I2C support"
  157. depends on BATTERY_BQ27XXX
  158. depends on I2C
  159. default y
  160. help
  161. Say Y here to enable support for batteries with BQ27xxx chips
  162. connected over an I2C bus.
  163. config BATTERY_DA9030
  164. tristate "DA9030 battery driver"
  165. depends on PMIC_DA903X
  166. help
  167. Say Y here to enable support for batteries charger integrated into
  168. DA9030 PMIC.
  169. config BATTERY_DA9052
  170. tristate "Dialog DA9052 Battery"
  171. depends on PMIC_DA9052
  172. help
  173. Say Y here to enable support for batteries charger integrated into
  174. DA9052 PMIC.
  175. config CHARGER_DA9150
  176. tristate "Dialog Semiconductor DA9150 Charger support"
  177. depends on MFD_DA9150
  178. depends on DA9150_GPADC
  179. depends on IIO
  180. help
  181. Say Y here to enable support for charger unit of the DA9150
  182. Integrated Charger & Fuel-Gauge IC.
  183. This driver can also be built as a module. If so, the module will be
  184. called da9150-charger.
  185. config BATTERY_DA9150
  186. tristate "Dialog Semiconductor DA9150 Fuel Gauge support"
  187. depends on MFD_DA9150
  188. help
  189. Say Y here to enable support for the Fuel-Gauge unit of the DA9150
  190. Integrated Charger & Fuel-Gauge IC
  191. This driver can also be built as a module. If so, the module will be
  192. called da9150-fg.
  193. config CHARGER_AXP20X
  194. tristate "X-Powers AXP20X and AXP22X AC power supply driver"
  195. depends on MFD_AXP20X
  196. depends on AXP20X_ADC
  197. depends on IIO
  198. help
  199. Say Y here to enable support for X-Powers AXP20X and AXP22X PMICs' AC
  200. power supply.
  201. This driver can also be built as a module. If so, the module will be
  202. called axp20x_ac_power.
  203. config BATTERY_AXP20X
  204. tristate "X-Powers AXP20X battery driver"
  205. depends on MFD_AXP20X
  206. depends on AXP20X_ADC
  207. depends on IIO
  208. help
  209. Say Y here to enable support for X-Powers AXP20X PMICs' battery power
  210. supply.
  211. This driver can also be built as a module. If so, the module will be
  212. called axp20x_battery.
  213. config AXP20X_POWER
  214. tristate "AXP20x power supply driver"
  215. depends on MFD_AXP20X
  216. depends on IIO
  217. help
  218. This driver provides support for the power supply features of
  219. AXP20x PMIC.
  220. config AXP288_CHARGER
  221. tristate "X-Powers AXP288 Charger"
  222. depends on MFD_AXP20X && EXTCON_AXP288
  223. help
  224. Say yes here to have support X-Power AXP288 power management IC (PMIC)
  225. integrated charger.
  226. config AXP288_FUEL_GAUGE
  227. tristate "X-Powers AXP288 Fuel Gauge"
  228. depends on MFD_AXP20X && IIO
  229. help
  230. Say yes here to have support for X-Power power management IC (PMIC)
  231. Fuel Gauge. The device provides battery statistics and status
  232. monitoring as well as alerts for battery over/under voltage and
  233. over/under temperature.
  234. config BATTERY_MAX17040
  235. tristate "Maxim MAX17040 Fuel Gauge"
  236. depends on I2C
  237. help
  238. MAX17040 is fuel-gauge systems for lithium-ion (Li+) batteries
  239. in handheld and portable equipment. The MAX17040 is configured
  240. to operate with a single lithium cell
  241. config BATTERY_MAX17042
  242. tristate "Maxim MAX17042/17047/17050/8997/8966 Fuel Gauge"
  243. depends on I2C
  244. select REGMAP_I2C
  245. help
  246. MAX17042 is fuel-gauge systems for lithium-ion (Li+) batteries
  247. in handheld and portable equipment. The MAX17042 is configured
  248. to operate with a single lithium cell. MAX8997 and MAX8966 are
  249. multi-function devices that include fuel gauages that are compatible
  250. with MAX17042. This driver also supports max17047/50 chips which are
  251. improved version of max17042.
  252. config BATTERY_Z2
  253. tristate "Z2 battery driver"
  254. depends on I2C && MACH_ZIPIT2
  255. help
  256. Say Y to include support for the battery on the Zipit Z2.
  257. config BATTERY_S3C_ADC
  258. tristate "Battery driver for Samsung ADC based monitoring"
  259. depends on S3C_ADC
  260. help
  261. Say Y here to enable support for iPAQ h1930/h1940/rx1950 battery
  262. config BATTERY_TWL4030_MADC
  263. tristate "TWL4030 MADC battery driver"
  264. depends on TWL4030_MADC
  265. help
  266. Say Y here to enable this dumb driver for batteries managed
  267. through the TWL4030 MADC.
  268. config CHARGER_88PM860X
  269. tristate "Marvell 88PM860x Charger driver"
  270. depends on MFD_88PM860X && BATTERY_88PM860X
  271. help
  272. Say Y here to enable charger for Marvell 88PM860x chip.
  273. config CHARGER_PCF50633
  274. tristate "NXP PCF50633 MBC"
  275. depends on MFD_PCF50633
  276. help
  277. Say Y to include support for NXP PCF50633 Main Battery Charger.
  278. config BATTERY_JZ4740
  279. tristate "Ingenic JZ4740 battery"
  280. depends on MACH_JZ4740
  281. depends on MFD_JZ4740_ADC
  282. help
  283. Say Y to enable support for the battery on Ingenic JZ4740 based
  284. boards.
  285. This driver can be build as a module. If so, the module will be
  286. called jz4740-battery.
  287. config BATTERY_RX51
  288. tristate "Nokia RX-51 (N900) battery driver"
  289. depends on TWL4030_MADC
  290. help
  291. Say Y here to enable support for battery information on Nokia
  292. RX-51, also known as N900 tablet.
  293. config CHARGER_CPCAP
  294. tristate "CPCAP PMIC Charger Driver"
  295. depends on MFD_CPCAP && IIO
  296. default MFD_CPCAP
  297. help
  298. Say Y to enable support for CPCAP PMIC charger driver for Motorola
  299. mobile devices such as Droid 4.
  300. config CHARGER_ISP1704
  301. tristate "ISP1704 USB Charger Detection"
  302. depends on USB_PHY
  303. depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y'
  304. help
  305. Say Y to enable support for USB Charger Detection with
  306. ISP1707/ISP1704 USB transceivers.
  307. config CHARGER_MAX8903
  308. tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
  309. help
  310. Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
  311. The driver supports controlling charger-enable and current-limit
  312. pins based on the status of charger connections with interrupt
  313. handlers.
  314. config CHARGER_TWL4030
  315. tristate "OMAP TWL4030 BCI charger driver"
  316. depends on IIO && TWL4030_CORE
  317. help
  318. Say Y here to enable support for TWL4030 Battery Charge Interface.
  319. config CHARGER_LP8727
  320. tristate "TI/National Semiconductor LP8727 charger driver"
  321. depends on I2C
  322. help
  323. Say Y here to enable support for LP8727 Charger Driver.
  324. config CHARGER_LP8788
  325. tristate "TI LP8788 charger driver"
  326. depends on MFD_LP8788
  327. depends on LP8788_ADC
  328. depends on IIO
  329. help
  330. Say Y to enable support for the LP8788 linear charger.
  331. config CHARGER_GPIO
  332. tristate "GPIO charger"
  333. depends on GPIOLIB || COMPILE_TEST
  334. help
  335. Say Y to include support for chargers which report their online status
  336. through a GPIO pin.
  337. This driver can be build as a module. If so, the module will be
  338. called gpio-charger.
  339. config CHARGER_MANAGER
  340. bool "Battery charger manager for multiple chargers"
  341. depends on REGULATOR
  342. select EXTCON
  343. help
  344. Say Y to enable charger-manager support, which allows multiple
  345. chargers attached to a battery and multiple batteries attached to a
  346. system. The charger-manager also can monitor charging status in
  347. runtime and in suspend-to-RAM by waking up the system periodically
  348. with help of suspend_again support.
  349. config CHARGER_MAX14577
  350. tristate "Maxim MAX14577/77836 battery charger driver"
  351. depends on MFD_MAX14577
  352. help
  353. Say Y to enable support for the battery charger control sysfs and
  354. platform data of MAX14577/77836 MUICs.
  355. config CHARGER_DETECTOR_MAX14656
  356. tristate "Maxim MAX14656 USB charger detector"
  357. depends on I2C
  358. depends on OF
  359. help
  360. Say Y to enable support for the Maxim MAX14656 USB charger detector.
  361. The device is compliant with the USB Battery Charging Specification
  362. Revision 1.2 and can be found e.g. in Kindle 4/5th generation
  363. readers and certain LG devices.
  364. config CHARGER_MAX77693
  365. tristate "Maxim MAX77693 battery charger driver"
  366. depends on MFD_MAX77693
  367. help
  368. Say Y to enable support for the Maxim MAX77693 battery charger.
  369. config CHARGER_MAX8997
  370. tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver"
  371. depends on MFD_MAX8997 && REGULATOR_MAX8997
  372. help
  373. Say Y to enable support for the battery charger control sysfs and
  374. platform data of MAX8997/LP3974 PMICs.
  375. config CHARGER_MAX8998
  376. tristate "Maxim MAX8998/LP3974 PMIC battery charger driver"
  377. depends on MFD_MAX8998 && REGULATOR_MAX8998
  378. help
  379. Say Y to enable support for the battery charger control sysfs and
  380. platform data of MAX8998/LP3974 PMICs.
  381. config CHARGER_QCOM_SMBB
  382. tristate "Qualcomm Switch-Mode Battery Charger and Boost"
  383. depends on MFD_SPMI_PMIC || COMPILE_TEST
  384. depends on OF
  385. depends on EXTCON
  386. depends on REGULATOR
  387. help
  388. Say Y to include support for the Switch-Mode Battery Charger and
  389. Boost (SMBB) hardware found in Qualcomm PM8941 PMICs. The charger
  390. is an integrated, single-cell lithium-ion battery charger. DT
  391. configuration is required for loading, see the devicetree
  392. documentation for more detail. The base name for this driver is
  393. 'pm8941_charger'.
  394. config CHARGER_BQ2415X
  395. tristate "TI BQ2415x battery charger driver"
  396. depends on I2C
  397. help
  398. Say Y to enable support for the TI BQ2415x battery charger
  399. PMICs.
  400. You'll need this driver to charge batteries on e.g. Nokia
  401. RX-51/N900.
  402. config CHARGER_BQ24190
  403. tristate "TI BQ24190 battery charger driver"
  404. depends on I2C
  405. depends on EXTCON
  406. depends on GPIOLIB || COMPILE_TEST
  407. help
  408. Say Y to enable support for the TI BQ24190 battery charger.
  409. config CHARGER_BQ24257
  410. tristate "TI BQ24250/24251/24257 battery charger driver"
  411. depends on I2C
  412. depends on GPIOLIB || COMPILE_TEST
  413. depends on REGMAP_I2C
  414. help
  415. Say Y to enable support for the TI BQ24250, BQ24251, and BQ24257 battery
  416. chargers.
  417. config CHARGER_BQ24735
  418. tristate "TI BQ24735 battery charger support"
  419. depends on I2C
  420. depends on GPIOLIB || COMPILE_TEST
  421. help
  422. Say Y to enable support for the TI BQ24735 battery charger.
  423. config CHARGER_BQ25890
  424. tristate "TI BQ25890 battery charger driver"
  425. depends on I2C
  426. depends on GPIOLIB || COMPILE_TEST
  427. select REGMAP_I2C
  428. help
  429. Say Y to enable support for the TI BQ25890 battery charger.
  430. config CHARGER_SMB347
  431. tristate "Summit Microelectronics SMB347 Battery Charger"
  432. depends on I2C
  433. select REGMAP_I2C
  434. help
  435. Say Y to include support for Summit Microelectronics SMB347
  436. Battery Charger.
  437. config CHARGER_TPS65090
  438. tristate "TPS65090 battery charger driver"
  439. depends on MFD_TPS65090
  440. help
  441. Say Y here to enable support for battery charging with TPS65090
  442. PMIC chips.
  443. config CHARGER_TPS65217
  444. tristate "TPS65217 battery charger driver"
  445. depends on MFD_TPS65217
  446. help
  447. Say Y here to enable support for battery charging with TPS65217
  448. PMIC chips.
  449. config BATTERY_GAUGE_LTC2941
  450. tristate "LTC2941/LTC2943 Battery Gauge Driver"
  451. depends on I2C
  452. help
  453. Say Y here to include support for LTC2941 and LTC2943 Battery
  454. Gauge IC. The driver reports the charge count continuously, and
  455. measures the voltage and temperature every 10 seconds.
  456. config AB8500_BM
  457. bool "AB8500 Battery Management Driver"
  458. depends on AB8500_CORE && AB8500_GPADC
  459. help
  460. Say Y to include support for AB8500 battery management.
  461. config BATTERY_GOLDFISH
  462. tristate "Goldfish battery driver"
  463. depends on GOLDFISH || COMPILE_TEST
  464. depends on HAS_IOMEM
  465. help
  466. Say Y to enable support for the battery and AC power in the
  467. Goldfish emulator.
  468. config BATTERY_RT5033
  469. tristate "RT5033 fuel gauge support"
  470. depends on MFD_RT5033
  471. help
  472. This adds support for battery fuel gauge in Richtek RT5033 PMIC.
  473. The fuelgauge calculates and determines the battery state of charge
  474. according to battery open circuit voltage.
  475. config CHARGER_RT9455
  476. tristate "Richtek RT9455 battery charger driver"
  477. depends on I2C
  478. depends on GPIOLIB || COMPILE_TEST
  479. select REGMAP_I2C
  480. help
  481. Say Y to enable support for Richtek RT9455 battery charger.
  482. endif # POWER_SUPPLY