summaryrefslogtreecommitdiffstats
path: root/include/axp818.h
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-05-02 10:28:12 +0800
committerHans de Goede <hdegoede@redhat.com>2016-05-25 17:52:39 +0200
commit15278ccb848dbcd8825874f943bc21afda987219 (patch)
tree98526b20799ef16c414bf990e99dc26899d4e967 /include/axp818.h
parenta696253c1daf3424408868fc76840c83a896acfe (diff)
downloadblackbird-obmc-uboot-15278ccb848dbcd8825874f943bc21afda987219.tar.gz
blackbird-obmc-uboot-15278ccb848dbcd8825874f943bc21afda987219.zip
sunxi: power: axp818: Add support for switch SW
The AXP818 has a switchable output, SW. This is commonly used for controlling power to the LCD backlight. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/axp818.h')
-rw-r--r--include/axp818.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/axp818.h b/include/axp818.h
index 5630eed04d..f7f343a194 100644
--- a/include/axp818.h
+++ b/include/axp818.h
@@ -24,6 +24,7 @@
#define AXP818_OUTPUT_CTRL2_DLDO2_EN (1 << 4)
#define AXP818_OUTPUT_CTRL2_DLDO3_EN (1 << 5)
#define AXP818_OUTPUT_CTRL2_DLDO4_EN (1 << 6)
+#define AXP818_OUTPUT_CTRL2_SW_EN (1 << 7)
#define AXP818_OUTPUT_CTRL3 0x13
#define AXP818_OUTPUT_CTRL3_FLDO1_EN (1 << 2)
#define AXP818_OUTPUT_CTRL3_FLDO2_EN (1 << 3)
OpenPOWER on IntegriCloud