Lines Matching refs:p
199 struct pmic *p; in power_init() local
206 p = pmic_get("DIALOG_PMIC"); in power_init()
207 if (!p) in power_init()
214 ret = pmic_reg_write(p, DA9053_BUCKCORE_REG, val); in power_init()
220 pmic_reg_read(p, DA9053_SUPPLY_REG, &val); in power_init()
222 ret = pmic_reg_write(p, DA9053_SUPPLY_REG, val); in power_init()
229 ret = pmic_reg_write(p, DA9053_BUCKPRO_REG, 0x62); in power_init()
235 ret = pmic_reg_write(p, DA9053_SUPPLY_REG, 0x62); in power_init()
249 p = pmic_get("FSL_PMIC"); in power_init()
250 if (!p) in power_init()
256 pmic_reg_read(p, REG_SW_0, &val); in power_init()
258 ret = pmic_reg_write(p, REG_SW_0, val); in power_init()
265 pmic_reg_read(p, REG_SW_1, &val); in power_init()
267 ret = pmic_reg_write(p, REG_SW_1, val); in power_init()
274 pmic_reg_read(p, REG_POWER_CTL2, &val); in power_init()
276 ret = pmic_reg_write(p, REG_POWER_CTL2, val); in power_init()
283 pmic_reg_read(p, REG_MODE_0, &val); in power_init()
285 ret = pmic_reg_write(p, REG_MODE_0, val); in power_init()
293 ret = pmic_reg_write(p, SWBST_CTRL, val); in power_init()