2 * Copyright 2014 Freescale Semiconductor, Inc.
4 * SPDX-License-Identifier: GPL-2.0+
8 #include <power/pmic.h>
9 #include <power/pfuze100_pmic.h>
11 struct pmic *pfuze_common_init(unsigned char i2cbus)
17 ret = power_pfuze100_init(i2cbus);
21 p = pmic_get("PFUZE100");
26 pmic_reg_read(p, PFUZE100_DEVICEID, ®);
27 printf("PMIC: PFUZE100 ID=0x%02x\n", reg);
29 /* Set SW1AB stanby volage to 0.975V */
30 pmic_reg_read(p, PFUZE100_SW1ABSTBY, ®);
31 reg &= ~SW1x_STBY_MASK;
33 pmic_reg_write(p, PFUZE100_SW1ABSTBY, reg);
35 /* Set SW1AB/VDDARM step ramp up time from 16us to 4us/25mV */
36 pmic_reg_read(p, PUZE_100_SW1ABCONF, ®);
37 reg &= ~SW1xCONF_DVSSPEED_MASK;
38 reg |= SW1xCONF_DVSSPEED_4US;
39 pmic_reg_write(p, PUZE_100_SW1ABCONF, reg);
41 /* Set SW1C standby voltage to 0.975V */
42 pmic_reg_read(p, PFUZE100_SW1CSTBY, ®);
43 reg &= ~SW1x_STBY_MASK;
45 pmic_reg_write(p, PFUZE100_SW1CSTBY, reg);
47 /* Set SW1C/VDDSOC step ramp up time from 16us to 4us/25mV */
48 pmic_reg_read(p, PFUZE100_SW1CCONF, ®);
49 reg &= ~SW1xCONF_DVSSPEED_MASK;
50 reg |= SW1xCONF_DVSSPEED_4US;
51 pmic_reg_write(p, PFUZE100_SW1CCONF, reg);