Lines Matching refs:desc

476 	pmic->desc[id].enable_val = pmic->current_reg_mode[id];  in palmas_set_mode_smps()
900 struct regulator_desc *desc; in palmas_ldo_registration() local
914 desc = &pmic->desc[id]; in palmas_ldo_registration()
915 desc->name = rinfo->name; in palmas_ldo_registration()
916 desc->id = id; in palmas_ldo_registration()
917 desc->type = REGULATOR_VOLTAGE; in palmas_ldo_registration()
918 desc->owner = THIS_MODULE; in palmas_ldo_registration()
921 desc->n_voltages = PALMAS_LDO_NUM_VOLTAGES; in palmas_ldo_registration()
923 desc->ops = &palmas_ops_ext_control_ldo; in palmas_ldo_registration()
925 desc->ops = &palmas_ops_ldo; in palmas_ldo_registration()
926 desc->min_uV = 900000; in palmas_ldo_registration()
927 desc->uV_step = 50000; in palmas_ldo_registration()
928 desc->linear_min_sel = 1; in palmas_ldo_registration()
929 desc->enable_time = 500; in palmas_ldo_registration()
930 desc->vsel_reg = PALMAS_BASE_TO_REG(PALMAS_LDO_BASE, in palmas_ldo_registration()
932 desc->vsel_mask = PALMAS_LDO1_VOLTAGE_VSEL_MASK; in palmas_ldo_registration()
933 desc->enable_reg = PALMAS_BASE_TO_REG(PALMAS_LDO_BASE, in palmas_ldo_registration()
935 desc->enable_mask = PALMAS_LDO1_CTRL_MODE_ACTIVE; in palmas_ldo_registration()
941 desc->min_uV = 450000; in palmas_ldo_registration()
942 desc->uV_step = 25000; in palmas_ldo_registration()
948 desc->enable_time = 2000; in palmas_ldo_registration()
951 desc->ops = &palmas_ops_ldo9; in palmas_ldo_registration()
952 desc->bypass_reg = desc->enable_reg; in palmas_ldo_registration()
953 desc->bypass_val_on = in palmas_ldo_registration()
955 desc->bypass_mask = in palmas_ldo_registration()
962 desc->n_voltages = 1; in palmas_ldo_registration()
964 desc->ops = &palmas_ops_ext_control_extreg; in palmas_ldo_registration()
966 desc->ops = &palmas_ops_extreg; in palmas_ldo_registration()
967 desc->enable_reg = in palmas_ldo_registration()
970 desc->enable_mask = PALMAS_REGEN1_CTRL_MODE_ACTIVE; in palmas_ldo_registration()
978 desc->supply_name = rinfo->sname; in palmas_ldo_registration()
981 rdev = devm_regulator_register(pmic->dev, desc, &config); in palmas_ldo_registration()
1018 struct regulator_desc *desc; in tps65917_ldo_registration() local
1032 desc = &pmic->desc[id]; in tps65917_ldo_registration()
1033 desc->name = rinfo->name; in tps65917_ldo_registration()
1034 desc->id = id; in tps65917_ldo_registration()
1035 desc->type = REGULATOR_VOLTAGE; in tps65917_ldo_registration()
1036 desc->owner = THIS_MODULE; in tps65917_ldo_registration()
1039 desc->n_voltages = PALMAS_LDO_NUM_VOLTAGES; in tps65917_ldo_registration()
1041 desc->ops = &palmas_ops_ext_control_ldo; in tps65917_ldo_registration()
1043 desc->ops = &tps65917_ops_ldo; in tps65917_ldo_registration()
1044 desc->min_uV = 900000; in tps65917_ldo_registration()
1045 desc->uV_step = 50000; in tps65917_ldo_registration()
1046 desc->linear_min_sel = 1; in tps65917_ldo_registration()
1047 desc->enable_time = 500; in tps65917_ldo_registration()
1048 desc->vsel_reg = PALMAS_BASE_TO_REG(PALMAS_LDO_BASE, in tps65917_ldo_registration()
1050 desc->vsel_mask = PALMAS_LDO1_VOLTAGE_VSEL_MASK; in tps65917_ldo_registration()
1051 desc->enable_reg = PALMAS_BASE_TO_REG(PALMAS_LDO_BASE, in tps65917_ldo_registration()
1053 desc->enable_mask = PALMAS_LDO1_CTRL_MODE_ACTIVE; in tps65917_ldo_registration()
1058 desc->ramp_delay = 2500; in tps65917_ldo_registration()
1061 desc->ops = &tps65917_ops_ldo_1_2; in tps65917_ldo_registration()
1062 desc->bypass_reg = desc->enable_reg; in tps65917_ldo_registration()
1063 desc->bypass_val_on = in tps65917_ldo_registration()
1065 desc->bypass_mask = in tps65917_ldo_registration()
1069 desc->n_voltages = 1; in tps65917_ldo_registration()
1071 desc->ops = &palmas_ops_ext_control_extreg; in tps65917_ldo_registration()
1073 desc->ops = &palmas_ops_extreg; in tps65917_ldo_registration()
1074 desc->enable_reg = in tps65917_ldo_registration()
1077 desc->enable_mask = PALMAS_REGEN1_CTRL_MODE_ACTIVE; in tps65917_ldo_registration()
1085 desc->supply_name = rinfo->sname; in tps65917_ldo_registration()
1088 rdev = devm_regulator_register(pmic->dev, desc, &config); in tps65917_ldo_registration()
1126 struct regulator_desc *desc; in palmas_smps_registration() local
1166 desc = &pmic->desc[id]; in palmas_smps_registration()
1179 desc->ramp_delay = palmas_smps_ramp_delay[reg & 0x3]; in palmas_smps_registration()
1180 pmic->ramp_delay[id] = desc->ramp_delay; in palmas_smps_registration()
1194 desc->name = rinfo->name; in palmas_smps_registration()
1195 desc->id = id; in palmas_smps_registration()
1200 desc->n_voltages = PALMAS_SMPS10_NUM_VOLTAGES; in palmas_smps_registration()
1201 desc->ops = &palmas_ops_smps10; in palmas_smps_registration()
1202 desc->vsel_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in palmas_smps_registration()
1204 desc->vsel_mask = SMPS10_VSEL; in palmas_smps_registration()
1205 desc->enable_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in palmas_smps_registration()
1208 desc->enable_mask = SMPS10_SWITCH_EN; in palmas_smps_registration()
1210 desc->enable_mask = SMPS10_BOOST_EN; in palmas_smps_registration()
1211 desc->bypass_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in palmas_smps_registration()
1213 desc->bypass_val_on = SMPS10_BYPASS_EN; in palmas_smps_registration()
1214 desc->bypass_mask = SMPS10_BYPASS_EN; in palmas_smps_registration()
1215 desc->min_uV = 3750000; in palmas_smps_registration()
1216 desc->uV_step = 1250000; in palmas_smps_registration()
1226 desc->n_linear_ranges = 3; in palmas_smps_registration()
1234 desc->linear_ranges = smps_high_ranges; in palmas_smps_registration()
1236 desc->linear_ranges = smps_low_ranges; in palmas_smps_registration()
1239 desc->ops = &palmas_ops_ext_control_smps; in palmas_smps_registration()
1241 desc->ops = &palmas_ops_smps; in palmas_smps_registration()
1242 desc->n_voltages = PALMAS_SMPS_NUM_VOLTAGES; in palmas_smps_registration()
1243 desc->vsel_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in palmas_smps_registration()
1245 desc->vsel_mask = PALMAS_SMPS12_VOLTAGE_VSEL_MASK; in palmas_smps_registration()
1255 desc->enable_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in palmas_smps_registration()
1257 desc->enable_mask = PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK; in palmas_smps_registration()
1259 desc->enable_val = SMPS_CTRL_MODE_ON; in palmas_smps_registration()
1262 desc->type = REGULATOR_VOLTAGE; in palmas_smps_registration()
1263 desc->owner = THIS_MODULE; in palmas_smps_registration()
1270 desc->supply_name = rinfo->sname; in palmas_smps_registration()
1273 rdev = devm_regulator_register(pmic->dev, desc, &config); in palmas_smps_registration()
1296 struct regulator_desc *desc; in tps65917_smps_registration() local
1303 desc = &pmic->desc[id]; in tps65917_smps_registration()
1304 desc->n_linear_ranges = 3; in tps65917_smps_registration()
1321 desc->name = rinfo->name; in tps65917_smps_registration()
1322 desc->id = id; in tps65917_smps_registration()
1339 desc->linear_ranges = smps_high_ranges; in tps65917_smps_registration()
1341 desc->linear_ranges = smps_low_ranges; in tps65917_smps_registration()
1344 desc->ops = &tps65917_ops_ext_control_smps; in tps65917_smps_registration()
1346 desc->ops = &tps65917_ops_smps; in tps65917_smps_registration()
1347 desc->n_voltages = PALMAS_SMPS_NUM_VOLTAGES; in tps65917_smps_registration()
1348 desc->vsel_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in tps65917_smps_registration()
1350 desc->vsel_mask = PALMAS_SMPS12_VOLTAGE_VSEL_MASK; in tps65917_smps_registration()
1351 desc->ramp_delay = 2500; in tps65917_smps_registration()
1360 desc->enable_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in tps65917_smps_registration()
1362 desc->enable_mask = PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK; in tps65917_smps_registration()
1364 desc->enable_val = SMPS_CTRL_MODE_ON; in tps65917_smps_registration()
1366 desc->type = REGULATOR_VOLTAGE; in tps65917_smps_registration()
1367 desc->owner = THIS_MODULE; in tps65917_smps_registration()
1374 desc->supply_name = rinfo->sname; in tps65917_smps_registration()
1377 rdev = devm_regulator_register(pmic->dev, desc, &config); in tps65917_smps_registration()