Lines Matching refs:uvolt
223 int num, int uvolt) in get_buck_reg() argument
233 if (uvolt <= 1450000) in get_buck_reg()
235 else if (uvolt <= 2200000) in get_buck_reg()
247 if (uvolt < 1500000) in get_buck_reg()
249 else if (uvolt < 2400000) in get_buck_reg()
254 if (uvolt < 1500000) in get_buck_reg()
256 else if (uvolt < 3400000) in get_buck_reg()
262 if (uvolt < 1800000) in get_buck_reg()
264 else if (uvolt < 2800000) in get_buck_reg()
266 else if (uvolt < 3300000) in get_buck_reg()
278 static int _buck_set_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_value() argument
280 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck, uvolt); in _buck_set_value()
291 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in _buck_set_value()
294 __func__, uvolt, buck+1, info->vsel_reg, mask, val); in _buck_set_value()
363 static int _buck_set_suspend_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_suspend_value() argument
365 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck, uvolt); in _buck_set_suspend_value()
375 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in _buck_set_suspend_value()
378 __func__, uvolt, buck+1, info->vsel_sleep_reg, mask, val); in _buck_set_suspend_value()
587 int num, int uvolt) in get_ldo_reg() argument
597 if (uvolt < 3400000) in get_ldo_reg()
816 static int buck_set_value(struct udevice *dev, int uvolt) in buck_set_value() argument
820 return _buck_set_value(dev->parent, buck, uvolt); in buck_set_value()
852 static int buck_set_suspend_value(struct udevice *dev, int uvolt) in buck_set_suspend_value() argument
856 return _buck_set_suspend_value(dev->parent, buck, uvolt); in buck_set_suspend_value()
911 static int ldo_set_value(struct udevice *dev, int uvolt) in ldo_set_value() argument
914 const struct rk8xx_reg_info *info = get_ldo_reg(dev->parent, ldo, uvolt); in ldo_set_value()
924 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in ldo_set_value()
927 __func__, uvolt, ldo+1, info->vsel_reg, mask, val); in ldo_set_value()
932 static int ldo_set_suspend_value(struct udevice *dev, int uvolt) in ldo_set_suspend_value() argument
935 const struct rk8xx_reg_info *info = get_ldo_reg(dev->parent, ldo, uvolt); in ldo_set_suspend_value()
945 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in ldo_set_suspend_value()
948 __func__, uvolt, ldo+1, info->vsel_sleep_reg, mask, val); in ldo_set_suspend_value()
1057 static int switch_set_suspend_value(struct udevice *dev, int uvolt) in switch_set_suspend_value() argument
1158 static int switch_set_value(struct udevice *dev, int uvolt) in switch_set_value() argument
1255 int rk8xx_spl_configure_buck(struct udevice *pmic, int buck, int uvolt) in rk8xx_spl_configure_buck() argument
1259 ret = _buck_set_value(pmic, buck, uvolt); in rk8xx_spl_configure_buck()
1277 int rk818_spl_configure_usb_chrg_shutdown(struct udevice *pmic, int uvolt) in rk818_spl_configure_usb_chrg_shutdown() argument
1282 if (uvolt <= rk818_chrg_shutdown_vsel_array[i]) in rk818_spl_configure_usb_chrg_shutdown()