xref: /rk3399_rockchip-uboot/drivers/power/Kconfig (revision 4d9057e82be11a862db411c4867e859fe0d4ca2a)
1menu "Power"
2
3source "drivers/power/pmic/Kconfig"
4
5config AXP221_POWER
6	boolean "axp221 / axp223 pmic support"
7	depends on MACH_SUN6I || MACH_SUN8I
8	default y
9	---help---
10	Say y here to enable support for the axp221 / axp223 pmic found on most
11	sun6i (A31) / sun8i (A23) boards.
12
13config AXP221_DCDC1_VOLT
14	int "axp221 dcdc1 voltage"
15	depends on AXP221_POWER
16	default 3000
17	---help---
18	Set the voltage (mV) to program the axp221 dcdc1 at, set to 0 to
19	disable dcdc1. This is typically used as generic 3.3V IO voltage for
20	things like GPIO-s, sdcard interfaces, etc. On most boards this is
21	undervolted to 3.0V to safe battery.
22
23config AXP221_DLDO1_VOLT
24	int "axp221 dldo1 voltage"
25	depends on AXP221_POWER
26	default 0
27	---help---
28	Set the voltage (mV) to program the axp221 dldo1 at, set to 0 to
29	disable dldo1. On sun6i (A31) boards with ethernet this is often used
30	to power the ethernet phy. On sun8i (A23) boards this is often used to
31	power the wifi.
32
33config AXP221_DLDO4_VOLT
34	int "axp221 dldo4 voltage"
35	depends on AXP221_POWER
36	default 0
37	---help---
38	Set the voltage (mV) to program the axp221 dldo4 at, set to 0 to
39	disable dldo4.
40
41config AXP221_ALDO1_VOLT
42	int "axp221 aldo1 voltage"
43	depends on AXP221_POWER
44	default 0
45	---help---
46	Set the voltage (mV) to program the axp221 aldo1 at, set to 0 to
47	disable aldo1. On sun6i (A31) boards which have a wifi module this is
48	often used to power the wifi module.
49
50config AXP221_ALDO2_VOLT
51	int "axp221 aldo2 voltage"
52	depends on AXP221_POWER
53	default 0 if MACH_SUN6I
54	default 2500 if MACH_SUN8I
55	---help---
56	Set the voltage (mV) to program the axp221 aldo2 at, set to 0 to
57	disable aldo2. On sun6i (A31) boards this is typically unused and
58	should be disabled, if it is used for LPDDR2 it should be set to 1.8V.
59	On sun8i (A23) this is typically connected to VDD-DLL and must be set
60	to 2.5V.
61
62config AXP221_ALDO3_VOLT
63	int "axp221 aldo3 voltage"
64	depends on AXP221_POWER
65	default 3000
66	---help---
67	Set the voltage (mV) to program the axp221 aldo3 at, set to 0 to
68	disable aldo3. This is typically connected to VCC-PLL and AVCC and
69	must be set to 3V.
70
71config AXP221_ELDO3_VOLT
72	int "axp221 eldo3 voltage"
73	depends on AXP221_POWER
74	default 0
75	---help---
76	Set the voltage (mV) to program the axp221 eldo3 at, set to 0 to
77	disable eldo3. On some A31(s) tablets it might be used to supply
78	1.2V for the SSD2828 chip (converter of parallel LCD interface
79	into MIPI DSI).
80
81endmenu
82