summaryrefslogtreecommitdiff
path: root/src/drivers/xpowers/axp209/chip.h
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-01-09 20:07:10 -0600
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-01-13 04:02:12 +0100
commit4d3a89d72a9def26c9d44d0bbdb40165d24a9417 (patch)
treebb2fdf967e3f8c32204b9441e3bdb0453abd4c2e /src/drivers/xpowers/axp209/chip.h
parent428eeff923f8b4e18f4df093f8e8e389311cce3a (diff)
downloadcoreboot-4d3a89d72a9def26c9d44d0bbdb40165d24a9417.tar.xz
xpowers/axp209: Allow voltages to be sepecified in devicetree.cb
This allows system voltages to be specified uniformly, rather than hardcoding them for each board. This will be used by cubieboard in an upcoming patch. Change-Id: I9dc2d3281d076c359c3fad13688649f7d36c0001 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/4637 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/drivers/xpowers/axp209/chip.h')
-rw-r--r--src/drivers/xpowers/axp209/chip.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/drivers/xpowers/axp209/chip.h b/src/drivers/xpowers/axp209/chip.h
new file mode 100644
index 0000000000..c19253d6b5
--- /dev/null
+++ b/src/drivers/xpowers/axp209/chip.h
@@ -0,0 +1,21 @@
+/*
+ * X-Powers AXP 209 devicetree.cb interface
+ *
+ * Copyright (C) 2013 Alexandru Gagniuc <mr.nuke.me@gmail.com>
+ * Subject to the GNU GPL v2, or (at your option) any later version.
+ */
+
+#ifndef AXP209_CHIP_H
+#define AXP209_CHIP_H
+
+#include <types.h>
+
+struct drivers_xpowers_axp209_config {
+ u16 dcdc2_voltage_mv; /**< DCDC2 converter voltage output */
+ u16 dcdc3_voltage_mv; /**< DCDC3 converter voltage output */
+ u16 ldo2_voltage_mv; /**< LDO2 regulator voltage output */
+ u16 ldo3_voltage_mv; /**< LDO3 regulator voltage output */
+ u16 ldo4_voltage_mv; /**< LDO4 regulator voltage output */
+};
+
+#endif /* AXP209_CHIP_H */