Lines Matching refs:desc

470 	pmic->desc[id].enable_val = pmic->current_reg_mode[id];  in palmas_set_mode_smps()
869 struct regulator_desc *desc; in palmas_ldo_registration() local
883 desc = &pmic->desc[id]; in palmas_ldo_registration()
884 desc->name = rinfo->name; in palmas_ldo_registration()
885 desc->id = id; in palmas_ldo_registration()
886 desc->type = REGULATOR_VOLTAGE; in palmas_ldo_registration()
887 desc->owner = THIS_MODULE; in palmas_ldo_registration()
890 desc->n_voltages = PALMAS_LDO_NUM_VOLTAGES; in palmas_ldo_registration()
892 desc->ops = &palmas_ops_ext_control_ldo; in palmas_ldo_registration()
894 desc->ops = &palmas_ops_ldo; in palmas_ldo_registration()
895 desc->min_uV = 900000; in palmas_ldo_registration()
896 desc->uV_step = 50000; in palmas_ldo_registration()
897 desc->linear_min_sel = 1; in palmas_ldo_registration()
898 desc->enable_time = 500; in palmas_ldo_registration()
899 desc->vsel_reg = PALMAS_BASE_TO_REG(PALMAS_LDO_BASE, in palmas_ldo_registration()
901 desc->vsel_mask = PALMAS_LDO1_VOLTAGE_VSEL_MASK; in palmas_ldo_registration()
902 desc->enable_reg = PALMAS_BASE_TO_REG(PALMAS_LDO_BASE, in palmas_ldo_registration()
904 desc->enable_mask = PALMAS_LDO1_CTRL_MODE_ACTIVE; in palmas_ldo_registration()
910 desc->min_uV = 450000; in palmas_ldo_registration()
911 desc->uV_step = 25000; in palmas_ldo_registration()
917 desc->enable_time = 2000; in palmas_ldo_registration()
922 desc->n_voltages = 1; in palmas_ldo_registration()
924 desc->ops = &palmas_ops_ext_control_extreg; in palmas_ldo_registration()
926 desc->ops = &palmas_ops_extreg; in palmas_ldo_registration()
927 desc->enable_reg = in palmas_ldo_registration()
930 desc->enable_mask = PALMAS_REGEN1_CTRL_MODE_ACTIVE; in palmas_ldo_registration()
938 desc->supply_name = rinfo->sname; in palmas_ldo_registration()
941 rdev = devm_regulator_register(pmic->dev, desc, &config); in palmas_ldo_registration()
981 struct regulator_desc *desc; in tps65917_ldo_registration() local
995 desc = &pmic->desc[id]; in tps65917_ldo_registration()
996 desc->name = rinfo->name; in tps65917_ldo_registration()
997 desc->id = id; in tps65917_ldo_registration()
998 desc->type = REGULATOR_VOLTAGE; in tps65917_ldo_registration()
999 desc->owner = THIS_MODULE; in tps65917_ldo_registration()
1002 desc->n_voltages = PALMAS_LDO_NUM_VOLTAGES; in tps65917_ldo_registration()
1004 desc->ops = &palmas_ops_ext_control_ldo; in tps65917_ldo_registration()
1006 desc->ops = &tps65917_ops_ldo; in tps65917_ldo_registration()
1007 desc->min_uV = 900000; in tps65917_ldo_registration()
1008 desc->uV_step = 50000; in tps65917_ldo_registration()
1009 desc->linear_min_sel = 1; in tps65917_ldo_registration()
1010 desc->enable_time = 500; in tps65917_ldo_registration()
1011 desc->vsel_reg = PALMAS_BASE_TO_REG(PALMAS_LDO_BASE, in tps65917_ldo_registration()
1013 desc->vsel_mask = PALMAS_LDO1_VOLTAGE_VSEL_MASK; in tps65917_ldo_registration()
1014 desc->enable_reg = PALMAS_BASE_TO_REG(PALMAS_LDO_BASE, in tps65917_ldo_registration()
1016 desc->enable_mask = PALMAS_LDO1_CTRL_MODE_ACTIVE; in tps65917_ldo_registration()
1021 desc->ramp_delay = 2500; in tps65917_ldo_registration()
1023 desc->n_voltages = 1; in tps65917_ldo_registration()
1025 desc->ops = &palmas_ops_ext_control_extreg; in tps65917_ldo_registration()
1027 desc->ops = &palmas_ops_extreg; in tps65917_ldo_registration()
1028 desc->enable_reg = in tps65917_ldo_registration()
1031 desc->enable_mask = PALMAS_REGEN1_CTRL_MODE_ACTIVE; in tps65917_ldo_registration()
1039 desc->supply_name = rinfo->sname; in tps65917_ldo_registration()
1042 rdev = devm_regulator_register(pmic->dev, desc, &config); in tps65917_ldo_registration()
1083 struct regulator_desc *desc; in palmas_smps_registration() local
1123 desc = &pmic->desc[id]; in palmas_smps_registration()
1136 desc->ramp_delay = palmas_smps_ramp_delay[reg & 0x3]; in palmas_smps_registration()
1137 pmic->ramp_delay[id] = desc->ramp_delay; in palmas_smps_registration()
1151 desc->name = rinfo->name; in palmas_smps_registration()
1152 desc->id = id; in palmas_smps_registration()
1157 desc->n_voltages = PALMAS_SMPS10_NUM_VOLTAGES; in palmas_smps_registration()
1158 desc->ops = &palmas_ops_smps10; in palmas_smps_registration()
1159 desc->vsel_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in palmas_smps_registration()
1161 desc->vsel_mask = SMPS10_VSEL; in palmas_smps_registration()
1162 desc->enable_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in palmas_smps_registration()
1165 desc->enable_mask = SMPS10_SWITCH_EN; in palmas_smps_registration()
1167 desc->enable_mask = SMPS10_BOOST_EN; in palmas_smps_registration()
1168 desc->bypass_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in palmas_smps_registration()
1170 desc->bypass_mask = SMPS10_BYPASS_EN; in palmas_smps_registration()
1171 desc->min_uV = 3750000; in palmas_smps_registration()
1172 desc->uV_step = 1250000; in palmas_smps_registration()
1182 desc->n_linear_ranges = 3; in palmas_smps_registration()
1190 desc->linear_ranges = smps_high_ranges; in palmas_smps_registration()
1192 desc->linear_ranges = smps_low_ranges; in palmas_smps_registration()
1195 desc->ops = &palmas_ops_ext_control_smps; in palmas_smps_registration()
1197 desc->ops = &palmas_ops_smps; in palmas_smps_registration()
1198 desc->n_voltages = PALMAS_SMPS_NUM_VOLTAGES; in palmas_smps_registration()
1199 desc->vsel_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in palmas_smps_registration()
1201 desc->vsel_mask = PALMAS_SMPS12_VOLTAGE_VSEL_MASK; in palmas_smps_registration()
1211 desc->enable_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in palmas_smps_registration()
1213 desc->enable_mask = PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK; in palmas_smps_registration()
1215 desc->enable_val = SMPS_CTRL_MODE_ON; in palmas_smps_registration()
1218 desc->type = REGULATOR_VOLTAGE; in palmas_smps_registration()
1219 desc->owner = THIS_MODULE; in palmas_smps_registration()
1226 desc->supply_name = rinfo->sname; in palmas_smps_registration()
1229 rdev = devm_regulator_register(pmic->dev, desc, &config); in palmas_smps_registration()
1255 struct regulator_desc *desc; in tps65917_smps_registration() local
1262 desc = &pmic->desc[id]; in tps65917_smps_registration()
1263 desc->n_linear_ranges = 3; in tps65917_smps_registration()
1279 desc->name = rinfo->name; in tps65917_smps_registration()
1280 desc->id = id; in tps65917_smps_registration()
1297 desc->linear_ranges = smps_high_ranges; in tps65917_smps_registration()
1299 desc->linear_ranges = smps_low_ranges; in tps65917_smps_registration()
1302 desc->ops = &tps65917_ops_ext_control_smps; in tps65917_smps_registration()
1304 desc->ops = &tps65917_ops_smps; in tps65917_smps_registration()
1305 desc->n_voltages = PALMAS_SMPS_NUM_VOLTAGES; in tps65917_smps_registration()
1306 desc->vsel_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in tps65917_smps_registration()
1308 desc->vsel_mask = PALMAS_SMPS12_VOLTAGE_VSEL_MASK; in tps65917_smps_registration()
1309 desc->ramp_delay = 2500; in tps65917_smps_registration()
1318 desc->enable_reg = PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, in tps65917_smps_registration()
1320 desc->enable_mask = PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK; in tps65917_smps_registration()
1322 desc->enable_val = SMPS_CTRL_MODE_ON; in tps65917_smps_registration()
1324 desc->type = REGULATOR_VOLTAGE; in tps65917_smps_registration()
1325 desc->owner = THIS_MODULE; in tps65917_smps_registration()
1332 desc->supply_name = rinfo->sname; in tps65917_smps_registration()
1335 rdev = devm_regulator_register(pmic->dev, desc, &config); in tps65917_smps_registration()