summaryrefslogtreecommitdiff
path: root/src/drivers/xpowers/axp209/axp209.h
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2013-12-30 01:21:55 -0500
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-01-13 04:01:48 +0100
commit428eeff923f8b4e18f4df093f8e8e389311cce3a (patch)
treeb1399c90e9f61d2f6581c1d62f91f1a9ecb4148c /src/drivers/xpowers/axp209/axp209.h
parent066dcec2fe3137bba049cbec669f57860ee21bbd (diff)
downloadcoreboot-428eeff923f8b4e18f4df093f8e8e389311cce3a.tar.xz
drivers: Add support for X-Powers AXP209 PMU
Change-Id: I1de0e656a38527b172af1d0b5bcd97acbfc03bf0 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/4591 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/drivers/xpowers/axp209/axp209.h')
-rw-r--r--src/drivers/xpowers/axp209/axp209.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/drivers/xpowers/axp209/axp209.h b/src/drivers/xpowers/axp209/axp209.h
new file mode 100644
index 0000000000..1d369f590c
--- /dev/null
+++ b/src/drivers/xpowers/axp209/axp209.h
@@ -0,0 +1,17 @@
+/*
+ * Definitions for X-Powers AXP 209 Power Management Unit
+ *
+ * Copyright (C) 2013 Alexandru Gagniuc <mr.nuke.me@gmail.com>
+ * Subject to the GNU GPL v2, or (at your option) any later version.
+ */
+
+#include <types.h>
+
+#define AXP209_I2C_ADDR (0x68 >> 1)
+
+enum cb_err axp209_init(u8 bus);
+enum cb_err axp209_set_dcdc2_voltage(u8 bus, u16 millivolts);
+enum cb_err axp209_set_dcdc3_voltage(u8 bus, u16 millivolts);
+enum cb_err axp209_set_ldo2_voltage(u8 bus, u16 millivolts);
+enum cb_err axp209_set_ldo3_voltage(u8 bus, u16 millivolts);
+enum cb_err axp209_set_ldo4_voltage(u8 bus, u16 millivolts);