xref: /openbmc/linux/drivers/power/Kconfig (revision 21ff63ad)
14a11b59dSAnton Vorontsovmenuconfig POWER_SUPPLY
24a11b59dSAnton Vorontsov	tristate "Power supply class support"
34a11b59dSAnton Vorontsov	help
44a11b59dSAnton Vorontsov	  Say Y here to enable power supply class support. This allows
54a11b59dSAnton Vorontsov	  power supply (batteries, AC, USB) monitoring by userspace
64a11b59dSAnton Vorontsov	  via sysfs and uevent (if available) and/or APM kernel interface
74a11b59dSAnton Vorontsov	  (if selected below).
84a11b59dSAnton Vorontsov
94a11b59dSAnton Vorontsovif POWER_SUPPLY
104a11b59dSAnton Vorontsov
114a11b59dSAnton Vorontsovconfig POWER_SUPPLY_DEBUG
124a11b59dSAnton Vorontsov	bool "Power supply debug"
134a11b59dSAnton Vorontsov	help
144a11b59dSAnton Vorontsov	  Say Y here to enable debugging messages for power supply class
154a11b59dSAnton Vorontsov	  and drivers.
164a11b59dSAnton Vorontsov
17b2998049SAnton Vorontsovconfig PDA_POWER
18b2998049SAnton Vorontsov	tristate "Generic PDA/phone power driver"
195f17c70fSAl Viro	depends on !S390
20b2998049SAnton Vorontsov	help
21b2998049SAnton Vorontsov	  Say Y here to enable generic power driver for PDAs and phones with
22b2998049SAnton Vorontsov	  one or two external power supplies (AC/USB) connected to main and
23b2998049SAnton Vorontsov	  backup batteries, and optional builtin charger.
24b2998049SAnton Vorontsov
253788ec93SAnton Vorontsovconfig APM_POWER
263788ec93SAnton Vorontsov	tristate "APM emulation for class batteries"
273788ec93SAnton Vorontsov	depends on APM_EMULATION
283788ec93SAnton Vorontsov	help
293788ec93SAnton Vorontsov	  Say Y here to enable support APM status emulation using
303788ec93SAnton Vorontsov	  battery class devices.
313788ec93SAnton Vorontsov
3228db3888SHaojian Zhuangconfig MAX8925_POWER
3328db3888SHaojian Zhuang	tristate "MAX8925 battery charger support"
3428db3888SHaojian Zhuang	depends on MFD_MAX8925
3528db3888SHaojian Zhuang	help
3628db3888SHaojian Zhuang	  Say Y here to enable support for the battery charger in the Maxim
3728db3888SHaojian Zhuang	  MAX8925 PMIC.
3828db3888SHaojian Zhuang
39c26964eaSMark Brownconfig WM831X_BACKUP
40c26964eaSMark Brown	tristate "WM831X backup battery charger support"
41c26964eaSMark Brown	depends on MFD_WM831X
42c26964eaSMark Brown	help
43c26964eaSMark Brown	  Say Y here to enable support for the backup battery charger
44c26964eaSMark Brown	  in the Wolfson Microelectronics WM831x PMICs.
45c26964eaSMark Brown
463961f7c3SMark Brownconfig WM831X_POWER
473961f7c3SMark Brown	tristate "WM831X PMU support"
483961f7c3SMark Brown	depends on MFD_WM831X
493961f7c3SMark Brown	help
503961f7c3SMark Brown	  Say Y here to enable support for the power management unit
513961f7c3SMark Brown	  provided by Wolfson Microelectronics WM831x PMICs.
523961f7c3SMark Brown
5314431aa0SMark Brownconfig WM8350_POWER
5414431aa0SMark Brown        tristate "WM8350 PMU support"
5514431aa0SMark Brown        depends on MFD_WM8350
5614431aa0SMark Brown        help
5714431aa0SMark Brown          Say Y here to enable support for the power management unit
5814431aa0SMark Brown	  provided by the Wolfson Microelectronics WM8350 PMIC.
5914431aa0SMark Brown
60a1e50fd4SAnton Vorontsovconfig TEST_POWER
61a1e50fd4SAnton Vorontsov	tristate "Test power driver"
62a1e50fd4SAnton Vorontsov	help
63a1e50fd4SAnton Vorontsov	  This driver is used for testing. It's safe to say M here.
64a1e50fd4SAnton Vorontsov
65fe0e3153SAnton Vorontsovconfig BATTERY_DS2760
66fe0e3153SAnton Vorontsov	tristate "DS2760 battery driver (HP iPAQ & others)"
67f6127b86SMartin Schwidefsky	depends on W1 && W1_SLAVE_DS2760
68fe0e3153SAnton Vorontsov	help
69fe0e3153SAnton Vorontsov	  Say Y here to enable support for batteries with ds2760 chip.
70fe0e3153SAnton Vorontsov
71275ac746SClifton Barnesconfig BATTERY_DS2780
72275ac746SClifton Barnes	tristate "DS2780 battery driver"
733369465eSAl Viro	depends on HAS_IOMEM
74275ac746SClifton Barnes	select W1
75275ac746SClifton Barnes	select W1_SLAVE_DS2780
76275ac746SClifton Barnes	help
77275ac746SClifton Barnes	  Say Y here to enable support for batteries with ds2780 chip.
78275ac746SClifton Barnes
79fef37e9aSRenata Sayakhovaconfig BATTERY_DS2781
80fef37e9aSRenata Sayakhova	tristate "2781 battery driver"
81fef37e9aSRenata Sayakhova	depends on HAS_IOMEM
82fef37e9aSRenata Sayakhova	select W1
83fef37e9aSRenata Sayakhova	select W1_SLAVE_DS2781
84fef37e9aSRenata Sayakhova	help
85fef37e9aSRenata Sayakhova	  If you enable this you will have the DS2781 battery driver support.
86fef37e9aSRenata Sayakhova
87fef37e9aSRenata Sayakhova	  The battery monitor chip is used in many batteries/devices
88fef37e9aSRenata Sayakhova	  as the one who is responsible for charging/discharging/monitoring
89fef37e9aSRenata Sayakhova	  Li+ batteries.
90fef37e9aSRenata Sayakhova
91fef37e9aSRenata Sayakhova	  If you are unsure, say N.
92fef37e9aSRenata Sayakhova
93bfdb46ceSRyan Mallonconfig BATTERY_DS2782
949b9ade6bSYulia Vilensky	tristate "DS2782/DS2786 standalone gas-gauge"
95bfdb46ceSRyan Mallon	depends on I2C
96bfdb46ceSRyan Mallon	help
979b9ade6bSYulia Vilensky	  Say Y here to enable support for the DS2782/DS2786 standalone battery
98bfdb46ceSRyan Mallon	  gas-gauge.
99bfdb46ceSRyan Mallon
100efea58e3SDavid Woodhouseconfig BATTERY_PMU
101efea58e3SDavid Woodhouse	tristate "Apple PMU battery"
102a1da5f4fSPaul Mackerras	depends on PPC32 && ADB_PMU
103efea58e3SDavid Woodhouse	help
104efea58e3SDavid Woodhouse	  Say Y here to expose battery information on Apple machines
105efea58e3SDavid Woodhouse	  through the generic battery class.
106efea58e3SDavid Woodhouse
107fb972873SDavid Woodhouseconfig BATTERY_OLPC
108fb972873SDavid Woodhouse	tristate "One Laptop Per Child battery"
109fb972873SDavid Woodhouse	depends on X86_32 && OLPC
110fb972873SDavid Woodhouse	help
111fb972873SDavid Woodhouse	  Say Y to enable support for the battery on the OLPC laptop.
112fb972873SDavid Woodhouse
113fece4184SDmitry Baryshkovconfig BATTERY_TOSA
114fece4184SDmitry Baryshkov	tristate "Sharp SL-6000 (tosa) battery"
1156a903788SDmitry Baryshkov	depends on MACH_TOSA && MFD_TC6393XB && TOUCHSCREEN_WM97XX
116fece4184SDmitry Baryshkov	help
117fece4184SDmitry Baryshkov	  Say Y to enable support for the battery on the Sharp Zaurus
118fece4184SDmitry Baryshkov	  SL-6000 (tosa) models.
119fece4184SDmitry Baryshkov
120f1fce597SThomas Kunzeconfig BATTERY_COLLIE
121f1fce597SThomas Kunze	tristate "Sharp SL-5500 (collie) battery"
122f1fce597SThomas Kunze	depends on SA1100_COLLIE && MCP_UCB1200
123f1fce597SThomas Kunze	help
124f1fce597SThomas Kunze	  Say Y to enable support for the battery on the Sharp Zaurus
125f1fce597SThomas Kunze	  SL-5500 (collie) models.
126f1fce597SThomas Kunze
1274e9687d9SMarek Vašutconfig BATTERY_WM97XX
1284e9687d9SMarek Vašut	bool "WM97xx generic battery driver"
1295e4c5f4cSLinus Torvalds	depends on TOUCHSCREEN_WM97XX=y
130d4b19c42SMarek Vašut	help
1314e9687d9SMarek Vašut	  Say Y to enable support for battery measured by WM97xx aux port.
132d4b19c42SMarek Vašut
133c78f2b64SRhyland Kleinconfig BATTERY_SBS
134c78f2b64SRhyland Klein        tristate "SBS Compliant gas gauge"
135a7640bfaSRhyland Klein        depends on I2C
136a7640bfaSRhyland Klein        help
137c78f2b64SRhyland Klein	  Say Y to include support for SBS battery driver for SBS-compliant
138c78f2b64SRhyland Klein	  gas gauges.
139a7640bfaSRhyland Klein
140b996ad0eSRodolfo Giometticonfig BATTERY_BQ27x00
141e20908d9SGrazvydas Ignotas	tristate "BQ27x00 battery driver"
1427fb7ba58SLars-Peter Clausen	help
1437fb7ba58SLars-Peter Clausen	  Say Y here to enable support for batteries with BQ27x00 (I2C/HDQ) chips.
1447fb7ba58SLars-Peter Clausen
1457fb7ba58SLars-Peter Clausenconfig BATTERY_BQ27X00_I2C
1467fb7ba58SLars-Peter Clausen	bool "BQ27200/BQ27500 support"
1477fb7ba58SLars-Peter Clausen	depends on BATTERY_BQ27x00
148b996ad0eSRodolfo Giometti	depends on I2C
1497fb7ba58SLars-Peter Clausen	default y
150b996ad0eSRodolfo Giometti	help
151e20908d9SGrazvydas Ignotas	  Say Y here to enable support for batteries with BQ27x00 (I2C) chips.
152b996ad0eSRodolfo Giometti
1537fb7ba58SLars-Peter Clausenconfig BATTERY_BQ27X00_PLATFORM
1547fb7ba58SLars-Peter Clausen	bool "BQ27000 support"
1557fb7ba58SLars-Peter Clausen	depends on BATTERY_BQ27x00
1567fb7ba58SLars-Peter Clausen	default y
1577fb7ba58SLars-Peter Clausen	help
1587fb7ba58SLars-Peter Clausen	  Say Y here to enable support for batteries with BQ27000 (HDQ) chips.
1597fb7ba58SLars-Peter Clausen
160342d765eSMike Rapoportconfig BATTERY_DA9030
161342d765eSMike Rapoport	tristate "DA9030 battery driver"
162342d765eSMike Rapoport	depends on PMIC_DA903X
163342d765eSMike Rapoport	help
164342d765eSMike Rapoport	  Say Y here to enable support for batteries charger integrated into
165342d765eSMike Rapoport	  DA9030 PMIC.
166342d765eSMike Rapoport
167ded7fc7bSAshish Jangamconfig BATTERY_DA9052
168ded7fc7bSAshish Jangam	tristate "Dialog DA9052 Battery"
169ded7fc7bSAshish Jangam	depends on PMIC_DA9052
1706cfc2a23SAnton Vorontsov	depends on BROKEN
171ded7fc7bSAshish Jangam	help
172ded7fc7bSAshish Jangam	  Say Y here to enable support for batteries charger integrated into
173ded7fc7bSAshish Jangam	  DA9052 PMIC.
174ded7fc7bSAshish Jangam
175c6f4a42dSMinkyu Kangconfig BATTERY_MAX17040
176c6f4a42dSMinkyu Kang	tristate "Maxim MAX17040 Fuel Gauge"
177c6f4a42dSMinkyu Kang	depends on I2C
178c6f4a42dSMinkyu Kang	help
179c6f4a42dSMinkyu Kang	  MAX17040 is fuel-gauge systems for lithium-ion (Li+) batteries
180c6f4a42dSMinkyu Kang	  in handheld and portable equipment. The MAX17040 is configured
181c6f4a42dSMinkyu Kang	  to operate with a single lithium cell
182c6f4a42dSMinkyu Kang
183359ab9f5SMyungJoo Hamconfig BATTERY_MAX17042
184359ab9f5SMyungJoo Ham	tristate "Maxim MAX17042/8997/8966 Fuel Gauge"
185359ab9f5SMyungJoo Ham	depends on I2C
186359ab9f5SMyungJoo Ham	help
187359ab9f5SMyungJoo Ham	  MAX17042 is fuel-gauge systems for lithium-ion (Li+) batteries
188359ab9f5SMyungJoo Ham	  in handheld and portable equipment. The MAX17042 is configured
189359ab9f5SMyungJoo Ham	  to operate with a single lithium cell. MAX8997 and MAX8966 are
190359ab9f5SMyungJoo Ham	  multi-function devices that include fuel gauages that are compatible
191359ab9f5SMyungJoo Ham	  with MAX17042.
192359ab9f5SMyungJoo Ham
193e3e8d1c9SMarek Vasutconfig BATTERY_Z2
194e3e8d1c9SMarek Vasut	tristate "Z2 battery driver"
195e3e8d1c9SMarek Vasut	depends on I2C && MACH_ZIPIT2
196e3e8d1c9SMarek Vasut	help
197e3e8d1c9SMarek Vasut	  Say Y to include support for the battery on the Zipit Z2.
198e3e8d1c9SMarek Vasut
199808be4b2SVasily Khoruzhickconfig BATTERY_S3C_ADC
200808be4b2SVasily Khoruzhick	tristate "Battery driver for Samsung ADC based monitoring"
201808be4b2SVasily Khoruzhick	depends on S3C_ADC
202808be4b2SVasily Khoruzhick	help
203808be4b2SVasily Khoruzhick	  Say Y here to enable support for iPAQ h1930/h1940/rx1950 battery
204808be4b2SVasily Khoruzhick
205f5714dc9SBalaji Raoconfig CHARGER_PCF50633
206f5714dc9SBalaji Rao	tristate "NXP PCF50633 MBC"
207f5714dc9SBalaji Rao	depends on MFD_PCF50633
208f5714dc9SBalaji Rao	help
209f5714dc9SBalaji Rao	 Say Y to include support for NXP PCF50633 Main Battery Charger.
210f5714dc9SBalaji Rao
211f6a21388SLars-Peter Clausenconfig BATTERY_JZ4740
212f6a21388SLars-Peter Clausen	tristate "Ingenic JZ4740 battery"
213f6a21388SLars-Peter Clausen	depends on MACH_JZ4740
214f6a21388SLars-Peter Clausen	depends on MFD_JZ4740_ADC
215f6a21388SLars-Peter Clausen	help
216f6a21388SLars-Peter Clausen	  Say Y to enable support for the battery on Ingenic JZ4740 based
217f6a21388SLars-Peter Clausen	  boards.
218f6a21388SLars-Peter Clausen
219f6a21388SLars-Peter Clausen	  This driver can be build as a module. If so, the module will be
220f6a21388SLars-Peter Clausen	  called jz4740-battery.
221f6a21388SLars-Peter Clausen
2226721081bSNithish Mahalingamconfig BATTERY_INTEL_MID
2236721081bSNithish Mahalingam	tristate "Battery driver for Intel MID platforms"
2246721081bSNithish Mahalingam	depends on INTEL_SCU_IPC && SPI
2256721081bSNithish Mahalingam	help
2266721081bSNithish Mahalingam	  Say Y here to enable the battery driver on Intel MID
2276721081bSNithish Mahalingam	  platforms.
2286721081bSNithish Mahalingam
229ec46475fSHeikki Krogerusconfig CHARGER_ISP1704
230ec46475fSHeikki Krogerus	tristate "ISP1704 USB Charger Detection"
231ec46475fSHeikki Krogerus	depends on USB_OTG_UTILS
232ec46475fSHeikki Krogerus	help
233ec46475fSHeikki Krogerus	  Say Y to enable support for USB Charger Detection with
234ec46475fSHeikki Krogerus	  ISP1707/ISP1704 USB transceivers.
235ec46475fSHeikki Krogerus
236b14a9cccSMyungJoo Hamconfig CHARGER_MAX8903
237b14a9cccSMyungJoo Ham	tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
2386f9efe76SAnton Vorontsov	depends on GENERIC_HARDIRQS
239b14a9cccSMyungJoo Ham	help
240b14a9cccSMyungJoo Ham	  Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
241b14a9cccSMyungJoo Ham	  The driver supports controlling charger-enable and current-limit
242b14a9cccSMyungJoo Ham	  pins based on the status of charger connections with interrupt
243b14a9cccSMyungJoo Ham	  handlers.
244b14a9cccSMyungJoo Ham
2452e727f17SGrazvydas Ignotasconfig CHARGER_TWL4030
2462e727f17SGrazvydas Ignotas	tristate "OMAP TWL4030 BCI charger driver"
2472e727f17SGrazvydas Ignotas	depends on TWL4030_CORE
2482e727f17SGrazvydas Ignotas	help
2492e727f17SGrazvydas Ignotas	  Say Y here to enable support for TWL4030 Battery Charge Interface.
2502e727f17SGrazvydas Ignotas
2512165c8a4SWoogyom Kimconfig CHARGER_LP8727
252e39b828fSKim, Milo	tristate "TI/National Semiconductor LP8727 charger driver"
2532165c8a4SWoogyom Kim	depends on I2C
2542165c8a4SWoogyom Kim	help
2552165c8a4SWoogyom Kim	  Say Y here to enable support for LP8727 Charger Driver.
2562165c8a4SWoogyom Kim
2575070437cSLars-Peter Clausenconfig CHARGER_GPIO
2585070437cSLars-Peter Clausen	tristate "GPIO charger"
2595070437cSLars-Peter Clausen	depends on GPIOLIB
2605070437cSLars-Peter Clausen	help
2615070437cSLars-Peter Clausen	  Say Y to include support for chargers which report their online status
2625070437cSLars-Peter Clausen	  through a GPIO pin.
2635070437cSLars-Peter Clausen
2645070437cSLars-Peter Clausen	  This driver can be build as a module. If so, the module will be
2655070437cSLars-Peter Clausen	  called gpio-charger.
2665070437cSLars-Peter Clausen
2673bb3dbbdSDonggeun Kimconfig CHARGER_MANAGER
2683bb3dbbdSDonggeun Kim	bool "Battery charger manager for multiple chargers"
2693bb3dbbdSDonggeun Kim	depends on REGULATOR && RTC_CLASS
2703bb3dbbdSDonggeun Kim	help
2713bb3dbbdSDonggeun Kim          Say Y to enable charger-manager support, which allows multiple
2723bb3dbbdSDonggeun Kim          chargers attached to a battery and multiple batteries attached to a
2733bb3dbbdSDonggeun Kim          system. The charger-manager also can monitor charging status in
2743bb3dbbdSDonggeun Kim          runtime and in suspend-to-RAM by waking up the system periodically
2753bb3dbbdSDonggeun Kim          with help of suspend_again support.
2763bb3dbbdSDonggeun Kim
277149c077bSDonggeun Kimconfig CHARGER_MAX8997
278149c077bSDonggeun Kim	tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver"
279149c077bSDonggeun Kim	depends on MFD_MAX8997 && REGULATOR_MAX8997
280149c077bSDonggeun Kim	help
281149c077bSDonggeun Kim	  Say Y to enable support for the battery charger control sysfs and
282149c077bSDonggeun Kim	  platform data of MAX8997/LP3974 PMICs.
283149c077bSDonggeun Kim
284bb4ce970SDonggeun Kimconfig CHARGER_MAX8998
285bb4ce970SDonggeun Kim	tristate "Maxim MAX8998/LP3974 PMIC battery charger driver"
286bb4ce970SDonggeun Kim	depends on MFD_MAX8998 && REGULATOR_MAX8998
287bb4ce970SDonggeun Kim	help
288bb4ce970SDonggeun Kim	  Say Y to enable support for the battery charger control sysfs and
289bb4ce970SDonggeun Kim	  platform data of MAX8998/LP3974 PMICs.
290bb4ce970SDonggeun Kim
291ed1a230fSBruce E. Robertsonconfig CHARGER_SMB347
292ed1a230fSBruce E. Robertson	tristate "Summit Microelectronics SMB347 Battery Charger"
293ed1a230fSBruce E. Robertson	depends on I2C
294ed1a230fSBruce E. Robertson	help
295ed1a230fSBruce E. Robertson	  Say Y to include support for Summit Microelectronics SMB347
296ed1a230fSBruce E. Robertson	  Battery Charger.
297ed1a230fSBruce E. Robertson
2981f855824SArun Murthyconfig AB8500_BM
2991f855824SArun Murthy	bool "AB8500 Battery Management Driver"
3001f855824SArun Murthy	depends on AB8500_CORE && AB8500_GPADC
3011f855824SArun Murthy	help
3021f855824SArun Murthy	  Say Y to include support for AB5500 battery management.
3031f855824SArun Murthy
3041f855824SArun Murthyconfig AB8500_BATTERY_THERM_ON_BATCTRL
3051f855824SArun Murthy	bool "Thermistor connected on BATCTRL ADC"
3061f855824SArun Murthy	depends on AB8500_BM
3071f855824SArun Murthy	help
3081f855824SArun Murthy	  Say Y to enable battery temperature measurements using
3091f855824SArun Murthy	  thermistor connected on BATCTRL ADC.
3104a11b59dSAnton Vorontsovendif # POWER_SUPPLY
311*21ff63adSJean Pihet
312*21ff63adSJean Pihetsource "drivers/power/avs/Kconfig"
313