Lines Matching refs:uvolt

220 						 int num, int uvolt)  in get_buck_reg()  argument
230 if (uvolt <= 1450000) in get_buck_reg()
232 else if (uvolt <= 2200000) in get_buck_reg()
244 if (uvolt < 1500000) in get_buck_reg()
246 else if (uvolt < 2400000) in get_buck_reg()
251 if (uvolt < 1500000) in get_buck_reg()
253 else if (uvolt < 3400000) in get_buck_reg()
259 if (uvolt < 1800000) in get_buck_reg()
261 else if (uvolt < 2800000) in get_buck_reg()
263 else if (uvolt < 3300000) in get_buck_reg()
275 static int _buck_set_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_value() argument
277 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck, uvolt); in _buck_set_value()
288 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in _buck_set_value()
291 __func__, uvolt, buck + 1, info->vsel_reg, mask, val); in _buck_set_value()
361 static int _buck_set_suspend_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_suspend_value() argument
363 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck, uvolt); in _buck_set_suspend_value()
373 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in _buck_set_suspend_value()
376 __func__, uvolt, buck + 1, info->vsel_sleep_reg, mask, val); in _buck_set_suspend_value()
502 int num, int uvolt) in get_ldo_reg() argument
512 if (uvolt < 3400000) in get_ldo_reg()
721 static int buck_set_value(struct udevice *dev, int uvolt) in buck_set_value() argument
725 return _buck_set_value(dev->parent, buck, uvolt); in buck_set_value()
748 static int buck_set_suspend_value(struct udevice *dev, int uvolt) in buck_set_suspend_value() argument
752 return _buck_set_suspend_value(dev->parent, buck, uvolt); in buck_set_suspend_value()
800 static int ldo_set_value(struct udevice *dev, int uvolt) in ldo_set_value() argument
803 const struct rk8xx_reg_info *info = get_ldo_reg(dev->parent, ldo, uvolt); in ldo_set_value()
813 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in ldo_set_value()
816 __func__, uvolt, ldo + 1, info->vsel_reg, mask, val); in ldo_set_value()
821 static int ldo_set_suspend_value(struct udevice *dev, int uvolt) in ldo_set_suspend_value() argument
824 const struct rk8xx_reg_info *info = get_ldo_reg(dev->parent, ldo, uvolt); in ldo_set_suspend_value()
834 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in ldo_set_suspend_value()
837 __func__, uvolt, ldo + 1, info->vsel_sleep_reg, mask, val); in ldo_set_suspend_value()
946 static int switch_set_suspend_value(struct udevice *dev, int uvolt) in switch_set_suspend_value() argument
1030 static int switch_set_value(struct udevice *dev, int uvolt) in switch_set_value() argument
1126 int rk8xx_spl_configure_buck(struct udevice *pmic, int buck, int uvolt) in rk8xx_spl_configure_buck() argument
1130 ret = _buck_set_value(pmic, buck, uvolt); in rk8xx_spl_configure_buck()
1148 int rk818_spl_configure_usb_chrg_shutdown(struct udevice *pmic, int uvolt) in rk818_spl_configure_usb_chrg_shutdown() argument
1153 if (uvolt <= rk818_chrg_shutdown_vsel_array[i]) in rk818_spl_configure_usb_chrg_shutdown()