Lines Matching refs:p

101 	struct pmic *p;  in power_init_board()  local
109 p = pmic_get("PFUZE3000"); in power_init_board()
110 ret = pmic_probe(p); in power_init_board()
114 pmic_reg_read(p, PFUZE3000_DEVICEID, &reg); in power_init_board()
115 pmic_reg_read(p, PFUZE3000_REVID, &rev_id); in power_init_board()
119 pmic_reg_read(p, PFUZE3000_LDOGCTL, &reg); in power_init_board()
121 ret = pmic_reg_write(p, PFUZE3000_LDOGCTL, reg); in power_init_board()
125 ret = pmic_reg_write(p, PFUZE3000_SW1AMODE, 0xc); in power_init_board()
129 ret = pmic_reg_write(p, PFUZE3000_SW1BMODE, 0xc); in power_init_board()
133 ret = pmic_reg_write(p, PFUZE3000_SW2MODE, 0xc); in power_init_board()
137 ret = pmic_reg_write(p, PFUZE3000_SW3MODE, 0xc); in power_init_board()
142 pmic_reg_read(p, PFUZE3000_SW1ASTBY, &reg); in power_init_board()
145 ret = pmic_reg_write(p, PFUZE3000_SW1ASTBY, reg); in power_init_board()
150 pmic_reg_read(p, PFUZE3000_SW1BSTBY, &reg); in power_init_board()
153 ret = pmic_reg_write(p, PFUZE3000_SW1BSTBY, reg); in power_init_board()
158 pmic_reg_read(p, PFUZE3000_SW1ACONF, &reg); in power_init_board()
161 ret = pmic_reg_write(p, PFUZE3000_SW1ACONF, reg); in power_init_board()
166 pmic_reg_read(p, PFUZE3000_SW1BCONF, &reg); in power_init_board()
169 ret = pmic_reg_write(p, PFUZE3000_SW1BCONF, reg); in power_init_board()
174 pmic_reg_read(p, PFUZE3000_SW1AVOLT, &reg); in power_init_board()
177 ret = pmic_reg_write(p, PFUZE3000_SW1AVOLT, reg); in power_init_board()
182 pmic_reg_read(p, PFUZE3000_SW1BVOLT, &reg); in power_init_board()
185 ret = pmic_reg_write(p, PFUZE3000_SW1BVOLT, reg); in power_init_board()
190 pmic_reg_read(p, PFUZE3000_SW3VOLT, &reg); in power_init_board()
193 ret = pmic_reg_write(p, PFUZE3000_SW3VOLT, reg); in power_init_board()
198 pmic_reg_read(p, PFUZE3000_VLDO2CTL, &reg); in power_init_board()
203 ret = pmic_reg_write(p, PFUZE3000_VLDO2CTL, reg); in power_init_board()