diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-12-13 14:02:38 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-01-14 14:56:37 +0100 |
commit | 50e0d5e60b0a4c2c9de5ba332be1c36a31d728d3 (patch) | |
tree | 82b9346c2a4df13eaa3a26e81299e2e24be17a35 /include | |
parent | 1262a85fe36936f404dc2deccc3ebaacebb612c5 (diff) |
sunxi: axp221: Explicitly turn off unused voltages
Explicitly turn off unused voltages, rather then leaving them as is. Likewise
explictly enabled the dcdc convertors, rather then assuming they are already
enabled at boot.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/axp221.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/axp221.h b/include/axp221.h index 8df811a3a4..e9552f65fe 100644 --- a/include/axp221.h +++ b/include/axp221.h @@ -17,6 +17,12 @@ /* Page 0 addresses */ #define AXP221_CHIP_ID 0x03 #define AXP221_OUTPUT_CTRL1 0x10 +#define AXP221_OUTPUT_CTRL1_DCDC0_EN (1 << 0) +#define AXP221_OUTPUT_CTRL1_DCDC1_EN (1 << 1) +#define AXP221_OUTPUT_CTRL1_DCDC2_EN (1 << 2) +#define AXP221_OUTPUT_CTRL1_DCDC3_EN (1 << 3) +#define AXP221_OUTPUT_CTRL1_DCDC4_EN (1 << 4) +#define AXP221_OUTPUT_CTRL1_DCDC5_EN (1 << 5) #define AXP221_OUTPUT_CTRL1_ALDO1_EN (1 << 6) #define AXP221_OUTPUT_CTRL1_ALDO2_EN (1 << 7) #define AXP221_OUTPUT_CTRL2 0x12 @@ -24,7 +30,7 @@ #define AXP221_OUTPUT_CTRL2_DLDO2_EN (1 << 4) #define AXP221_OUTPUT_CTRL2_DLDO3_EN (1 << 5) #define AXP221_OUTPUT_CTRL2_DLDO4_EN (1 << 6) -#define AXP221_OUTPUT_CTRL2_DCDC1_EN (1 << 7) +#define AXP221_OUTPUT_CTRL2_DCDC1SW_EN (1 << 7) #define AXP221_OUTPUT_CTRL3 0x13 #define AXP221_OUTPUT_CTRL3_ALDO3_EN (1 << 7) #define AXP221_DLDO1_CTRL 0x15 |