battery: add usb chage support to cw2015 battery driver and some other improve
[firefly-linux-kernel-4.4.55.git] / drivers / power / Kconfig
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
9 if POWER_SUPPLY
10
11 config 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
17 config 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
25 config 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
32 config 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
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
46 config 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
53 config WM831X_CHARGER_DISPLAY
54         tristate "WM831X Charger display support"
55         depends on WM831X_POWER
56         help
57           Say Y here to enable support for the power management unit
58           provided by Wolfson Microelectronics WM831x Charger Display.  
59
60 config WM831X_WITH_BATTERY
61         tristate "WM831X battery exist"
62         depends on WM831X_POWER
63         default n
64         help
65           WM831X battery exist.
66
67 config WM8350_POWER
68         tristate "WM8350 PMU support"
69         depends on MFD_WM8350
70         help
71           Say Y here to enable support for the power management unit
72           provided by the Wolfson Microelectronics WM8350 PMIC.
73
74 config BATTERY_RICOH619
75         tristate "Ricoh RC5T619 PMIC battery driver"
76         depends on MFD_RICOH619 && I2C && GENERIC_HARDIRQS
77         help
78           Say Y to enable support for the battery control of the Ricoh RC5T619
79           Power Management device.
80
81 config TEST_POWER
82         tristate "Test power driver"
83         help
84           This driver is used for testing. It's safe to say M here.
85
86 config BATTERY_DS2760
87         tristate "DS2760 battery driver (HP iPAQ & others)"
88         depends on W1 && W1_SLAVE_DS2760
89         help
90           Say Y here to enable support for batteries with ds2760 chip.
91
92 config BATTERY_DS2780
93         tristate "DS2780 battery driver"
94         select W1
95         select W1_SLAVE_DS2780
96         help
97           Say Y here to enable support for batteries with ds2780 chip.
98
99 config 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
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
113 config 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
119 config 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
126 config 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
133 config 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
139 config BATTERY_BQ20Z75
140         tristate "TI BQ20z75 gas gauge"
141         depends on I2C
142         help
143          Say Y to include support for TI BQ20z75 SBS-compliant
144          gas gauge and protection IC.
145
146 config BATTERY_BQ27x00
147         tristate "BQ27x00 battery driver"
148         help
149           Say Y here to enable support for batteries with BQ27x00 (I2C/HDQ) chips.
150
151 config 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
159 config 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
166 config 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
173 config BATTERY_MAX17040
174         tristate "Maxim MAX17040 Fuel Gauge"
175         depends on I2C
176         help
177           MAX17040 is fuel-gauge systems for lithium-ion (Li+) batteries
178           in handheld and portable equipment. The MAX17040 is configured
179           to operate with a single lithium cell
180
181 config BATTERY_MAX17042
182         tristate "Maxim MAX17042/8997/8966 Fuel Gauge"
183         depends on I2C
184         help
185           MAX17042 is fuel-gauge systems for lithium-ion (Li+) batteries
186           in handheld and portable equipment. The MAX17042 is configured
187           to operate with a single lithium cell. MAX8997 and MAX8966 are
188           multi-function devices that include fuel gauages that are compatible
189           with MAX17042.
190
191 config BATTERY_Z2
192         tristate "Z2 battery driver"
193         depends on I2C && MACH_ZIPIT2
194         help
195           Say Y to include support for the battery on the Zipit Z2.
196
197 config BATTERY_S3C_ADC
198         tristate "Battery driver for Samsung ADC based monitoring"
199         depends on S3C_ADC
200         help
201           Say Y here to enable support for iPAQ h1930/h1940/rx1950 battery
202
203 config CHARGER_PCF50633
204         tristate "NXP PCF50633 MBC"
205         depends on MFD_PCF50633
206         help
207          Say Y to include support for NXP PCF50633 Main Battery Charger.
208
209 config BATTERY_STC3100
210         tristate "STC3100 battery driver"
211         depends on I2C && ARCH_RK29
212         help
213           Say Y here to enable support for batteries with STC3100(I2C) chip.
214
215 config BATTERY_BQ27510
216         tristate "BQ27510 battery driver"
217         select I2C_DEV_RK29
218         depends on I2C && ARCH_RK29
219         help
220           Say Y here to enable support for batteries with BQ27510(I2C) chip.
221
222 config BATTERY_BQ27541
223         tristate "BQ27541 battery driver"
224         select I2C_DEV_RK29
225         depends on I2C && ARCH_RK29
226         help
227           Say Y here to enable support for batteries with BQ27541(I2C) chip.
228         
229 config BATTERY_BQ3060
230         tristate "BQ3060 battery driver"
231         depends on I2C && ARCH_RK29
232         help
233           Say Y here to enable support for batteries with BQ3060(I2C) chip.  
234
235 config CHECK_BATT_CAPACITY
236         tristate "check the capacity in BQ27510 battery if 1000mah write capacity for BATT_CAPACITY_MAH"
237         depends on BATTERY_BQ27510 || BATTERY_BQ3060
238         default n
239
240 config BATT_CAPACITY_MAH
241         depends on CHECK_BATT_CAPACITY
242         int "battery capacity (in mah)"
243         default 2200
244
245 config NO_BATTERY_IC
246         tristate "no BQ27510 battery ic in board"
247         depends on BATTERY_BQ27510 || BATTERY_BQ27541 || BATTERY_BQ3060 
248         default n
249         help
250           Say no BQ27510(I2C) chip in board .
251
252 config BATTERY_JZ4740
253         tristate "Ingenic JZ4740 battery"
254         depends on MACH_JZ4740
255         depends on MFD_JZ4740_ADC
256         help
257           Say Y to enable support for the battery on Ingenic JZ4740 based
258           boards.
259
260           This driver can be build as a module. If so, the module will be
261           called jz4740-battery.
262
263 config BATTERY_INTEL_MID
264         tristate "Battery driver for Intel MID platforms"
265         depends on INTEL_SCU_IPC && SPI
266         help
267           Say Y here to enable the battery driver on Intel MID
268           platforms.
269
270 config CHARGER_ISP1704
271         tristate "ISP1704 USB Charger Detection"
272         depends on USB_OTG_UTILS
273         help
274           Say Y to enable support for USB Charger Detection with
275           ISP1707/ISP1704 USB transceivers.
276
277 config CHARGER_MAX8903
278         tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
279         depends on GENERIC_HARDIRQS
280         help
281           Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
282           The driver supports controlling charger-enable and current-limit
283           pins based on the status of charger connections with interrupt
284           handlers.
285
286 config CHARGER_TWL4030
287         tristate "OMAP TWL4030 BCI charger driver"
288         depends on TWL4030_CORE
289         help
290           Say Y here to enable support for TWL4030 Battery Charge Interface.
291
292 config TWL6030_BCI_BATTERY
293         tristate "OMAP TWL6030 BCI Battery driver"
294         depends on TWL4030_CORE && TWL6030_GPADC
295         help
296           Support for OMAP TWL6030 BCI Battery driver.
297           This driver can give support for TWL6030 Battery Charge Interface.
298
299 config CHARGER_GPIO
300         tristate "GPIO charger"
301         depends on GPIOLIB
302         help
303           Say Y to include support for chargers which report their online status
304           through a GPIO pin.
305
306           This driver can be build as a module. If so, the module will be
307           called gpio-charger.
308
309 config BATTERY_RK29_ADC
310         tristate "RK29 ADC Battery"
311         depends on ADC_RK29
312         help
313           Say Y to enable support for the battery on the RK2918.
314
315 config BATTERY_RK29_AC_CHARGE
316         tristate "RK29 AC CHARGE"
317         depends on BATTERY_RK29_ADC
318         help
319           say Y to enable suspport for the AC battery charge
320
321 config BATTERY_RK29_VOL3V8
322         tristate "the battery voltage is 3.8V"
323         depends on BATTERY_RK29_ADC
324         help
325           say Y to enable suspport for the battery voltage 3.8V
326
327 config BATTERY_RK30_ADC
328         tristate "RK30 ADC Battery"
329         depends on ADC_RK30
330         help
331           Say Y to enable support for the battery on the RK30.
332
333 config BATTERY_RK30_ADC_FAC
334         tristate "RK30 ADC Battery Factory"
335         depends on ADC_RK30
336         help
337           Say Y to enable support for the battery on the RK30.
338
339 config BATTERY_RK30_AC_CHARGE
340         tristate "RK30 AC CHARGE"
341         depends on BATTERY_RK30_ADC||BATTERY_RK30_ADC_FAC
342         help
343           say Y to enable suspport for the AC battery charge
344
345 config BATTERY_RK30_USB_CHARGE
346         tristate "RK30 USB CHARGE"
347         depends on BATTERY_RK30_ADC||BATTERY_RK30_ADC_FAC
348         help
349           say Y to enable suspport for the USB battery charge
350
351 config BATTERY_RK30_VOL3V8
352        tristate "the battery voltage is 3.8V"
353         depends on BATTERY_RK30_ADC||BATTERY_RK30_ADC_FAC
354         help
355           say Y to enable suspport for the battery voltage 3.8V 
356           
357 config CW2015_BATTERY
358         tristate "CW2015 battery driver"
359         help
360           Say Y to enable support for the cw2015 on the Rockchip
361
362 config POWER_ON_CHARGER_DISPLAY
363         bool "Support charger display"
364
365 config WM8326_VBAT_LOW_DETECTION
366         tristate "Support for WM8326 battery voltage detection."
367         default n
368
369 config TWL60xx_VBAT_LOW_DETECTION
370         tristate "Support for twl60xx low battery detection."
371         default n
372
373 config CHARGER_SMB347
374         tristate "Summit Microelectronics SMB347 Battery Charger"
375         depends on I2C
376         select REGMAP_I2C
377         help
378           Say Y to include support for Summit Microelectronics SMB347
379           Battery Charger.
380
381 endif # POWER_SUPPLY