Home
last modified time | relevance | path

Searched refs:volt_sel (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/soc/qcom/
Dspm.c86 unsigned int volt_sel; member
309 drv->volt_sel = selector; in spm_set_voltage_sel()
319 return drv->volt_sel; in spm_get_voltage_sel()
333 unsigned int vlevel, volt_sel; in smp_set_vdd_v1_1() local
336 volt_sel = drv->volt_sel; in smp_set_vdd_v1_1()
337 vlevel = volt_sel | 0x80; /* band */ in smp_set_vdd_v1_1()
357 data1 = FIELD_SET(data1, SPM_PMIC_DATA_1_MIN_VSEL, volt_sel); in smp_set_vdd_v1_1()
358 data1 = FIELD_SET(data1, SPM_PMIC_DATA_1_MAX_VSEL, volt_sel); in smp_set_vdd_v1_1()
373 unsigned int max_avs = volt_sel; in smp_set_vdd_v1_1()
454 drv->volt_sel = DIV_ROUND_UP(drv->reg_data->init_uV - rdesc->min_uV, in spm_register_regulator()
[all …]
/linux-6.12.1/drivers/regulator/
Drt4801-regulator.c34 unsigned int volt_sel[DSV_OUT_MAX]; member
70 priv->volt_sel[id] = selector; in rt4801_set_voltage_sel()
82 return priv->volt_sel[id]; in rt4801_get_voltage_sel()
98 ret = regmap_write(rdev->regmap, rdev->desc->vsel_reg, priv->volt_sel[id]); in rt4801_enable()
221 priv->volt_sel[i] = val & desc->vsel_mask; in rt4801_probe()