summaryrefslogtreecommitdiff
path: root/include/power
diff options
context:
space:
mode:
authorBreno Lima <breno.lima@nxp.com>2016-12-06 15:38:24 -0200
committerStefano Babic <sbabic@denx.de>2016-12-16 10:21:29 +0100
commit894a4b4da7e295a95741c8b0f969e43f8ee239af (patch)
tree9389ad1b192e3f0090d86c4cd6ff4e9041db8d61 /include/power
parent0719b16f1990fcf911d81cb842508d1ff4580ff4 (diff)
power: pmic: Add Voltage configuration macro
Add pfuze3000 voltage configuration macro for SW1AB, SW3 and VLDO1/2 according to tables 53, 57 and 62 on PF3000 datasheet. Signed-off-by: Breno Lima <breno.lima@nxp.com>
Diffstat (limited to 'include/power')
-rw-r--r--include/power/pfuze3000_pmic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/power/pfuze3000_pmic.h b/include/power/pfuze3000_pmic.h
index e8b892ba889..7d66ba48d4d 100644
--- a/include/power/pfuze3000_pmic.h
+++ b/include/power/pfuze3000_pmic.h
@@ -75,4 +75,9 @@ enum {
int power_pfuze3000_init(unsigned char bus);
+/* Voltage Configuration */
+#define PFUZE3000_SW1AB_SETP(x) ((x - 7000) / 250)
+#define PFUZE3000_SW3_SETP(x) ((x - 9000) / 500)
+#define PFUZE3000_VLDO_SETP(x) ((x - 8000) / 500)
+
#endif