Lines Matching refs:rinfo
74 struct tps80031_regulator_info *rinfo; member
96 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_is_enabled()
100 ri->rinfo->state_reg, ret); in tps80031_reg_is_enabled()
115 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_enable()
119 ri->rinfo->state_reg, ret); in tps80031_reg_enable()
134 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_disable()
138 ri->rinfo->state_reg, ret); in tps80031_reg_disable()
171 if (ri->rinfo->force_reg) { in tps80031_dcdc_set_voltage_sel()
172 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
173 ri->rinfo->force_reg, ®_val); in tps80031_dcdc_set_voltage_sel()
176 ri->rinfo->force_reg, ret); in tps80031_dcdc_set_voltage_sel()
180 ret = tps80031_update(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
181 ri->rinfo->force_reg, vsel, SMPS_VSEL_MASK); in tps80031_dcdc_set_voltage_sel()
185 ri->rinfo->force_reg, ret); in tps80031_dcdc_set_voltage_sel()
189 ret = tps80031_update(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
190 ri->rinfo->volt_reg, vsel, SMPS_VSEL_MASK); in tps80031_dcdc_set_voltage_sel()
193 ri->rinfo->volt_reg, ret); in tps80031_dcdc_set_voltage_sel()
204 if (ri->rinfo->force_reg) { in tps80031_dcdc_get_voltage_sel()
205 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_get_voltage_sel()
206 ri->rinfo->force_reg, &vsel); in tps80031_dcdc_get_voltage_sel()
209 ri->rinfo->force_reg, ret); in tps80031_dcdc_get_voltage_sel()
216 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_get_voltage_sel()
217 ri->rinfo->volt_reg, &vsel); in tps80031_dcdc_get_voltage_sel()
220 ri->rinfo->volt_reg, ret); in tps80031_dcdc_get_voltage_sel()
233 if ((ri->rinfo->desc.id == TPS80031_REGULATOR_LDO2) && in tps80031_ldo_list_voltage()
257 if ((ri->rinfo->desc.id == TPS80031_REGULATOR_LDO2) && in tps80031_ldo_map_voltage()
353 mdelay(DIV_ROUND_UP(ri->rinfo->desc.enable_time, 1000)); in tps80031_vbus_disable()
498 if (ri->rinfo->preq_bit < 0) in tps80031_power_req_config()
502 ri->rinfo->preq_bit, ri->rinfo->state_reg, in tps80031_power_req_config()
503 ri->rinfo->trans_reg); in tps80031_power_req_config()
512 ri->rinfo->trans_reg, TPS80031_TRANS_SLEEP_ON, in tps80031_power_req_config()
516 ri->rinfo->trans_reg, ret); in tps80031_power_req_config()
529 switch (ri->rinfo->desc.id) { in tps80031_regulator_config()
567 ri->rinfo->desc.ops = &tps80031_vbus_sw_ops; in tps80031_regulator_config()
574 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->trans_reg, in tps80031_regulator_config()
608 switch (ri->rinfo->desc.id) { in check_smps_mode_mult()
628 ri->rinfo->desc.min_uV = 600000; in check_smps_mode_mult()
629 ri->rinfo->desc.uV_step = 12500; in check_smps_mode_mult()
630 ri->rinfo->desc.n_voltages = 57; in check_smps_mode_mult()
631 ri->rinfo->desc.vsel_mask = LDO_TRACK_VSEL_MASK; in check_smps_mode_mult()
642 ri->rinfo->desc.min_uV = 607700; in check_smps_mode_mult()
643 ri->rinfo->desc.uV_step = 12660; in check_smps_mode_mult()
646 ri->rinfo->desc.min_uV = 700000; in check_smps_mode_mult()
647 ri->rinfo->desc.uV_step = 12500; in check_smps_mode_mult()
650 ri->rinfo->desc.min_uV = 1852000; in check_smps_mode_mult()
651 ri->rinfo->desc.uV_step = 38600; in check_smps_mode_mult()
654 ri->rinfo->desc.min_uV = 2161000; in check_smps_mode_mult()
655 ri->rinfo->desc.uV_step = 38600; in check_smps_mode_mult()
688 ri->rinfo = &tps80031_rinfo[num]; in tps80031_regulator_probe()
695 config.regmap = tps80031_mfd->regmap[ri->rinfo->volt_id]; in tps80031_regulator_probe()
717 rdev = devm_regulator_register(&pdev->dev, &ri->rinfo->desc, in tps80031_regulator_probe()
722 ri->rinfo->desc.name); in tps80031_regulator_probe()