add wm831x support for in board-rk29-phonesdk.c
[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 WM831X_BACKUP
33         tristate "WM831X backup battery charger support"
34         depends on MFD_WM831X
35         help
36           Say Y here to enable support for the backup battery charger
37           in the Wolfson Microelectronics WM831x PMICs.
38 config WM831X_POWER
39         tristate "WM831X PMU support"
40         depends on MFD_WM831X
41         help
42           Say Y here to enable support for the power management unit
43           provided by Wolfson Microelectronics WM831x PMICs.
44
45 config WM8350_POWER
46         tristate "WM8350 PMU support"
47         depends on MFD_WM8350
48         help
49           Say Y here to enable support for the power management unit
50           provided by the Wolfson Microelectronics WM8350 PMIC.
51
52 config BATTERY_DS2760
53         tristate "DS2760 battery driver (HP iPAQ & others)"
54         select W1
55         select W1_SLAVE_DS2760
56         help
57           Say Y here to enable support for batteries with ds2760 chip.
58
59 config BATTERY_DS2782
60         tristate "DS2782 standalone gas-gauge"
61         depends on I2C
62         help
63           Say Y here to enable support for the DS2782 standalone battery
64           gas-gauge.
65
66 config BATTERY_PMU
67         tristate "Apple PMU battery"
68         depends on PPC32 && ADB_PMU
69         help
70           Say Y here to expose battery information on Apple machines
71           through the generic battery class.
72
73 config BATTERY_OLPC
74         tristate "One Laptop Per Child battery"
75         depends on X86_32 && OLPC
76         help
77           Say Y to enable support for the battery on the OLPC laptop.
78
79 config BATTERY_TOSA
80         tristate "Sharp SL-6000 (tosa) battery"
81         depends on MACH_TOSA && MFD_TC6393XB && TOUCHSCREEN_WM97XX
82         help
83           Say Y to enable support for the battery on the Sharp Zaurus
84           SL-6000 (tosa) models.
85
86 config BATTERY_WM97XX
87         bool "WM97xx generic battery driver"
88         depends on TOUCHSCREEN_WM97XX=y
89         help
90           Say Y to enable support for battery measured by WM97xx aux port.
91
92 config BATTERY_BQ27x00
93         tristate "BQ27200 battery driver"
94         depends on I2C
95         help
96           Say Y here to enable support for batteries with BQ27200(I2C) chip.
97
98 config BATTERY_DA9030
99         tristate "DA9030 battery driver"
100         depends on PMIC_DA903X
101         help
102           Say Y here to enable support for batteries charger integrated into
103           DA9030 PMIC.
104
105 config BATTERY_MAX17040
106         tristate "Maxim MAX17040 Fuel Gauge"
107         depends on I2C
108         help
109           MAX17040 is fuel-gauge systems for lithium-ion (Li+) batteries
110           in handheld and portable equipment. The MAX17040 is configured
111           to operate with a single lithium cell
112
113 config CHARGER_PCF50633
114         tristate "NXP PCF50633 MBC"
115         depends on MFD_PCF50633
116         help
117          Say Y to include support for NXP PCF50633 Main Battery Charger.
118
119 config BATTERY_STC3100
120         tristate "STC3100 battery driver"
121         depends on I2C && ARCH_RK29
122         help
123           Say Y here to enable support for batteries with STC3100(I2C) chip.
124
125 config BATTERY_BQ27510
126         tristate "BQ27510 battery driver"
127         depends on I2C && ARCH_RK29
128         help
129           Say Y here to enable support for batteries with BQ27510(I2C) chip.
130         
131 config BATTERY_BQ3060
132         tristate "BQ3060 battery driver"
133         depends on I2C && ARCH_RK29
134         help
135           Say Y here to enable support for batteries with BQ3060(I2C) chip.  
136 config CHECK_BATT_CAPACITY
137         tristate "check the capacity in BQ27510 battery if 1000mah write capacity for BATT_CAPACITY_MAH"
138         depends on BATTERY_BQ27510 || BATTERY_BQ3060
139         default n
140
141 config BATT_CAPACITY_MAH
142         depends on CHECK_BATT_CAPACITY
143         int "battery capacity (in mah)"
144         default 2200
145                 
146 config NO_BATTERY_IC
147         tristate "no BQ27510 battery ic in board"
148         depends on BATTERY_BQ27510 || BATTERY_BQ3060 
149         default n
150         help
151           Say no BQ27510(I2C) chip in board .
152           
153 config BATTERY_RK2818
154         tristate "RK2818 battery"
155         depends on RK28_ADC
156         help
157           Say Y to enable support for the battery on the RK2818.
158 endif # POWER_SUPPLY