Home
last modified time | relevance | path

Searched refs:uvolt (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/sys/dev/iicbus/pmic/rockchip/
H A Drk8xx_regulators.c45 static int rk8xx_regnode_get_voltage(struct regnode *regnode, int *uvolt);
55 int rv, udelay, uvolt, status; in rk8xx_regnode_init() local
64 rv = rk8xx_regnode_get_voltage(regnode, &uvolt); in rk8xx_regnode_init()
68 if (uvolt >= param->min_uvolt && uvolt <= param->max_uvolt) in rk8xx_regnode_init()
152 int nstep, uvolt; in rk8xx_regnode_voltage_to_reg() local
157 uvolt = sc->def->voltage_min; in rk8xx_regnode_voltage_to_reg()
159 for (nstep = 0; nstep < sc->def->voltage_nstep && uvolt < min_uvolt; in rk8xx_regnode_voltage_to_reg()
164 if (uvolt < sc->def->voltage_min2) in rk8xx_regnode_voltage_to_reg()
165 uvolt += sc->def->voltage_step; in rk8xx_regnode_voltage_to_reg()
167 uvolt += sc->def->voltage_step2; in rk8xx_regnode_voltage_to_reg()
[all …]
/freebsd/sys/arm64/rockchip/
H A Drk_iodomain.c166 int uvolt, i; in rk_iodomain_set() local
177 if (regulator_get_voltage(supply, &uvolt) != 0) { in rk_iodomain_set()
187 if (uvolt == 1800000) in rk_iodomain_set()
189 else if (uvolt != 3000000) in rk_iodomain_set()
192 sc->conf->supply[i].name, uvolt); in rk_iodomain_set()
198 sc->conf->supply[i].name, uvolt); in rk_iodomain_set()
206 (uvolt > MAX_1V8 ? in rk_iodomain_set()
210 (uvolt > MAX_1V8 ? in rk_iodomain_set()
222 (uvolt > MAX_1V8 ? in rk_iodomain_set()
226 (uvolt > MAX_1V8 ? in rk_iodomain_set()
/freebsd/sys/dev/regulator/
H A Dregulator.c75 static int regnode_method_get_voltage(struct regnode *regnode, int *uvolt);
237 int rv, uvolt; in regnode_uvolt_sysctl() local
240 uvolt = regnode->std_param.min_uvolt; in regnode_uvolt_sysctl()
243 if ((rv = regnode_get_voltage(regnode, &uvolt)) != 0) { in regnode_uvolt_sysctl()
250 return sysctl_handle_int(oidp, &uvolt, sizeof(uvolt), req); in regnode_uvolt_sysctl()
296 regnode_method_get_voltage(struct regnode *regnode, int *uvolt) in regnode_method_get_voltage() argument
299 *uvolt = regnode->std_param.min_uvolt + in regnode_method_get_voltage()
305 regnode_method_check_voltage(struct regnode *regnode, int uvolt) in regnode_method_check_voltage() argument
308 if ((uvolt > regnode->std_param.max_uvolt) || in regnode_method_check_voltage()
309 (uvolt < regnode->std_param.min_uvolt)) in regnode_method_check_voltage()
[all …]
H A Dregulator.h116 int regnode_get_voltage(struct regnode *regnode, int *uvolt);
121 int regnode_method_check_voltage(struct regnode *regnode, int uvolt);
138 int regulator_get_voltage(regulator_t reg, int *uvolt);
140 int regulator_check_voltage(regulator_t reg, int uvolt);
H A Dregulator_fixed.c77 static int regnode_fixed_get_voltage(struct regnode *regnode, int *uvolt);
287 regnode_fixed_get_voltage(struct regnode *regnode, int *uvolt) in regnode_fixed_get_voltage() argument
292 *uvolt = sc->param->min_uvolt; in regnode_fixed_get_voltage()
H A Dregnode_if.m89 int *uvolt;
98 int uvolt;
/freebsd/sys/arm/nvidia/tegra124/
H A Dtegra124_cpufreq.c68 int uvolt; /* Requested voltage */ member
268 sc->speed_points[i].uvolt = freq_to_voltage(sc, in build_speed_points()
305 sets[i].volts = sc->speed_points[j].uvolt / 1000; in tegra124_cpufreq_settings()
323 if (sc->act_speed_point->uvolt < point->uvolt) { in set_cpu_freq()
326 point->uvolt, point->uvolt); in set_cpu_freq()
352 if (sc->act_speed_point->uvolt > point->uvolt) { in set_cpu_freq()
355 point->uvolt, point->uvolt); in set_cpu_freq()
400 cf->volts = sc->act_speed_point->uvolt / 1000; in tegra124_cpufreq_get()
/freebsd/sys/contrib/device-tree/Bindings/mfd/
H A Dmax14577.txt32 - maxim,ovp-uvolt : OverVoltage Protection Threshold in uV;
36 - maxim,constant-uvolt : Battery Constant Voltage in uV;
97 maxim,constant-uvolt = <4350000>;
100 maxim,ovp-uvolt = <6500000>;
142 maxim,constant-uvolt = <4350000>;
145 maxim,ovp-uvolt = <6500000>;
/freebsd/sys/dev/sdhci/
H A Dsdhci_xenon.c382 int uvolt, err; in sdhci_xenon_switch_vccq() local
405 uvolt = 3300000; in sdhci_xenon_switch_vccq()
407 uvolt, uvolt); in sdhci_xenon_switch_vccq()
411 uvolt, in sdhci_xenon_switch_vccq()
412 uvolt); in sdhci_xenon_switch_vccq()
438 uvolt = 1800000; in sdhci_xenon_switch_vccq()
440 uvolt, uvolt); in sdhci_xenon_switch_vccq()
444 uvolt, in sdhci_xenon_switch_vccq()
445 uvolt); in sdhci_xenon_switch_vccq()
H A Dsdhci_fsl_fdt.c700 int uvolt, err = 0; in sdhci_fsl_fdt_switch_vccq() local
713 uvolt = 1800000; in sdhci_fsl_fdt_switch_vccq()
717 uvolt = 3300000; in sdhci_fsl_fdt_switch_vccq()
738 err = regulator_set_voltage(vqmmc_supply, uvolt, uvolt); in sdhci_fsl_fdt_switch_vccq()
746 device_printf(sc->dev, "Cannot set vqmmc to %d<->%d\n", uvolt, uvolt); in sdhci_fsl_fdt_switch_vccq()
/freebsd/sys/dev/cpufreq/
H A Dcpufreq_dt.c172 int uvolt, error; in cpufreq_dt_set() local
193 error = regulator_get_voltage(sc->reg, &uvolt); in cpufreq_dt_set()
208 uvolt = copp->uvolt_target; in cpufreq_dt_set()
211 uvolt = 0; in cpufreq_dt_set()
218 DPRINTF(sc->dev, "Current freq %ju, uvolt: %d\n", freq, uvolt); in cpufreq_dt_set()
222 if (CPUFREQ_DT_HAVE_REGULATOR(sc) && (uvolt < opp->uvolt_target)) { in cpufreq_dt_set()
224 uvolt, opp->uvolt_target); in cpufreq_dt_set()
246 if (CPUFREQ_DT_HAVE_REGULATOR(sc) && (uvolt > opp->uvolt_target)) { in cpufreq_dt_set()
248 uvolt, opp->uvolt_target); in cpufreq_dt_set()
/freebsd/sys/dev/iicbus/pmic/
H A Dact8846_regulator.c298 int uvolt, rv; in act8846_regnode_set_voltage() local
318 sel, &uvolt); in act8846_regnode_set_voltage()
320 uvolt); in act8846_regnode_set_voltage()
326 act8846_regnode_get_voltage(struct regnode *regnode, int *uvolt) in act8846_regnode_get_voltage() argument
336 *uvolt = 1800000; in act8846_regnode_get_voltage()
346 sel, uvolt); in act8846_regnode_get_voltage()
348 *uvolt); in act8846_regnode_get_voltage()
H A Dfan53555.c229 int uvolt, rv; in fan53555_regnode_set_voltage() local
244 regulator_range_sel8_to_volt(sc->range, 1, sel, &uvolt); in fan53555_regnode_set_voltage()
246 uvolt, sel); in fan53555_regnode_set_voltage()
252 fan53555_regnode_get_voltage(struct regnode *regnode, int *uvolt) in fan53555_regnode_get_voltage() argument
263 rv = regulator_range_sel8_to_volt(sc->range, 1, sel, uvolt); in fan53555_regnode_get_voltage()
265 *uvolt, sel); in fan53555_regnode_get_voltage()
/freebsd/sys/contrib/device-tree/Bindings/power/supply/
H A Dtwl-charger.txt20 - ti,bb-uvolt: microvolts for charging the backup battery.
28 ti,bb-uvolt = <3200000>;
/freebsd/sys/arm64/nvidia/tegra210/
H A Dtegra210_cpufreq.c67 int uvolt; /* Requested voltage */ member
226 sc->speed_points[i].uvolt = freq_to_voltage(sc, in build_speed_points()
263 sets[i].volts = sc->speed_points[j].uvolt / 1000; in tegra210_cpufreq_settings()
328 cf->volts = sc->act_speed_point->uvolt / 1000; in tegra210_cpufreq_get()
H A Dmax77620_regulators.c348 static int max77620_regnode_get_volt(struct regnode *regnode, int *uvolt);
869 max77620_regnode_get_volt(struct regnode *regnode, int *uvolt) in max77620_regnode_get_volt() argument
882 sel, uvolt); in max77620_regnode_get_volt()
/freebsd/sys/arm/allwinner/
H A Daxp81x.c824 int nstep, uvolt; in axp8xx_regnode_voltage_to_reg() local
827 uvolt = sc->def->voltage_min * 1000; in axp8xx_regnode_voltage_to_reg()
829 for (nstep = 0; nstep < sc->def->voltage_nstep1 && uvolt < min_uvolt; in axp8xx_regnode_voltage_to_reg()
832 uvolt += (sc->def->voltage_step1 * 1000); in axp8xx_regnode_voltage_to_reg()
834 for (nstep = 0; nstep < sc->def->voltage_nstep2 && uvolt < min_uvolt; in axp8xx_regnode_voltage_to_reg()
837 uvolt += (sc->def->voltage_step2 * 1000); in axp8xx_regnode_voltage_to_reg()
839 if (uvolt > max_uvolt) in axp8xx_regnode_voltage_to_reg()
891 axp8xx_regnode_get_voltage(struct regnode *regnode, int *uvolt) in axp8xx_regnode_get_voltage() argument
902 axp8xx_regnode_reg_to_voltage(sc, val & AXP_VOLTCTL_MASK, uvolt); in axp8xx_regnode_get_voltage()
H A Daxp209.c691 int nstep, uvolt; in axp2xx_regnode_voltage_to_reg() local
694 uvolt = sc->def->voltage_min * 1000; in axp2xx_regnode_voltage_to_reg()
696 for (nstep = 0; nstep < sc->def->voltage_nstep && uvolt < min_uvolt; in axp2xx_regnode_voltage_to_reg()
699 uvolt += (sc->def->voltage_step * 1000); in axp2xx_regnode_voltage_to_reg()
701 if (uvolt > max_uvolt) in axp2xx_regnode_voltage_to_reg()
747 axp2xx_regnode_get_voltage(struct regnode *regnode, int *uvolt) in axp2xx_regnode_get_voltage() argument
758 axp2xx_regnode_reg_to_voltage(sc, val & sc->def->voltage_mask, uvolt); in axp2xx_regnode_get_voltage()
H A Daw_mmc.c1252 int uvolt, err; local
1261 uvolt = 1800000;
1264 uvolt = 3300000;
1270 err = regulator_set_voltage(sc->mmc_helper.vqmmc_supply, uvolt, uvolt);
1274 uvolt,
1275 uvolt);
/freebsd/sys/dev/iicbus/pmic/silergy/
H A Dsy8106a.c171 sy8106a_regnode_get_voltage(struct regnode *regnode, int *uvolt) in sy8106a_regnode_get_voltage() argument
179 *uvolt = (val & SEL_VOLTAGE_MASK) * SEL_VOLTAGE_STEP + in sy8106a_regnode_get_voltage()
H A Dsyr827.c153 syr827_regnode_get_voltage(struct regnode *regnode, int *uvolt) in syr827_regnode_get_voltage() argument
161 *uvolt = (val & VSEL_NSEL_MASK) * VSEL_VOLTAGE_STEP + in syr827_regnode_get_voltage()
/freebsd/sys/dev/gpio/
H A Dgpioregulator.c156 gpioregulator_regnode_get_voltage(struct regnode *regnode, int *uvolt) in gpioregulator_regnode_get_voltage() argument
175 *uvolt = sc->def->states[n].val; in gpioregulator_regnode_get_voltage()
/freebsd/sys/arm/nvidia/
H A Das3722_regulators.c372 static int as3722_regnode_get_volt(struct regnode *regnode, int *uvolt);
692 as3722_regnode_get_volt(struct regnode *regnode, int *uvolt) in as3722_regnode_get_volt() argument
707 sel, uvolt); in as3722_regnode_get_volt()
/freebsd/sys/contrib/device-tree/src/arm/ti/omap/
H A Dlogicpd-som-lv-baseboard.dtsi59 ti,bb-uvolt = <3200000>;
/freebsd/sys/contrib/device-tree/src/arm/samsung/
H A Dexynos3250-monk.dts106 maxim,constant-uvolt = <4350000>;
109 maxim,ovp-uvolt = <6500000>;

12