Commit 894a4b4da7e295a95741c8b0f969e43f8ee239af
Committed by
Stefano Babic
1 parent
0719b16f19
Exists in
v2017.01-smarct4x
and in
25 other branches
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>
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
include/power/pfuze3000_pmic.h
... | ... | @@ -75,5 +75,10 @@ |
75 | 75 | |
76 | 76 | int power_pfuze3000_init(unsigned char bus); |
77 | 77 | |
78 | +/* Voltage Configuration */ | |
79 | +#define PFUZE3000_SW1AB_SETP(x) ((x - 7000) / 250) | |
80 | +#define PFUZE3000_SW3_SETP(x) ((x - 9000) / 500) | |
81 | +#define PFUZE3000_VLDO_SETP(x) ((x - 8000) / 500) | |
82 | + | |
78 | 83 | #endif |