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