summaryrefslogtreecommitdiff
path: root/include/power
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2016-09-30 04:04:02 (GMT)
committerSimon Glass <sjg@chromium.org>2016-10-11 16:17:06 (GMT)
commitca1de0b5456e630522c0afe5a556e6851b8afe1e (patch)
tree83f8c8080b644310201e754d4c8d5c98ce7bed53 /include/power
parent08941bb99d0f668273cda13283e43e7ee227474d (diff)
downloadu-boot-fsl-qoriq-ca1de0b5456e630522c0afe5a556e6851b8afe1e.tar.xz
power: pmic: lp873x: Add the base pmic support
Add support to bind the regulators/child nodes with the pmic. Signed-off-by: Keerthy <j-keerthy@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/power')
-rw-r--r--include/power/lp873x.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/power/lp873x.h b/include/power/lp873x.h
new file mode 100644
index 0000000..e0c0711
--- /dev/null
+++ b/include/power/lp873x.h
@@ -0,0 +1,19 @@
+#define LP8732 0x0
+#define LP8733 0x1
+
+#define LP873X_LDO_NUM 2
+#define LP873X_BUCK_NUM 2
+
+/* Drivers name */
+#define LP873X_LDO_DRIVER "lp873x_ldo"
+#define LP873X_BUCK_DRIVER "lp873x_buck"
+
+#define LP873X_BUCK_VOLT_MASK 0xFF
+#define LP873X_BUCK_VOLT_MAX_HEX 0xFF
+#define LP873X_BUCK_VOLT_MAX 3360000
+#define LP873X_BUCK_MODE_MASK 0x1
+
+#define LP873X_LDO_VOLT_MASK 0x1F
+#define LP873X_LDO_VOLT_MAX_HEX 0x19
+#define LP873X_LDO_VOLT_MAX 3300000
+#define LP873X_LDO_MODE_MASK 0x1