Lines Matching refs:uvolt
159 int num, int uvolt) in get_buck_reg() argument
167 if (uvolt < 1500000) in get_buck_reg()
169 else if (uvolt < 3400000) in get_buck_reg()
180 static int _buck_set_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_value() argument
182 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck, uvolt); in _buck_set_value()
192 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in _buck_set_value()
195 __func__, uvolt, buck + 1, info->vsel_reg, mask, val); in _buck_set_value()
224 static int _buck_set_suspend_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_suspend_value() argument
226 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck, uvolt); in _buck_set_suspend_value()
236 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in _buck_set_suspend_value()
239 __func__, uvolt, buck + 1, info->vsel_sleep_reg, mask, val); in _buck_set_suspend_value()
384 int num, int uvolt) in get_ldo_reg() argument
390 if (uvolt < 3400000) in get_ldo_reg()
400 int num, int uvolt) in get_pldo_reg() argument
406 if (uvolt < 3400000) in get_pldo_reg()
608 static int buck_set_value(struct udevice *dev, int uvolt) in buck_set_value() argument
612 return _buck_set_value(dev->parent, buck, uvolt); in buck_set_value()
644 static int buck_set_suspend_value(struct udevice *dev, int uvolt) in buck_set_suspend_value() argument
648 return _buck_set_suspend_value(dev->parent, buck, uvolt); in buck_set_suspend_value()
704 static int ldo_set_value(struct udevice *dev, int uvolt) in ldo_set_value() argument
707 const struct rk8xx_reg_info *info = get_ldo_reg(dev->parent, ldo, uvolt); in ldo_set_value()
717 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in ldo_set_value()
720 __func__, uvolt, ldo + 1, info->vsel_reg, mask, val); in ldo_set_value()
743 static int pldo_set_value(struct udevice *dev, int uvolt) in pldo_set_value() argument
746 const struct rk8xx_reg_info *info = get_pldo_reg(dev->parent, ldo, uvolt); in pldo_set_value()
756 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in pldo_set_value()
759 __func__, uvolt, ldo + 1, info->vsel_reg, mask, val); in pldo_set_value()
764 static int ldo_set_suspend_value(struct udevice *dev, int uvolt) in ldo_set_suspend_value() argument
767 const struct rk8xx_reg_info *info = get_ldo_reg(dev->parent, ldo, uvolt); in ldo_set_suspend_value()
777 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in ldo_set_suspend_value()
780 __func__, uvolt, ldo + 1, info->vsel_sleep_reg, mask, val); in ldo_set_suspend_value()
846 static int pldo_set_suspend_value(struct udevice *dev, int uvolt) in pldo_set_suspend_value() argument
849 const struct rk8xx_reg_info *info = get_pldo_reg(dev->parent, ldo, uvolt);; in pldo_set_suspend_value()
859 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in pldo_set_suspend_value()