xref: /rk3399_rockchip-uboot/drivers/power/Kconfig (revision 6184121cdc2fc45e350eb406a78dbf685f281d2e)
1menu "Power"
2
3source "drivers/power/domain/Kconfig"
4
5source "drivers/power/fuel_gauge/Kconfig"
6
7source "drivers/power/io-domain/Kconfig"
8
9source "drivers/power/pmic/Kconfig"
10
11source "drivers/power/regulator/Kconfig"
12
13source "drivers/power/dvfs/Kconfig"
14
15config DM_CHARGE_DISPLAY
16	bool "Enable driver model for charge display support"
17	depends on DM
18	help
19	  This adds a simple uclass for charge display.
20
21choice
22	prompt "Select Sunxi PMIC Variant"
23	depends on ARCH_SUNXI
24	default AXP209_POWER if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
25	default AXP221_POWER if MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40
26	default AXP818_POWER if MACH_SUN8I_A83T
27	default SUNXI_NO_PMIC if MACH_SUNXI_H3_H5 || MACH_SUN50I
28
29config SUNXI_NO_PMIC
30	bool "board without a pmic"
31	---help---
32	Select this for boards which do not use a PMIC.
33
34config AXP152_POWER
35	bool "axp152 pmic support"
36	depends on MACH_SUN5I
37	select CMD_POWEROFF
38	---help---
39	Select this to enable support for the axp152 pmic found on most
40	A10s boards.
41
42config AXP209_POWER
43	bool "axp209 pmic support"
44	depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
45	select CMD_POWEROFF
46	---help---
47	Select this to enable support for the axp209 pmic found on most
48	A10, A13 and A20 boards.
49
50config AXP221_POWER
51	bool "axp221 / axp223 pmic support"
52	depends on MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40
53	select CMD_POWEROFF
54	---help---
55	Select this to enable support for the axp221/axp223 pmic found on most
56	A23 and A31 boards.
57
58config AXP809_POWER
59	bool "axp809 pmic support"
60	depends on MACH_SUN9I
61	select CMD_POWEROFF
62	---help---
63	Say y here to enable support for the axp809 pmic found on A80 boards.
64
65config AXP818_POWER
66	bool "axp818 pmic support"
67	depends on MACH_SUN8I_A83T
68	select CMD_POWEROFF
69	---help---
70	Say y here to enable support for the axp818 pmic found on
71	A83T dev board.
72
73config SY8106A_POWER
74	bool "SY8106A pmic support"
75	depends on MACH_SUNXI_H3_H5
76	---help---
77	Select this to enable support for the SY8106A pmic found on some
78	H3 boards.
79
80endchoice
81
82config CHARGE_ANIMATION
83	bool "Enable charge animation"
84	depends on DM_CHARGE_DISPLAY && DM_FUEL_GAUGE
85	select ARM_CPU_SUSPEND
86	help
87	  This adds a simple function for charge animation display.
88
89config ROCKCHIP_PM
90	bool "Enable Rockchip power manager for charge animation"
91	depends on CHARGE_ANIMATION
92	default y
93	help
94	  This adds power manage control of devices for low power
95	  during system suspend in charge animation.
96
97config AXP_DCDC1_VOLT
98	int "axp pmic dcdc1 voltage"
99	depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
100	default 3300 if AXP818_POWER || MACH_SUN8I_R40
101	default 3000 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I
102	---help---
103	Set the voltage (mV) to program the axp pmic dcdc1 at, set to 0 to
104	disable dcdc1. On A23 / A31 / A33 (axp221) boards dcdc1 is used for
105	generic 3.3V IO voltage for external devices like the lcd-panal and
106	sdcard interfaces, etc. On most boards dcdc1 is undervolted to 3.0V to
107	save battery. On A31 devices dcdc1 is also used for VCC-IO. On A83T
108	dcdc1 is used for VCC-IO, nand, usb0, sd , etc. On A80 dcdc1 normally
109	powers some of the pingroups, NAND/eMMC, SD/MMC, and USB OTG.
110
111config AXP_DCDC2_VOLT
112	int "axp pmic dcdc2 voltage"
113	depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
114	default 900 if AXP818_POWER
115	default 1400 if AXP152_POWER || AXP209_POWER
116	default 1200 if MACH_SUN6I
117	default 1100 if MACH_SUN8I
118	default 0 if MACH_SUN9I
119	---help---
120	Set the voltage (mV) to program the axp pmic dcdc2 at, set to 0 to
121	disable dcdc2.
122	On A10(s) / A13 / A20 boards dcdc2 is VDD-CPU and should be 1.4V.
123	On A31 boards dcdc2 is used for VDD-GPU and should be 1.2V.
124	On A23/A33 boards dcdc2 is used for VDD-SYS and should be 1.1V.
125	On A80 boards dcdc2 powers the GPU and can be left off.
126	On A83T boards dcdc2 is used for VDD-CPUA(cluster 0) and should be 0.9V.
127	On R40 boards dcdc2 is VDD-CPU and should be 1.1V
128
129config AXP_DCDC3_VOLT
130	int "axp pmic dcdc3 voltage"
131	depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
132	default 900 if AXP809_POWER || AXP818_POWER
133	default 1500 if AXP152_POWER
134	default 1250 if AXP209_POWER
135	default 1100 if MACH_SUN8I_R40
136	default 1200 if MACH_SUN6I || MACH_SUN8I
137	---help---
138	Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to
139	disable dcdc3.
140	On A10(s) / A13 / A20 boards with an axp209 dcdc3 is VDD-INT-DLL and
141	should be 1.25V.
142	On A10s boards with an axp152 dcdc3 is VCC-DRAM and should be 1.5V.
143	On A23 / A31 / A33 boards dcdc3 is VDD-CPU and should be 1.2V.
144	On A80 boards dcdc3 is used for VDD-CPUA(cluster 0) and should be 0.9V.
145	On A83T boards dcdc3 is used for VDD-CPUB(cluster 1) and should be 0.9V.
146	On R40 boards dcdc3 is VDD-SYS and VDD-GPU and should be 1.1V.
147
148config AXP_DCDC4_VOLT
149	int "axp pmic dcdc4 voltage"
150	depends on AXP152_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
151	default 1250 if AXP152_POWER
152	default 1200 if MACH_SUN6I
153	default 0 if MACH_SUN8I
154	default 900 if MACH_SUN9I
155	---help---
156	Set the voltage (mV) to program the axp pmic dcdc4 at, set to 0 to
157	disable dcdc4.
158	On A10s boards with an axp152 dcdc4 is VDD-INT-DLL and should be 1.25V.
159	On A31 boards dcdc4 is used for VDD-SYS and should be 1.2V.
160	On A23 / A33 boards dcdc4 is unused and should be disabled.
161	On A80 boards dcdc4 powers VDD-SYS, HDMI, USB OTG and should be 0.9V.
162	On A83T boards dcdc4 is used for VDD-GPU.
163
164config AXP_DCDC5_VOLT
165	int "axp pmic dcdc5 voltage"
166	depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
167	default 1500 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I
168	---help---
169	Set the voltage (mV) to program the axp pmic dcdc5 at, set to 0 to
170	disable dcdc5.
171	On A23 / A31 / A33 / A80 / A83T / R40 boards dcdc5 is VCC-DRAM and
172	should be 1.5V, 1.35V if DDR3L is used.
173
174config AXP_ALDO1_VOLT
175	int "axp pmic (a)ldo1 voltage"
176	depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
177	default 0 if MACH_SUN6I || MACH_SUN8I_R40
178	default 1800 if MACH_SUN8I_A83T
179	default 3000 if MACH_SUN8I || MACH_SUN9I
180	---help---
181	Set the voltage (mV) to program the axp pmic aldo1 at, set to 0 to
182	disable aldo1.
183	On A31 boards aldo1 is often used to power the wifi module.
184	On A23 / A33 boards aldo1 is used for VCC-IO and should be 3.0V.
185	On A80 boards aldo1 powers the USB hosts and should be 3.0V.
186	On A83T / H8 boards aldo1 is used for MIPI CSI, DSI, HDMI, EFUSE, and
187	should be 1.8V.
188
189config AXP_ALDO2_VOLT
190	int "axp pmic (a)ldo2 voltage"
191	depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
192	default 3000 if AXP152_POWER || AXP209_POWER
193	default 0 if MACH_SUN6I || MACH_SUN9I
194	default 1800 if MACH_SUN8I_A83T
195	default 2500 if MACH_SUN8I
196	---help---
197	Set the voltage (mV) to program the axp pmic aldo2 at, set to 0 to
198	disable aldo2.
199	On A10(s) / A13 / A20 boards aldo2 is AVCC and should be 3.0V.
200	On A31 boards aldo2 is typically unused and should be disabled.
201	On A31 boards aldo2 may be used for LPDDR2 then it should be 1.8V.
202	On A23 / A33 boards aldo2 is used for VDD-DLL and should be 2.5V.
203	On A80 boards aldo2 powers PB pingroup and camera IO and can be left off.
204	On A83T / H8 boards aldo2 powers VDD-DLL, VCC18-PLL, CPVDD, VDD18-ADC,
205	LPDDR2, and the codec. It should be 1.8V.
206
207config AXP_ALDO3_VOLT
208	int "axp pmic (a)ldo3 voltage"
209	depends on AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
210	default 0 if AXP209_POWER || MACH_SUN9I
211	default 3000 if MACH_SUN6I || MACH_SUN8I
212	---help---
213	Set the voltage (mV) to program the axp pmic aldo3 at, set to 0 to
214	disable aldo3.
215	On A10(s) / A13 / A20 boards aldo3 should be 2.8V.
216	On A23 / A31 / A33 / R40 boards aldo3 is VCC-PLL and AVCC and should
217	be 3.0V.
218	On A80 boards aldo3 is normally not used.
219	On A83T / H8 boards aldo3 is AVCC, VCC-PL, and VCC-LED, and should be
220	3.0V.
221
222config AXP_ALDO4_VOLT
223	int "axp pmic (a)ldo4 voltage"
224	depends on AXP209_POWER
225	default 0 if AXP209_POWER
226	---help---
227	Set the voltage (mV) to program the axp pmic aldo4 at, set to 0 to
228	disable aldo4.
229	On A10(s) / A13 / A20 boards aldo4 should be 2.8V.
230
231config AXP_DLDO1_VOLT
232	int "axp pmic dldo1 voltage"
233	depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
234	default 0
235	---help---
236	Set the voltage (mV) to program the axp pmic dldo1 at, set to 0 to
237	disable dldo1. On sun6i (A31) boards with ethernet dldo1 is often used
238	to power the ethernet phy. On A23, A33 and A80 boards this is often
239	used to power the wifi.
240
241config AXP_DLDO2_VOLT
242	int "axp pmic dldo2 voltage"
243	depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
244	default 3000 if MACH_SUN9I
245	default 0
246	---help---
247	Set the voltage (mV) to program the axp pmic dldo2 at, set to 0 to
248	disable dldo2.
249	On A80 boards dldo2 normally powers the PL pins and should be 3.0V.
250
251config AXP_DLDO3_VOLT
252	int "axp pmic dldo3 voltage"
253	depends on AXP221_POWER || AXP818_POWER
254	default 0
255	---help---
256	Set the voltage (mV) to program the axp pmic dldo3 at, set to 0 to
257	disable dldo3.
258
259config AXP_DLDO4_VOLT
260	int "axp pmic dldo4 voltage"
261	depends on AXP221_POWER || AXP818_POWER
262	default 0
263	---help---
264	Set the voltage (mV) to program the axp pmic dldo4 at, set to 0 to
265	disable dldo4.
266
267config AXP_ELDO1_VOLT
268	int "axp pmic eldo1 voltage"
269	depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
270	default 0
271	---help---
272	Set the voltage (mV) to program the axp pmic eldo1 at, set to 0 to
273	disable eldo1.
274
275config AXP_ELDO2_VOLT
276	int "axp pmic eldo2 voltage"
277	depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
278	default 0
279	---help---
280	Set the voltage (mV) to program the axp pmic eldo2 at, set to 0 to
281	disable eldo2.
282
283config AXP_ELDO3_VOLT
284	int "axp pmic eldo3 voltage"
285	depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
286	default 3000 if MACH_SUN9I
287	default 0
288	---help---
289	Set the voltage (mV) to program the axp pmic eldo3 at, set to 0 to
290	disable eldo3. On some A31(s) tablets it might be used to supply
291	1.2V for the SSD2828 chip (converter of parallel LCD interface
292	into MIPI DSI).
293	On A80 boards it powers the PM pingroup and should be 3.0V.
294
295config AXP_FLDO1_VOLT
296	int "axp pmic fldo1 voltage"
297	depends on AXP818_POWER
298	default 0 if MACH_SUN8I_A83T
299	---help---
300	Set the voltage (mV) to program the axp pmic fldo1 at, set to 0 to
301	disable fldo1.
302	On A83T / H8 boards fldo1 is VCC-HSIC and should be 1.2V if HSIC is
303	used.
304
305config AXP_FLDO2_VOLT
306	int "axp pmic fldo2 voltage"
307	depends on AXP818_POWER
308	default 900 if MACH_SUN8I_A83T
309	---help---
310	Set the voltage (mV) to program the axp pmic fldo2 at, set to 0 to
311	disable fldo2.
312	On A83T / H8 boards fldo2 is VCC-CPUS and should be 0.9V.
313
314config AXP_FLDO3_VOLT
315	int "axp pmic fldo3 voltage"
316	depends on AXP818_POWER
317	default 0
318	---help---
319	Set the voltage (mV) to program the axp pmic fldo3 at, set to 0 to
320	disable fldo3.
321
322config AXP_SW_ON
323	bool "axp pmic sw on"
324	depends on AXP809_POWER || AXP818_POWER
325	default n
326	---help---
327	Enable to turn on axp pmic sw.
328
329config SY8106A_VOUT1_VOLT
330	int "SY8106A pmic VOUT1 voltage"
331	depends on SY8106A_POWER
332	default 1200
333	---help---
334	Set the voltage (mV) to program the SY8106A pmic VOUT1. This
335	is typically used to power the VDD-CPU and should be 1200mV.
336	Values can range from 680mV till 1950mV.
337
338config TWL4030_POWER
339	depends on OMAP34XX
340	bool "Enable driver for TI TWL4030 power management chip"
341	imply CMD_POWEROFF
342	---help---
343	The TWL4030 in a combination audio CODEC/power management with
344	GPIO and it is commonly used with the OMAP3 family of processors
345
346endmenu
347