Lines Matching refs:p
174 struct pmic *p; in power_init() local
181 p = pmic_get("FSL_PMIC"); in power_init()
182 if (!p) in power_init()
186 pmic_reg_read(p, REG_POWER_MISC, &val); in power_init()
188 pmic_reg_write(p, REG_POWER_MISC, val); in power_init()
191 pmic_reg_read(p, REG_CHARGE, &val); in power_init()
193 pmic_reg_write(p, REG_CHARGE, val); in power_init()
196 pmic_reg_write(p, REG_POWER_MISC, PWUP); in power_init()
199 pmic_reg_read(p, REG_SW_0, &val); in power_init()
201 pmic_reg_write(p, REG_SW_0, val); in power_init()
204 pmic_reg_read(p, REG_SW_1, &val); in power_init()
206 pmic_reg_write(p, REG_SW_1, val); in power_init()
209 pmic_reg_read(p, REG_SW_2, &val); in power_init()
211 pmic_reg_write(p, REG_SW_2, val); in power_init()
219 pmic_reg_read(p, REG_SW_4, &val); in power_init()
224 pmic_reg_write(p, REG_SW_4, val); in power_init()
227 pmic_reg_read(p, REG_SW_5, &val); in power_init()
232 pmic_reg_write(p, REG_SW_5, val); in power_init()
235 pmic_reg_read(p, REG_SETTING_0, &val); in power_init()
238 pmic_reg_write(p, REG_SETTING_0, val); in power_init()
241 pmic_reg_read(p, REG_SETTING_1, &val); in power_init()
244 pmic_reg_write(p, REG_SETTING_1, val); in power_init()
248 pmic_reg_write(p, REG_MODE_1, val); in power_init()
254 pmic_reg_write(p, REG_MODE_1, val); in power_init()