1menuconfig 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 9if POWER_SUPPLY 10 11config POWER_SUPPLY_DEBUG 12 bool "Power supply debug" 13 help 14 Say Y here to enable debugging messages for power supply class 15 and drivers. 16 17config POWER_SUPPLY_HWMON 18 bool 19 prompt "Expose power supply sensors as hwmon device" 20 depends on HWMON=y || HWMON=POWER_SUPPLY 21 default y 22 help 23 This options enables API that allows sensors found on a 24 power supply device (current, voltage, temperature) to be 25 exposed as a hwmon device. 26 27 Say 'Y' here if you want power supplies to 28 have hwmon sysfs interface too. 29 30 31config PDA_POWER 32 tristate "Generic PDA/phone power driver" 33 depends on !S390 34 help 35 Say Y here to enable generic power driver for PDAs and phones with 36 one or two external power supplies (AC/USB) connected to main and 37 backup batteries, and optional builtin charger. 38 39config APM_POWER 40 tristate "APM emulation for class batteries" 41 depends on APM_EMULATION 42 help 43 Say Y here to enable support APM status emulation using 44 battery class devices. 45 46config GENERIC_ADC_BATTERY 47 tristate "Generic battery support using IIO" 48 depends on IIO 49 help 50 Say Y here to enable support for the generic battery driver 51 which uses IIO framework to read adc. 52 53config MAX8925_POWER 54 tristate "MAX8925 battery charger support" 55 depends on MFD_MAX8925 56 help 57 Say Y here to enable support for the battery charger in the Maxim 58 MAX8925 PMIC. 59 60config WM831X_BACKUP 61 tristate "WM831X backup battery charger support" 62 depends on MFD_WM831X 63 help 64 Say Y here to enable support for the backup battery charger 65 in the Wolfson Microelectronics WM831x PMICs. 66 67config WM831X_POWER 68 tristate "WM831X PMU support" 69 depends on MFD_WM831X 70 help 71 Say Y here to enable support for the power management unit 72 provided by Wolfson Microelectronics WM831x PMICs. 73 74config WM8350_POWER 75 tristate "WM8350 PMU support" 76 depends on MFD_WM8350 77 help 78 Say Y here to enable support for the power management unit 79 provided by the Wolfson Microelectronics WM8350 PMIC. 80 81config TEST_POWER 82 tristate "Test power driver" 83 help 84 This driver is used for testing. It's safe to say M here. 85 86config BATTERY_88PM860X 87 tristate "Marvell 88PM860x battery driver" 88 depends on MFD_88PM860X 89 help 90 Say Y here to enable battery monitor for Marvell 88PM860x chip. 91 92config CHARGER_ADP5061 93 tristate "ADP5061 battery charger driver" 94 depends on I2C 95 select REGMAP_I2C 96 help 97 Say Y here to enable support for the ADP5061 standalone battery 98 charger. 99 100 This driver can be built as a module. If so, the module will be 101 called adp5061. 102 103config BATTERY_ACT8945A 104 tristate "Active-semi ACT8945A charger driver" 105 depends on MFD_ACT8945A || COMPILE_TEST 106 help 107 Say Y here to enable support for power supply provided by 108 Active-semi ActivePath ACT8945A charger. 109 110config BATTERY_CPCAP 111 tristate "Motorola CPCAP PMIC battery driver" 112 depends on MFD_CPCAP && IIO 113 default MFD_CPCAP 114 help 115 Say Y here to enable support for battery on Motorola 116 phones and tablets such as droid 4. 117 118config BATTERY_DS2760 119 tristate "DS2760 battery driver (HP iPAQ & others)" 120 depends on W1 121 help 122 Say Y here to enable support for batteries with ds2760 chip. 123 124config BATTERY_DS2780 125 tristate "DS2780 battery driver" 126 depends on HAS_IOMEM 127 select W1 128 select W1_SLAVE_DS2780 129 help 130 Say Y here to enable support for batteries with ds2780 chip. 131 132config BATTERY_DS2781 133 tristate "DS2781 battery driver" 134 depends on HAS_IOMEM 135 select W1 136 select W1_SLAVE_DS2781 137 help 138 If you enable this you will have the DS2781 battery driver support. 139 140 The battery monitor chip is used in many batteries/devices 141 as the one who is responsible for charging/discharging/monitoring 142 Li+ batteries. 143 144 If you are unsure, say N. 145 146config BATTERY_DS2782 147 tristate "DS2782/DS2786 standalone gas-gauge" 148 depends on I2C 149 help 150 Say Y here to enable support for the DS2782/DS2786 standalone battery 151 gas-gauge. 152 153config BATTERY_LEGO_EV3 154 tristate "LEGO MINDSTORMS EV3 battery" 155 depends on OF && IIO && GPIOLIB 156 help 157 Say Y here to enable support for the LEGO MINDSTORMS EV3 battery. 158 159config BATTERY_PMU 160 tristate "Apple PMU battery" 161 depends on PPC32 && ADB_PMU 162 help 163 Say Y here to expose battery information on Apple machines 164 through the generic battery class. 165 166config BATTERY_OLPC 167 tristate "One Laptop Per Child battery" 168 depends on X86_32 && OLPC 169 help 170 Say Y to enable support for the battery on the OLPC laptop. 171 172config BATTERY_TOSA 173 tristate "Sharp SL-6000 (tosa) battery" 174 depends on MACH_TOSA && MFD_TC6393XB && TOUCHSCREEN_WM97XX 175 help 176 Say Y to enable support for the battery on the Sharp Zaurus 177 SL-6000 (tosa) models. 178 179config BATTERY_COLLIE 180 tristate "Sharp SL-5500 (collie) battery" 181 depends on SA1100_COLLIE && MCP_UCB1200 182 help 183 Say Y to enable support for the battery on the Sharp Zaurus 184 SL-5500 (collie) models. 185 186config BATTERY_INGENIC 187 tristate "Ingenic JZ47xx SoCs battery driver" 188 depends on MIPS || COMPILE_TEST 189 depends on INGENIC_ADC 190 help 191 Choose this option if you want to monitor battery status on 192 Ingenic JZ47xx SoC based devices. 193 194 This driver can also be built as a module. If so, the module will be 195 called ingenic-battery. 196 197config BATTERY_IPAQ_MICRO 198 tristate "iPAQ Atmel Micro ASIC battery driver" 199 depends on MFD_IPAQ_MICRO 200 help 201 Choose this option if you want to monitor battery status on 202 Compaq/HP iPAQ h3100 and h3600. 203 204config BATTERY_WM97XX 205 bool "WM97xx generic battery driver" 206 depends on TOUCHSCREEN_WM97XX=y 207 help 208 Say Y to enable support for battery measured by WM97xx aux port. 209 210config BATTERY_SBS 211 tristate "SBS Compliant gas gauge" 212 depends on I2C 213 help 214 Say Y to include support for SBS battery driver for SBS-compliant 215 gas gauges. 216 217config CHARGER_SBS 218 tristate "SBS Compliant charger" 219 depends on I2C 220 help 221 Say Y to include support for SBS compliant battery chargers. 222 223config MANAGER_SBS 224 tristate "Smart Battery System Manager" 225 depends on I2C && I2C_MUX && GPIOLIB 226 select I2C_SMBUS 227 help 228 Say Y here to include support for Smart Battery System Manager 229 ICs. The driver reports online and charging status via sysfs. 230 It presents itself also as I2C mux which allows to bind 231 smart battery driver to its ports. 232 Supported is for example LTC1760. 233 234 This driver can also be built as a module. If so, the module will be 235 called sbs-manager. 236 237config BATTERY_BQ27XXX 238 tristate "BQ27xxx battery driver" 239 help 240 Say Y here to enable support for batteries with BQ27xxx chips. 241 242config BATTERY_BQ27XXX_I2C 243 tristate "BQ27xxx I2C support" 244 depends on BATTERY_BQ27XXX 245 depends on I2C 246 default y 247 help 248 Say Y here to enable support for batteries with BQ27xxx chips 249 connected over an I2C bus. 250 251config BATTERY_BQ27XXX_HDQ 252 tristate "BQ27xxx HDQ support" 253 depends on BATTERY_BQ27XXX 254 depends on W1 255 default y 256 help 257 Say Y here to enable support for batteries with BQ27xxx chips 258 connected over an HDQ bus. 259 260config BATTERY_BQ27XXX_DT_UPDATES_NVM 261 bool "BQ27xxx support for update of NVM/flash data memory" 262 depends on BATTERY_BQ27XXX_I2C 263 help 264 Say Y here to enable devicetree monitored-battery config to update 265 NVM/flash data memory. Only enable this option for devices with a 266 fuel gauge mounted on the circuit board, and a battery that cannot 267 easily be replaced with one of a different type. Not for 268 general-purpose kernels, as this can cause misconfiguration of a 269 smart battery with embedded NVM/flash. 270 271config BATTERY_DA9030 272 tristate "DA9030 battery driver" 273 depends on PMIC_DA903X 274 help 275 Say Y here to enable support for batteries charger integrated into 276 DA9030 PMIC. 277 278config BATTERY_DA9052 279 tristate "Dialog DA9052 Battery" 280 depends on PMIC_DA9052 281 help 282 Say Y here to enable support for batteries charger integrated into 283 DA9052 PMIC. 284 285config CHARGER_DA9150 286 tristate "Dialog Semiconductor DA9150 Charger support" 287 depends on MFD_DA9150 288 depends on DA9150_GPADC 289 depends on IIO 290 help 291 Say Y here to enable support for charger unit of the DA9150 292 Integrated Charger & Fuel-Gauge IC. 293 294 This driver can also be built as a module. If so, the module will be 295 called da9150-charger. 296 297config BATTERY_DA9150 298 tristate "Dialog Semiconductor DA9150 Fuel Gauge support" 299 depends on MFD_DA9150 300 help 301 Say Y here to enable support for the Fuel-Gauge unit of the DA9150 302 Integrated Charger & Fuel-Gauge IC 303 304 This driver can also be built as a module. If so, the module will be 305 called da9150-fg. 306 307config CHARGER_AXP20X 308 tristate "X-Powers AXP20X and AXP22X AC power supply driver" 309 depends on MFD_AXP20X 310 depends on AXP20X_ADC 311 depends on IIO 312 help 313 Say Y here to enable support for X-Powers AXP20X and AXP22X PMICs' AC 314 power supply. 315 316 This driver can also be built as a module. If so, the module will be 317 called axp20x_ac_power. 318 319config BATTERY_AXP20X 320 tristate "X-Powers AXP20X battery driver" 321 depends on MFD_AXP20X 322 depends on AXP20X_ADC 323 depends on IIO 324 help 325 Say Y here to enable support for X-Powers AXP20X PMICs' battery power 326 supply. 327 328 This driver can also be built as a module. If so, the module will be 329 called axp20x_battery. 330 331config AXP20X_POWER 332 tristate "AXP20x power supply driver" 333 depends on MFD_AXP20X 334 depends on IIO 335 help 336 This driver provides support for the power supply features of 337 AXP20x PMIC. 338 339config AXP288_CHARGER 340 tristate "X-Powers AXP288 Charger" 341 depends on MFD_AXP20X && EXTCON_AXP288 342 help 343 Say yes here to have support X-Power AXP288 power management IC (PMIC) 344 integrated charger. 345 346config AXP288_FUEL_GAUGE 347 tristate "X-Powers AXP288 Fuel Gauge" 348 depends on MFD_AXP20X && IIO 349 help 350 Say yes here to have support for X-Power power management IC (PMIC) 351 Fuel Gauge. The device provides battery statistics and status 352 monitoring as well as alerts for battery over/under voltage and 353 over/under temperature. 354 355config BATTERY_MAX17040 356 tristate "Maxim MAX17040 Fuel Gauge" 357 depends on I2C 358 help 359 MAX17040 is fuel-gauge systems for lithium-ion (Li+) batteries 360 in handheld and portable equipment. The MAX17040 is configured 361 to operate with a single lithium cell 362 363config BATTERY_MAX17042 364 tristate "Maxim MAX17042/17047/17050/8997/8966 Fuel Gauge" 365 depends on I2C 366 select REGMAP_I2C 367 help 368 MAX17042 is fuel-gauge systems for lithium-ion (Li+) batteries 369 in handheld and portable equipment. The MAX17042 is configured 370 to operate with a single lithium cell. MAX8997 and MAX8966 are 371 multi-function devices that include fuel gauages that are compatible 372 with MAX17042. This driver also supports max17047/50 chips which are 373 improved version of max17042. 374 375config BATTERY_MAX1721X 376 tristate "MAX17211/MAX17215 standalone gas-gauge" 377 depends on W1 378 select REGMAP_W1 379 help 380 MAX1721x is fuel-gauge systems for lithium-ion (Li+) batteries 381 in handheld and portable equipment. MAX17211 used with single cell 382 battery. MAX17215 designed for muticell battery. Both them have 383 OneWire (W1) host interface. 384 385 Say Y here to enable support for the MAX17211/MAX17215 standalone 386 battery gas-gauge. 387 388config BATTERY_Z2 389 tristate "Z2 battery driver" 390 depends on I2C && MACH_ZIPIT2 391 help 392 Say Y to include support for the battery on the Zipit Z2. 393 394config BATTERY_S3C_ADC 395 tristate "Battery driver for Samsung ADC based monitoring" 396 depends on S3C_ADC 397 help 398 Say Y here to enable support for iPAQ h1930/h1940/rx1950 battery 399 400config BATTERY_TWL4030_MADC 401 tristate "TWL4030 MADC battery driver" 402 depends on TWL4030_MADC 403 help 404 Say Y here to enable this dumb driver for batteries managed 405 through the TWL4030 MADC. 406 407config CHARGER_88PM860X 408 tristate "Marvell 88PM860x Charger driver" 409 depends on MFD_88PM860X && BATTERY_88PM860X 410 help 411 Say Y here to enable charger for Marvell 88PM860x chip. 412 413config CHARGER_PCF50633 414 tristate "NXP PCF50633 MBC" 415 depends on MFD_PCF50633 416 help 417 Say Y to include support for NXP PCF50633 Main Battery Charger. 418 419config BATTERY_JZ4740 420 tristate "Ingenic JZ4740 battery" 421 depends on MACH_JZ4740 422 depends on MFD_JZ4740_ADC 423 help 424 Say Y to enable support for the battery on Ingenic JZ4740 based 425 boards. 426 427 This driver can be build as a module. If so, the module will be 428 called jz4740-battery. 429 430config BATTERY_RX51 431 tristate "Nokia RX-51 (N900) battery driver" 432 depends on TWL4030_MADC 433 help 434 Say Y here to enable support for battery information on Nokia 435 RX-51, also known as N900 tablet. 436 437config CHARGER_CPCAP 438 tristate "CPCAP PMIC Charger Driver" 439 depends on MFD_CPCAP && IIO 440 depends on OMAP_USB2 || (!OMAP_USB2 && COMPILE_TEST) 441 default MFD_CPCAP 442 help 443 Say Y to enable support for CPCAP PMIC charger driver for Motorola 444 mobile devices such as Droid 4. 445 446config CHARGER_ISP1704 447 tristate "ISP1704 USB Charger Detection" 448 depends on USB_PHY 449 depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y' 450 help 451 Say Y to enable support for USB Charger Detection with 452 ISP1707/ISP1704 USB transceivers. 453 454config CHARGER_MAX8903 455 tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power" 456 help 457 Say Y to enable support for the MAX8903 DC-DC charger and sysfs. 458 The driver supports controlling charger-enable and current-limit 459 pins based on the status of charger connections with interrupt 460 handlers. 461 462config CHARGER_TWL4030 463 tristate "OMAP TWL4030 BCI charger driver" 464 depends on IIO && TWL4030_CORE 465 help 466 Say Y here to enable support for TWL4030 Battery Charge Interface. 467 468config CHARGER_LP8727 469 tristate "TI/National Semiconductor LP8727 charger driver" 470 depends on I2C 471 help 472 Say Y here to enable support for LP8727 Charger Driver. 473 474config CHARGER_LP8788 475 tristate "TI LP8788 charger driver" 476 depends on MFD_LP8788 477 depends on LP8788_ADC 478 depends on IIO 479 help 480 Say Y to enable support for the LP8788 linear charger. 481 482config CHARGER_GPIO 483 tristate "GPIO charger" 484 depends on GPIOLIB || COMPILE_TEST 485 help 486 Say Y to include support for chargers which report their online status 487 through a GPIO pin. 488 489 This driver can be build as a module. If so, the module will be 490 called gpio-charger. 491 492config CHARGER_MANAGER 493 bool "Battery charger manager for multiple chargers" 494 depends on REGULATOR 495 select EXTCON 496 help 497 Say Y to enable charger-manager support, which allows multiple 498 chargers attached to a battery and multiple batteries attached to a 499 system. The charger-manager also can monitor charging status in 500 runtime and in suspend-to-RAM by waking up the system periodically 501 with help of suspend_again support. 502 503config CHARGER_LT3651 504 tristate "Analog Devices LT3651 charger" 505 depends on GPIOLIB 506 help 507 Say Y to include support for the Analog Devices (Linear Technology) 508 LT3651 battery charger which reports its status via GPIO lines. 509 510config CHARGER_MAX14577 511 tristate "Maxim MAX14577/77836 battery charger driver" 512 depends on MFD_MAX14577 513 help 514 Say Y to enable support for the battery charger control sysfs and 515 platform data of MAX14577/77836 MUICs. 516 517config CHARGER_DETECTOR_MAX14656 518 tristate "Maxim MAX14656 USB charger detector" 519 depends on I2C 520 depends on OF 521 help 522 Say Y to enable support for the Maxim MAX14656 USB charger detector. 523 The device is compliant with the USB Battery Charging Specification 524 Revision 1.2 and can be found e.g. in Kindle 4/5th generation 525 readers and certain LG devices. 526 527config CHARGER_MAX77650 528 tristate "Maxim MAX77650 battery charger driver" 529 depends on MFD_MAX77650 530 help 531 Say Y to enable support for the battery charger control of MAX77650 532 PMICs. 533 534config CHARGER_MAX77693 535 tristate "Maxim MAX77693 battery charger driver" 536 depends on MFD_MAX77693 537 help 538 Say Y to enable support for the Maxim MAX77693 battery charger. 539 540config CHARGER_MAX8997 541 tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver" 542 depends on MFD_MAX8997 && REGULATOR_MAX8997 543 help 544 Say Y to enable support for the battery charger control sysfs and 545 platform data of MAX8997/LP3974 PMICs. 546 547config CHARGER_MAX8998 548 tristate "Maxim MAX8998/LP3974 PMIC battery charger driver" 549 depends on MFD_MAX8998 && REGULATOR_MAX8998 550 help 551 Say Y to enable support for the battery charger control sysfs and 552 platform data of MAX8998/LP3974 PMICs. 553 554config CHARGER_QCOM_SMBB 555 tristate "Qualcomm Switch-Mode Battery Charger and Boost" 556 depends on MFD_SPMI_PMIC || COMPILE_TEST 557 depends on OF 558 depends on EXTCON 559 depends on REGULATOR 560 help 561 Say Y to include support for the Switch-Mode Battery Charger and 562 Boost (SMBB) hardware found in Qualcomm PM8941 PMICs. The charger 563 is an integrated, single-cell lithium-ion battery charger. DT 564 configuration is required for loading, see the devicetree 565 documentation for more detail. The base name for this driver is 566 'pm8941_charger'. 567 568config CHARGER_BQ2415X 569 tristate "TI BQ2415x battery charger driver" 570 depends on I2C 571 help 572 Say Y to enable support for the TI BQ2415x battery charger 573 PMICs. 574 575 You'll need this driver to charge batteries on e.g. Nokia 576 RX-51/N900. 577 578config CHARGER_BQ24190 579 tristate "TI BQ24190 battery charger driver" 580 depends on I2C 581 depends on EXTCON 582 depends on GPIOLIB || COMPILE_TEST 583 help 584 Say Y to enable support for the TI BQ24190 battery charger. 585 586config CHARGER_BQ24257 587 tristate "TI BQ24250/24251/24257 battery charger driver" 588 depends on I2C 589 depends on GPIOLIB || COMPILE_TEST 590 depends on REGMAP_I2C 591 help 592 Say Y to enable support for the TI BQ24250, BQ24251, and BQ24257 battery 593 chargers. 594 595config CHARGER_BQ24735 596 tristate "TI BQ24735 battery charger support" 597 depends on I2C 598 depends on GPIOLIB || COMPILE_TEST 599 help 600 Say Y to enable support for the TI BQ24735 battery charger. 601 602config CHARGER_BQ25890 603 tristate "TI BQ25890 battery charger driver" 604 depends on I2C 605 depends on GPIOLIB || COMPILE_TEST 606 select REGMAP_I2C 607 help 608 Say Y to enable support for the TI BQ25890 battery charger. 609 610config CHARGER_SMB347 611 tristate "Summit Microelectronics SMB347 Battery Charger" 612 depends on I2C 613 select REGMAP_I2C 614 help 615 Say Y to include support for Summit Microelectronics SMB347 616 Battery Charger. 617 618config CHARGER_TPS65090 619 tristate "TPS65090 battery charger driver" 620 depends on MFD_TPS65090 621 help 622 Say Y here to enable support for battery charging with TPS65090 623 PMIC chips. 624 625config CHARGER_TPS65217 626 tristate "TPS65217 battery charger driver" 627 depends on MFD_TPS65217 628 help 629 Say Y here to enable support for battery charging with TPS65217 630 PMIC chips. 631 632config BATTERY_GAUGE_LTC2941 633 tristate "LTC2941/LTC2943 Battery Gauge Driver" 634 depends on I2C 635 help 636 Say Y here to include support for LTC2941 and LTC2943 Battery 637 Gauge IC. The driver reports the charge count continuously, and 638 measures the voltage and temperature every 10 seconds. 639 640config AB8500_BM 641 bool "AB8500 Battery Management Driver" 642 depends on AB8500_CORE && AB8500_GPADC 643 help 644 Say Y to include support for AB8500 battery management. 645 646config BATTERY_GOLDFISH 647 tristate "Goldfish battery driver" 648 depends on GOLDFISH || COMPILE_TEST 649 depends on HAS_IOMEM 650 help 651 Say Y to enable support for the battery and AC power in the 652 Goldfish emulator. 653 654config BATTERY_RT5033 655 tristate "RT5033 fuel gauge support" 656 depends on MFD_RT5033 657 help 658 This adds support for battery fuel gauge in Richtek RT5033 PMIC. 659 The fuelgauge calculates and determines the battery state of charge 660 according to battery open circuit voltage. 661 662config CHARGER_RT9455 663 tristate "Richtek RT9455 battery charger driver" 664 depends on I2C 665 depends on GPIOLIB || COMPILE_TEST 666 select REGMAP_I2C 667 help 668 Say Y to enable support for Richtek RT9455 battery charger. 669 670config CHARGER_CROS_USBPD 671 tristate "ChromeOS EC based USBPD charger" 672 depends on MFD_CROS_EC 673 default n 674 help 675 Say Y here to enable ChromeOS EC based USBPD charger 676 driver. This driver gets various bits of information about 677 what is connected to USB PD ports from the EC and converts 678 that into power_supply properties. 679 680config CHARGER_SC2731 681 tristate "Spreadtrum SC2731 charger driver" 682 depends on MFD_SC27XX_PMIC || COMPILE_TEST 683 help 684 Say Y here to enable support for battery charging with SC2731 685 PMIC chips. 686 687config FUEL_GAUGE_SC27XX 688 tristate "Spreadtrum SC27XX fuel gauge driver" 689 depends on MFD_SC27XX_PMIC || COMPILE_TEST 690 depends on IIO 691 help 692 Say Y here to enable support for fuel gauge with SC27XX 693 PMIC chips. 694 695config CHARGER_UCS1002 696 tristate "Microchip UCS1002 USB Port Power Controller" 697 depends on I2C 698 depends on OF 699 depends on REGULATOR 700 select REGMAP_I2C 701 help 702 Say Y to enable support for Microchip UCS1002 Programmable 703 USB Port Power Controller with Charger Emulation. 704 705endif # POWER_SUPPLY 706