summaryrefslogtreecommitdiffstats
path: root/include/axp209.h
diff options
context:
space:
mode:
authorHenrik Nordstrom <henrik@henriknordstrom.net>2014-06-13 22:55:50 +0200
committerIan Campbell <ijc@hellion.org.uk>2014-07-18 19:42:10 +0100
commit14bc66bd9a1d8073a12c6e785ab379909f620356 (patch)
tree6c3afe5e3736d14bae914b2f2b03996122233f2b /include/axp209.h
parent6620377e4b8be3c232c59d673efcd673c30bc69f (diff)
downloadtalos-obmc-uboot-14bc66bd9a1d8073a12c6e785ab379909f620356.tar.gz
talos-obmc-uboot-14bc66bd9a1d8073a12c6e785ab379909f620356.zip
sunxi: Add axp209 pmic support
Add support for the x-powers axp209 pmic which is found on most A10, A13 and A20 boards. And enable AXP209 support for the Cubietruck and Cubieboard boards. Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'include/axp209.h')
-rw-r--r--include/axp209.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/axp209.h b/include/axp209.h
new file mode 100644
index 0000000000..21efce64bb
--- /dev/null
+++ b/include/axp209.h
@@ -0,0 +1,14 @@
+/*
+ * (C) Copyright 2012 Henrik Nordstrom <henrik@henriknordstrom.net>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+extern int axp209_set_dcdc2(int mvolt);
+extern int axp209_set_dcdc3(int mvolt);
+extern int axp209_set_ldo2(int mvolt);
+extern int axp209_set_ldo3(int mvolt);
+extern int axp209_set_ldo4(int mvolt);
+extern int axp209_init(void);
+extern int axp209_poweron_by_dc(void);
+extern int axp209_power_button(void);
OpenPOWER on IntegriCloud