Lines Matching refs:rinfo
89 struct tps80031_regulator_info *rinfo; member
111 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_is_enabled()
115 ri->rinfo->state_reg, ret); in tps80031_reg_is_enabled()
130 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_enable()
134 ri->rinfo->state_reg, ret); in tps80031_reg_enable()
149 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_disable()
153 ri->rinfo->state_reg, ret); in tps80031_reg_disable()
186 if (ri->rinfo->force_reg) { in tps80031_dcdc_set_voltage_sel()
187 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
188 ri->rinfo->force_reg, ®_val); in tps80031_dcdc_set_voltage_sel()
191 ri->rinfo->force_reg, ret); in tps80031_dcdc_set_voltage_sel()
195 ret = tps80031_update(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
196 ri->rinfo->force_reg, vsel, SMPS_VSEL_MASK); in tps80031_dcdc_set_voltage_sel()
200 ri->rinfo->force_reg, ret); in tps80031_dcdc_set_voltage_sel()
204 ret = tps80031_update(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
205 ri->rinfo->volt_reg, vsel, SMPS_VSEL_MASK); in tps80031_dcdc_set_voltage_sel()
208 ri->rinfo->volt_reg, ret); in tps80031_dcdc_set_voltage_sel()
219 if (ri->rinfo->force_reg) { in tps80031_dcdc_get_voltage_sel()
220 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_get_voltage_sel()
221 ri->rinfo->force_reg, &vsel); in tps80031_dcdc_get_voltage_sel()
224 ri->rinfo->force_reg, ret); in tps80031_dcdc_get_voltage_sel()
231 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_get_voltage_sel()
232 ri->rinfo->volt_reg, &vsel); in tps80031_dcdc_get_voltage_sel()
235 ri->rinfo->volt_reg, ret); in tps80031_dcdc_get_voltage_sel()
248 if ((ri->rinfo->desc.id == TPS80031_REGULATOR_LDO2) && in tps80031_ldo_list_voltage()
272 if ((ri->rinfo->desc.id == TPS80031_REGULATOR_LDO2) && in tps80031_ldo_map_voltage()
368 mdelay(DIV_ROUND_UP(ri->rinfo->desc.enable_time, 1000)); in tps80031_vbus_disable()
513 if (ri->rinfo->preq_bit < 0) in tps80031_power_req_config()
517 ri->rinfo->preq_bit, ri->rinfo->state_reg, in tps80031_power_req_config()
518 ri->rinfo->trans_reg); in tps80031_power_req_config()
527 ri->rinfo->trans_reg, TPS80031_TRANS_SLEEP_ON, in tps80031_power_req_config()
531 ri->rinfo->trans_reg, ret); in tps80031_power_req_config()
544 switch (ri->rinfo->desc.id) { in tps80031_regulator_config()
581 ri->rinfo->desc.ops = &tps80031_vbus_sw_ops; in tps80031_regulator_config()
588 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->trans_reg, in tps80031_regulator_config()
622 switch (ri->rinfo->desc.id) { in check_smps_mode_mult()
642 ri->rinfo->desc.min_uV = 600000; in check_smps_mode_mult()
643 ri->rinfo->desc.uV_step = 12500; in check_smps_mode_mult()
644 ri->rinfo->desc.n_voltages = 57; in check_smps_mode_mult()
645 ri->rinfo->desc.vsel_mask = LDO_TRACK_VSEL_MASK; in check_smps_mode_mult()
656 ri->rinfo->desc.min_uV = 607700; in check_smps_mode_mult()
657 ri->rinfo->desc.uV_step = 12660; in check_smps_mode_mult()
660 ri->rinfo->desc.min_uV = 700000; in check_smps_mode_mult()
661 ri->rinfo->desc.uV_step = 12500; in check_smps_mode_mult()
664 ri->rinfo->desc.min_uV = 1852000; in check_smps_mode_mult()
665 ri->rinfo->desc.uV_step = 38600; in check_smps_mode_mult()
668 ri->rinfo->desc.min_uV = 2161000; in check_smps_mode_mult()
669 ri->rinfo->desc.uV_step = 38600; in check_smps_mode_mult()
702 ri->rinfo = &tps80031_rinfo[num]; in tps80031_regulator_probe()
709 config.regmap = tps80031_mfd->regmap[ri->rinfo->volt_id]; in tps80031_regulator_probe()
731 rdev = devm_regulator_register(&pdev->dev, &ri->rinfo->desc, in tps80031_regulator_probe()
736 ri->rinfo->desc.name); in tps80031_regulator_probe()