Przemyslaw Marczak | 9a8bc95 | 2015-04-20 20:07:41 +0200 | [diff] [blame] | 1 | menu "Power" |
| 2 | |
| 3 | source "drivers/power/pmic/Kconfig" |
| 4 | |
Przemyslaw Marczak | 08edd00 | 2015-04-20 20:07:42 +0200 | [diff] [blame] | 5 | source "drivers/power/regulator/Kconfig" |
| 6 | |
Hans de Goede | 70ce2c8 | 2015-09-30 15:12:30 +0200 | [diff] [blame^] | 7 | choice |
| 8 | prompt "Select Sunxi PMIC Variant" |
| 9 | depends on ARCH_SUNXI |
| 10 | default AXP209_POWER if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I |
| 11 | default AXP221_POWER if MACH_SUN6I || MACH_SUN8I |
| 12 | |
| 13 | config SUNXI_NO_PMIC |
| 14 | boolean "board without a pmic" |
| 15 | ---help--- |
| 16 | Select this for boards which do not use a PMIC. |
| 17 | |
| 18 | config AXP152_POWER |
| 19 | boolean "axp152 pmic support" |
| 20 | depends on MACH_SUN5I |
| 21 | ---help--- |
| 22 | Select this to enable support for the axp152 pmic found on most |
| 23 | A10s boards. |
| 24 | |
| 25 | config AXP209_POWER |
| 26 | boolean "axp209 pmic support" |
| 27 | depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I |
| 28 | ---help--- |
| 29 | Select this to enable support for the axp209 pmic found on most |
| 30 | A10, A13 and A20 boards. |
| 31 | |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 32 | config AXP221_POWER |
Hans de Goede | 1dd334b | 2014-11-29 23:54:25 +0100 | [diff] [blame] | 33 | boolean "axp221 / axp223 pmic support" |
| 34 | depends on MACH_SUN6I || MACH_SUN8I |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 35 | ---help--- |
Hans de Goede | 70ce2c8 | 2015-09-30 15:12:30 +0200 | [diff] [blame^] | 36 | Select this to enable support for the axp221/axp223 pmic found on most |
| 37 | A23 and A31 boards. |
| 38 | |
| 39 | endchoice |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 40 | |
Hans de Goede | 7865548 | 2014-12-13 14:12:06 +0100 | [diff] [blame] | 41 | config AXP221_DCDC1_VOLT |
| 42 | int "axp221 dcdc1 voltage" |
| 43 | depends on AXP221_POWER |
| 44 | default 3000 |
| 45 | ---help--- |
| 46 | Set the voltage (mV) to program the axp221 dcdc1 at, set to 0 to |
| 47 | disable dcdc1. This is typically used as generic 3.3V IO voltage for |
| 48 | things like GPIO-s, sdcard interfaces, etc. On most boards this is |
| 49 | undervolted to 3.0V to safe battery. |
| 50 | |
Hans de Goede | c6c47c2 | 2015-08-14 16:19:34 +0200 | [diff] [blame] | 51 | config AXP221_DCDC2_VOLT |
| 52 | int "axp221 dcdc2 voltage" |
| 53 | depends on AXP221_POWER |
| 54 | default 1200 |
| 55 | ---help--- |
| 56 | Set the voltage (mV) to program the axp221 dcdc2 at, set to 0 to |
| 57 | disable dcdc2. On A31 boards this is typically used for VDD-GPU, |
| 58 | on A23/A33 for VDD-SYS, this should normally be set to 1.2V. |
| 59 | |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 60 | config AXP221_DLDO1_VOLT |
| 61 | int "axp221 dldo1 voltage" |
| 62 | depends on AXP221_POWER |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 63 | default 0 |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 64 | ---help--- |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 65 | Set the voltage (mV) to program the axp221 dldo1 at, set to 0 to |
Hans de Goede | 75916ff | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 66 | disable dldo1. On sun6i (A31) boards with ethernet this is often used |
| 67 | to power the ethernet phy. On sun8i (A23) boards this is often used to |
| 68 | power the wifi. |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 69 | |
| 70 | config AXP221_DLDO4_VOLT |
| 71 | int "axp221 dldo4 voltage" |
| 72 | depends on AXP221_POWER |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 73 | default 0 |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 74 | ---help--- |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 75 | Set the voltage (mV) to program the axp221 dldo4 at, set to 0 to |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 76 | disable dldo4. |
| 77 | |
| 78 | config AXP221_ALDO1_VOLT |
| 79 | int "axp221 aldo1 voltage" |
| 80 | depends on AXP221_POWER |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 81 | default 0 |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 82 | ---help--- |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 83 | Set the voltage (mV) to program the axp221 aldo1 at, set to 0 to |
Hans de Goede | 75916ff | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 84 | disable aldo1. On sun6i (A31) boards which have a wifi module this is |
| 85 | often used to power the wifi module. |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 86 | |
| 87 | config AXP221_ALDO2_VOLT |
| 88 | int "axp221 aldo2 voltage" |
| 89 | depends on AXP221_POWER |
Chen-Yu Tsai | 1413574 | 2015-01-03 10:17:24 +0800 | [diff] [blame] | 90 | default 0 if MACH_SUN6I |
Hans de Goede | 75916ff | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 91 | default 2500 if MACH_SUN8I |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 92 | ---help--- |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 93 | Set the voltage (mV) to program the axp221 aldo2 at, set to 0 to |
Chen-Yu Tsai | 1413574 | 2015-01-03 10:17:24 +0800 | [diff] [blame] | 94 | disable aldo2. On sun6i (A31) boards this is typically unused and |
| 95 | should be disabled, if it is used for LPDDR2 it should be set to 1.8V. |
| 96 | On sun8i (A23) this is typically connected to VDD-DLL and must be set |
| 97 | to 2.5V. |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 98 | |
| 99 | config AXP221_ALDO3_VOLT |
| 100 | int "axp221 aldo3 voltage" |
| 101 | depends on AXP221_POWER |
Hans de Goede | 75916ff | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 102 | default 3000 |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 103 | ---help--- |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 104 | Set the voltage (mV) to program the axp221 aldo3 at, set to 0 to |
Hans de Goede | 75916ff | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 105 | disable aldo3. This is typically connected to VCC-PLL and AVCC and |
| 106 | must be set to 3V. |
Siarhei Siamashka | 7e4eb6c | 2015-01-19 05:23:30 +0200 | [diff] [blame] | 107 | |
| 108 | config AXP221_ELDO3_VOLT |
| 109 | int "axp221 eldo3 voltage" |
| 110 | depends on AXP221_POWER |
| 111 | default 0 |
| 112 | ---help--- |
| 113 | Set the voltage (mV) to program the axp221 eldo3 at, set to 0 to |
| 114 | disable eldo3. On some A31(s) tablets it might be used to supply |
| 115 | 1.2V for the SSD2828 chip (converter of parallel LCD interface |
| 116 | into MIPI DSI). |
Przemyslaw Marczak | 9a8bc95 | 2015-04-20 20:07:41 +0200 | [diff] [blame] | 117 | |
| 118 | endmenu |