Lines Matching refs:uV
56 static int lp87565_buck_volt2val(int uV)
58 if (uV > LP87565_BUCK_VOLT_MAX)
60 else if (uV > 1400000)
61 return (uV - 1420000) / 20000 + 0x9E;
62 else if (uV > 730000)
63 return (uV - 735000) / 5000 + 0x18;
64 else if (uV >= 500000)
65 return (uV - 500000) / 10000;
84 static int lp87565_buck_val(struct udevice *dev, int op, int *uV)
93 *uV = 0;
106 *uV = ret;
111 hex = lp87565_buck_volt2val(*uV);
151 int uV;
154 ret = lp87565_buck_val(dev, PMIC_OP_GET, &uV);
158 return uV;
161 static int buck_set_value(struct udevice *dev, int uV)
163 return lp87565_buck_val(dev, PMIC_OP_SET, &uV);