power_supply: add rk29 adc battery driver
[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 TEST_POWER
75         tristate "Test power driver"
76         help
77           This driver is used for testing. It's safe to say M here.
78
79 config BATTERY_DS2760
80         tristate "DS2760 battery driver (HP iPAQ & others)"
81         depends on W1 && W1_SLAVE_DS2760
82         help
83           Say Y here to enable support for batteries with ds2760 chip.
84
85 config BATTERY_DS2780
86         tristate "DS2780 battery driver"
87         select W1
88         select W1_SLAVE_DS2780
89         help
90           Say Y here to enable support for batteries with ds2780 chip.
91
92 config BATTERY_DS2782
93         tristate "DS2782/DS2786 standalone gas-gauge"
94         depends on I2C
95         help
96           Say Y here to enable support for the DS2782/DS2786 standalone battery
97           gas-gauge.
98
99 config BATTERY_PMU
100         tristate "Apple PMU battery"
101         depends on PPC32 && ADB_PMU
102         help
103           Say Y here to expose battery information on Apple machines
104           through the generic battery class.
105
106 config BATTERY_OLPC
107         tristate "One Laptop Per Child battery"
108         depends on X86_32 && OLPC
109         help
110           Say Y to enable support for the battery on the OLPC laptop.
111
112 config BATTERY_TOSA
113         tristate "Sharp SL-6000 (tosa) battery"
114         depends on MACH_TOSA && MFD_TC6393XB && TOUCHSCREEN_WM97XX
115         help
116           Say Y to enable support for the battery on the Sharp Zaurus
117           SL-6000 (tosa) models.
118
119 config BATTERY_COLLIE
120         tristate "Sharp SL-5500 (collie) battery"
121         depends on SA1100_COLLIE && MCP_UCB1200
122         help
123           Say Y to enable support for the battery on the Sharp Zaurus
124           SL-5500 (collie) models.
125
126 config BATTERY_WM97XX
127         bool "WM97xx generic battery driver"
128         depends on TOUCHSCREEN_WM97XX=y
129         help
130           Say Y to enable support for battery measured by WM97xx aux port.
131
132 config BATTERY_BQ20Z75
133         tristate "TI BQ20z75 gas gauge"
134         depends on I2C
135         help
136          Say Y to include support for TI BQ20z75 SBS-compliant
137          gas gauge and protection IC.
138
139 config BATTERY_BQ27x00
140         tristate "BQ27x00 battery driver"
141         help
142           Say Y here to enable support for batteries with BQ27x00 (I2C/HDQ) chips.
143
144 config BATTERY_BQ27X00_I2C
145         bool "BQ27200/BQ27500 support"
146         depends on BATTERY_BQ27x00
147         depends on I2C
148         default y
149         help
150           Say Y here to enable support for batteries with BQ27x00 (I2C) chips.
151
152 config BATTERY_BQ27X00_PLATFORM
153         bool "BQ27000 support"
154         depends on BATTERY_BQ27x00
155         default y
156         help
157           Say Y here to enable support for batteries with BQ27000 (HDQ) chips.
158
159 config BATTERY_DA9030
160         tristate "DA9030 battery driver"
161         depends on PMIC_DA903X
162         help
163           Say Y here to enable support for batteries charger integrated into
164           DA9030 PMIC.
165
166 config BATTERY_MAX17040
167         tristate "Maxim MAX17040 Fuel Gauge"
168         depends on I2C
169         help
170           MAX17040 is fuel-gauge systems for lithium-ion (Li+) batteries
171           in handheld and portable equipment. The MAX17040 is configured
172           to operate with a single lithium cell
173
174 config BATTERY_MAX17042
175         tristate "Maxim MAX17042/8997/8966 Fuel Gauge"
176         depends on I2C
177         help
178           MAX17042 is fuel-gauge systems for lithium-ion (Li+) batteries
179           in handheld and portable equipment. The MAX17042 is configured
180           to operate with a single lithium cell. MAX8997 and MAX8966 are
181           multi-function devices that include fuel gauages that are compatible
182           with MAX17042.
183
184 config BATTERY_Z2
185         tristate "Z2 battery driver"
186         depends on I2C && MACH_ZIPIT2
187         help
188           Say Y to include support for the battery on the Zipit Z2.
189
190 config BATTERY_S3C_ADC
191         tristate "Battery driver for Samsung ADC based monitoring"
192         depends on S3C_ADC
193         help
194           Say Y here to enable support for iPAQ h1930/h1940/rx1950 battery
195
196 config CHARGER_PCF50633
197         tristate "NXP PCF50633 MBC"
198         depends on MFD_PCF50633
199         help
200          Say Y to include support for NXP PCF50633 Main Battery Charger.
201
202 config BATTERY_STC3100
203         tristate "STC3100 battery driver"
204         depends on I2C && ARCH_RK29
205         help
206           Say Y here to enable support for batteries with STC3100(I2C) chip.
207
208 config BATTERY_BQ27510
209         tristate "BQ27510 battery driver"
210         select I2C_DEV_RK29
211         depends on I2C && ARCH_RK29
212         help
213           Say Y here to enable support for batteries with BQ27510(I2C) chip.
214
215 config BATTERY_BQ27541
216         tristate "BQ27541 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 BQ27541(I2C) chip.
221         
222 config BATTERY_BQ3060
223         tristate "BQ3060 battery driver"
224         depends on I2C && ARCH_RK29
225         help
226           Say Y here to enable support for batteries with BQ3060(I2C) chip.  
227
228 config CHECK_BATT_CAPACITY
229         tristate "check the capacity in BQ27510 battery if 1000mah write capacity for BATT_CAPACITY_MAH"
230         depends on BATTERY_BQ27510 || BATTERY_BQ3060
231         default n
232
233 config BATT_CAPACITY_MAH
234         depends on CHECK_BATT_CAPACITY
235         int "battery capacity (in mah)"
236         default 2200
237
238 config NO_BATTERY_IC
239         tristate "no BQ27510 battery ic in board"
240         depends on BATTERY_BQ27510 || BATTERY_BQ27541 || BATTERY_BQ3060 
241         default n
242         help
243           Say no BQ27510(I2C) chip in board .
244
245 config BATTERY_JZ4740
246         tristate "Ingenic JZ4740 battery"
247         depends on MACH_JZ4740
248         depends on MFD_JZ4740_ADC
249         help
250           Say Y to enable support for the battery on Ingenic JZ4740 based
251           boards.
252
253           This driver can be build as a module. If so, the module will be
254           called jz4740-battery.
255
256 config BATTERY_INTEL_MID
257         tristate "Battery driver for Intel MID platforms"
258         depends on INTEL_SCU_IPC && SPI
259         help
260           Say Y here to enable the battery driver on Intel MID
261           platforms.
262
263 config CHARGER_ISP1704
264         tristate "ISP1704 USB Charger Detection"
265         depends on USB_OTG_UTILS
266         help
267           Say Y to enable support for USB Charger Detection with
268           ISP1707/ISP1704 USB transceivers.
269
270 config CHARGER_MAX8903
271         tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
272         depends on GENERIC_HARDIRQS
273         help
274           Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
275           The driver supports controlling charger-enable and current-limit
276           pins based on the status of charger connections with interrupt
277           handlers.
278
279 config CHARGER_TWL4030
280         tristate "OMAP TWL4030 BCI charger driver"
281         depends on TWL4030_CORE
282         help
283           Say Y here to enable support for TWL4030 Battery Charge Interface.
284
285 config CHARGER_GPIO
286         tristate "GPIO charger"
287         depends on GPIOLIB
288         help
289           Say Y to include support for chargers which report their online status
290           through a GPIO pin.
291
292           This driver can be build as a module. If so, the module will be
293           called gpio-charger.
294
295 config BATTERY_RK29_ADC
296         tristate "RK29 ADC Battery"
297         depends on ADC_RK29
298         help
299           Say Y to enable support for the battery on the RK2918.
300
301 config BATTERY_RK29_AC_CHARGE
302         tristate "RK29 AC CHARGE"
303         depends on BATTERY_RK29_ADC
304         help
305           say Y to enable suspport for the AC battery charge
306
307 endif # POWER_SUPPLY