xref: /openbmc/linux/drivers/power/Kconfig (revision a830d28b)
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 PDA_POWER
18	tristate "Generic PDA/phone power driver"
19	depends on !S390
20	help
21	  Say Y here to enable generic power driver for PDAs and phones with
22	  one or two external power supplies (AC/USB) connected to main and
23	  backup batteries, and optional builtin charger.
24
25config APM_POWER
26	tristate "APM emulation for class batteries"
27	depends on APM_EMULATION
28	help
29	  Say Y here to enable support APM status emulation using
30	  battery class devices.
31
32config MAX8925_POWER
33	tristate "MAX8925 battery charger support"
34	depends on MFD_MAX8925
35	help
36	  Say Y here to enable support for the battery charger in the Maxim
37	  MAX8925 PMIC.
38
39config 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
46config WM831X_POWER
47	tristate "WM831X PMU support"
48	depends on MFD_WM831X
49	help
50	  Say Y here to enable support for the power management unit
51	  provided by Wolfson Microelectronics WM831x PMICs.
52
53config WM8350_POWER
54        tristate "WM8350 PMU support"
55        depends on MFD_WM8350
56        help
57          Say Y here to enable support for the power management unit
58	  provided by the Wolfson Microelectronics WM8350 PMIC.
59
60config TEST_POWER
61	tristate "Test power driver"
62	help
63	  This driver is used for testing. It's safe to say M here.
64
65config BATTERY_88PM860X
66	tristate "Marvell 88PM860x battery driver"
67	depends on MFD_88PM860X
68	help
69	  Say Y here to enable battery monitor for Marvell 88PM860x chip.
70
71config BATTERY_DS2760
72	tristate "DS2760 battery driver (HP iPAQ & others)"
73	depends on W1 && W1_SLAVE_DS2760
74	help
75	  Say Y here to enable support for batteries with ds2760 chip.
76
77config 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
85config BATTERY_DS2781
86	tristate "DS2781 battery driver"
87	depends on HAS_IOMEM
88	select W1
89	select W1_SLAVE_DS2781
90	help
91	  If you enable this you will have the DS2781 battery driver support.
92
93	  The battery monitor chip is used in many batteries/devices
94	  as the one who is responsible for charging/discharging/monitoring
95	  Li+ batteries.
96
97	  If you are unsure, say N.
98
99config BATTERY_DS2782
100	tristate "DS2782/DS2786 standalone gas-gauge"
101	depends on I2C
102	help
103	  Say Y here to enable support for the DS2782/DS2786 standalone battery
104	  gas-gauge.
105
106config 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
113config BATTERY_OLPC
114	tristate "One Laptop Per Child battery"
115	depends on X86_32 && OLPC
116	help
117	  Say Y to enable support for the battery on the OLPC laptop.
118
119config BATTERY_TOSA
120	tristate "Sharp SL-6000 (tosa) battery"
121	depends on MACH_TOSA && MFD_TC6393XB && TOUCHSCREEN_WM97XX
122	help
123	  Say Y to enable support for the battery on the Sharp Zaurus
124	  SL-6000 (tosa) models.
125
126config BATTERY_COLLIE
127	tristate "Sharp SL-5500 (collie) battery"
128	depends on SA1100_COLLIE && MCP_UCB1200
129	help
130	  Say Y to enable support for the battery on the Sharp Zaurus
131	  SL-5500 (collie) models.
132
133config BATTERY_WM97XX
134	bool "WM97xx generic battery driver"
135	depends on TOUCHSCREEN_WM97XX=y
136	help
137	  Say Y to enable support for battery measured by WM97xx aux port.
138
139config BATTERY_SBS
140        tristate "SBS Compliant gas gauge"
141        depends on I2C
142        help
143	  Say Y to include support for SBS battery driver for SBS-compliant
144	  gas gauges.
145
146config BATTERY_BQ27x00
147	tristate "BQ27x00 battery driver"
148	help
149	  Say Y here to enable support for batteries with BQ27x00 (I2C/HDQ) chips.
150
151config BATTERY_BQ27X00_I2C
152	bool "BQ27200/BQ27500 support"
153	depends on BATTERY_BQ27x00
154	depends on I2C
155	default y
156	help
157	  Say Y here to enable support for batteries with BQ27x00 (I2C) chips.
158
159config BATTERY_BQ27X00_PLATFORM
160	bool "BQ27000 support"
161	depends on BATTERY_BQ27x00
162	default y
163	help
164	  Say Y here to enable support for batteries with BQ27000 (HDQ) chips.
165
166config BATTERY_DA9030
167	tristate "DA9030 battery driver"
168	depends on PMIC_DA903X
169	help
170	  Say Y here to enable support for batteries charger integrated into
171	  DA9030 PMIC.
172
173config BATTERY_DA9052
174	tristate "Dialog DA9052 Battery"
175	depends on PMIC_DA9052
176	help
177	  Say Y here to enable support for batteries charger integrated into
178	  DA9052 PMIC.
179
180config BATTERY_MAX17040
181	tristate "Maxim MAX17040 Fuel Gauge"
182	depends on I2C
183	help
184	  MAX17040 is fuel-gauge systems for lithium-ion (Li+) batteries
185	  in handheld and portable equipment. The MAX17040 is configured
186	  to operate with a single lithium cell
187
188config BATTERY_MAX17042
189	tristate "Maxim MAX17042/17047/17050/8997/8966 Fuel Gauge"
190	depends on I2C
191	help
192	  MAX17042 is fuel-gauge systems for lithium-ion (Li+) batteries
193	  in handheld and portable equipment. The MAX17042 is configured
194	  to operate with a single lithium cell. MAX8997 and MAX8966 are
195	  multi-function devices that include fuel gauages that are compatible
196	  with MAX17042. This driver also supports max17047/50 chips which are
197	  improved version of max17042.
198
199config BATTERY_Z2
200	tristate "Z2 battery driver"
201	depends on I2C && MACH_ZIPIT2
202	help
203	  Say Y to include support for the battery on the Zipit Z2.
204
205config BATTERY_S3C_ADC
206	tristate "Battery driver for Samsung ADC based monitoring"
207	depends on S3C_ADC
208	help
209	  Say Y here to enable support for iPAQ h1930/h1940/rx1950 battery
210
211config CHARGER_88PM860X
212	tristate "Marvell 88PM860x Charger driver"
213	depends on MFD_88PM860X && BATTERY_88PM860X
214	help
215	  Say Y here to enable charger for Marvell 88PM860x chip.
216
217config CHARGER_PCF50633
218	tristate "NXP PCF50633 MBC"
219	depends on MFD_PCF50633
220	help
221	 Say Y to include support for NXP PCF50633 Main Battery Charger.
222
223config BATTERY_JZ4740
224	tristate "Ingenic JZ4740 battery"
225	depends on MACH_JZ4740
226	depends on MFD_JZ4740_ADC
227	help
228	  Say Y to enable support for the battery on Ingenic JZ4740 based
229	  boards.
230
231	  This driver can be build as a module. If so, the module will be
232	  called jz4740-battery.
233
234config BATTERY_INTEL_MID
235	tristate "Battery driver for Intel MID platforms"
236	depends on INTEL_SCU_IPC && SPI
237	help
238	  Say Y here to enable the battery driver on Intel MID
239	  platforms.
240
241config CHARGER_ISP1704
242	tristate "ISP1704 USB Charger Detection"
243	depends on USB_OTG_UTILS
244	help
245	  Say Y to enable support for USB Charger Detection with
246	  ISP1707/ISP1704 USB transceivers.
247
248config CHARGER_MAX8903
249	tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
250	depends on GENERIC_HARDIRQS
251	help
252	  Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
253	  The driver supports controlling charger-enable and current-limit
254	  pins based on the status of charger connections with interrupt
255	  handlers.
256
257config CHARGER_TWL4030
258	tristate "OMAP TWL4030 BCI charger driver"
259	depends on TWL4030_CORE
260	help
261	  Say Y here to enable support for TWL4030 Battery Charge Interface.
262
263config CHARGER_LP8727
264	tristate "TI/National Semiconductor LP8727 charger driver"
265	depends on I2C
266	help
267	  Say Y here to enable support for LP8727 Charger Driver.
268
269config CHARGER_LP8788
270	tristate "TI LP8788 charger driver"
271	depends on MFD_LP8788
272	depends on LP8788_ADC
273	help
274	  Say Y to enable support for the LP8788 linear charger.
275
276config CHARGER_GPIO
277	tristate "GPIO charger"
278	depends on GPIOLIB
279	help
280	  Say Y to include support for chargers which report their online status
281	  through a GPIO pin.
282
283	  This driver can be build as a module. If so, the module will be
284	  called gpio-charger.
285
286config CHARGER_MANAGER
287	bool "Battery charger manager for multiple chargers"
288	depends on REGULATOR && RTC_CLASS
289	select EXTCON
290	help
291          Say Y to enable charger-manager support, which allows multiple
292          chargers attached to a battery and multiple batteries attached to a
293          system. The charger-manager also can monitor charging status in
294          runtime and in suspend-to-RAM by waking up the system periodically
295          with help of suspend_again support.
296
297config CHARGER_MAX8997
298	tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver"
299	depends on MFD_MAX8997 && REGULATOR_MAX8997
300	help
301	  Say Y to enable support for the battery charger control sysfs and
302	  platform data of MAX8997/LP3974 PMICs.
303
304config CHARGER_MAX8998
305	tristate "Maxim MAX8998/LP3974 PMIC battery charger driver"
306	depends on MFD_MAX8998 && REGULATOR_MAX8998
307	help
308	  Say Y to enable support for the battery charger control sysfs and
309	  platform data of MAX8998/LP3974 PMICs.
310
311config CHARGER_SMB347
312	tristate "Summit Microelectronics SMB347 Battery Charger"
313	depends on I2C
314	select REGMAP_I2C
315	help
316	  Say Y to include support for Summit Microelectronics SMB347
317	  Battery Charger.
318
319config AB8500_BM
320	bool "AB8500 Battery Management Driver"
321	depends on AB8500_CORE && AB8500_GPADC
322	help
323	  Say Y to include support for AB8500 battery management.
324
325config AB8500_BATTERY_THERM_ON_BATCTRL
326	bool "Thermistor connected on BATCTRL ADC"
327	depends on AB8500_BM
328	help
329	  Say Y to enable battery temperature measurements using
330	  thermistor connected on BATCTRL ADC.
331endif # POWER_SUPPLY
332
333source "drivers/power/avs/Kconfig"
334