mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-22 12:23:12 +01:00
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>
This commit is contained in:
parent
0719b16f19
commit
894a4b4da7
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue