Lines Matching refs:buck
101 static int _buck_set_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_value() argument
103 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck - 1); in _buck_set_value()
116 static int _buck_set_enable(struct udevice *pmic, int buck, bool enable) in _buck_set_enable() argument
121 buck--; in _buck_set_enable()
122 mask = 1 << buck; in _buck_set_enable()
124 ret = pmic_clrsetbits(pmic, REG_DCDC_ILMAX, 0, 3 << (buck * 2)); in _buck_set_enable()
127 ret = pmic_clrsetbits(pmic, REG_DCDC_UV_ACT, 1 << buck, 0); in _buck_set_enable()
150 int buck = dev->driver_data - 1; in buck_get_value() local
151 const struct rk8xx_reg_info *info = get_buck_reg(dev->parent, buck); in buck_get_value()
167 int buck = dev->driver_data; in buck_set_value() local
169 return _buck_set_value(dev->parent, buck, uvolt); in buck_set_value()
174 int buck = dev->driver_data; in buck_set_enable() local
176 return _buck_set_enable(dev->parent, buck, enable); in buck_set_enable()
181 int buck = dev->driver_data - 1; in buck_get_enable() local
185 mask = 1 << buck; in buck_get_enable()
356 int rk8xx_spl_configure_buck(struct udevice *pmic, int buck, int uvolt) in rk8xx_spl_configure_buck() argument
360 ret = _buck_set_value(pmic, buck, uvolt); in rk8xx_spl_configure_buck()
364 return _buck_set_enable(pmic, buck, true); in rk8xx_spl_configure_buck()