Home
last modified time | relevance | path

Searched full:volt (Results 1 – 25 of 271) sorted by relevance

1234567891011

/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
H A Dbase.c28 #include <subdev/bios/volt.h>
32 nvkm_volt_get(struct nvkm_volt *volt) in nvkm_volt_get() argument
36 if (volt->func->volt_get) in nvkm_volt_get()
37 return volt->func->volt_get(volt); in nvkm_volt_get()
39 ret = volt->func->vid_get(volt); in nvkm_volt_get()
41 for (i = 0; i < volt->vid_nr; i++) { in nvkm_volt_get()
42 if (volt->vid[i].vid == ret) in nvkm_volt_get()
43 return volt->vid[i].uv; in nvkm_volt_get()
51 nvkm_volt_set(struct nvkm_volt *volt, u32 uv) in nvkm_volt_set() argument
53 struct nvkm_subdev *subdev = &volt->subdev; in nvkm_volt_set()
[all …]
H A Dgk20a.c95 struct gk20a_volt *volt = gk20a_volt(base); in gk20a_volt_vid_get() local
98 uv = regulator_get_voltage(volt->vdd); in gk20a_volt_vid_get()
100 for (i = 0; i < volt->base.vid_nr; i++) in gk20a_volt_vid_get()
101 if (volt->base.vid[i].uv >= uv) in gk20a_volt_vid_get()
110 struct gk20a_volt *volt = gk20a_volt(base); in gk20a_volt_vid_set() local
111 struct nvkm_subdev *subdev = &volt->base.subdev; in gk20a_volt_vid_set()
113 nvkm_debug(subdev, "set voltage as %duv\n", volt->base.vid[vid].uv); in gk20a_volt_vid_set()
114 return regulator_set_voltage(volt->vdd, volt->base.vid[vid].uv, 1200000); in gk20a_volt_vid_set()
120 struct gk20a_volt *volt = gk20a_volt(base); in gk20a_volt_set_id() local
121 struct nvkm_subdev *subdev = &volt->base.subdev; in gk20a_volt_set_id()
[all …]
H A Dgk104.c26 #include <subdev/volt.h>
29 #include <subdev/bios/volt.h>
69 gk104_volt_speedo_read(struct nvkm_volt *volt) in gk104_volt_speedo_read() argument
71 struct nvkm_device *device = volt->subdev.device; in gk104_volt_speedo_read()
103 struct gk104_volt *volt; in gk104_volt_new() local
115 if (!(volt = kzalloc(sizeof(*volt), GFP_KERNEL))) in gk104_volt_new()
117 nvkm_volt_ctor(volt_func, device, index, &volt->base); in gk104_volt_new()
118 *pvolt = &volt->base; in gk104_volt_new()
119 volt->bios = bios; in gk104_volt_new()
126 nvkm_error(&volt->base.subdev, in gk104_volt_new()
[all …]
H A DKbuild2 nvkm-y += nvkm/subdev/volt/base.o
3 nvkm-y += nvkm/subdev/volt/gpio.o
4 nvkm-y += nvkm/subdev/volt/nv40.o
5 nvkm-y += nvkm/subdev/volt/gf100.o
6 nvkm-y += nvkm/subdev/volt/gf117.o
7 nvkm-y += nvkm/subdev/volt/gk104.o
8 nvkm-y += nvkm/subdev/volt/gk20a.o
9 nvkm-y += nvkm/subdev/volt/gm20b.o
H A Dgpio.c24 #include <subdev/volt.h>
36 nvkm_voltgpio_get(struct nvkm_volt *volt) in nvkm_voltgpio_get() argument
38 struct nvkm_gpio *gpio = volt->subdev.device->gpio; in nvkm_voltgpio_get()
43 if (volt->vid_mask & (1 << i)) { in nvkm_voltgpio_get()
55 nvkm_voltgpio_set(struct nvkm_volt *volt, u8 vid) in nvkm_voltgpio_set() argument
57 struct nvkm_gpio *gpio = volt->subdev.device->gpio; in nvkm_voltgpio_set()
61 if (volt->vid_mask & (1 << i)) { in nvkm_voltgpio_set()
72 nvkm_voltgpio_init(struct nvkm_volt *volt) in nvkm_voltgpio_init() argument
74 struct nvkm_subdev *subdev = &volt->subdev; in nvkm_voltgpio_init()
86 if (volt->vid_mask & (1 << i)) { in nvkm_voltgpio_init()
[all …]
H A Dgf100.c29 gf100_volt_speedo_read(struct nvkm_volt *volt) in gf100_volt_speedo_read() argument
31 struct nvkm_device *device = volt->subdev.device; in gf100_volt_speedo_read()
41 gf100_volt_oneinit(struct nvkm_volt *volt) in gf100_volt_oneinit() argument
43 struct nvkm_subdev *subdev = &volt->subdev; in gf100_volt_oneinit()
44 if (volt->speedo <= 0) in gf100_volt_oneinit()
61 struct nvkm_volt *volt; in gf100_volt_new() local
64 ret = nvkm_volt_new_(&gf100_volt, device, index, &volt); in gf100_volt_new()
65 *pvolt = volt; in gf100_volt_new()
69 return nvkm_voltgpio_init(volt); in gf100_volt_new()
H A Dgf117.c29 gf117_volt_speedo_read(struct nvkm_volt *volt) in gf117_volt_speedo_read() argument
31 struct nvkm_device *device = volt->subdev.device; in gf117_volt_speedo_read()
51 struct nvkm_volt *volt; in gf117_volt_new() local
54 ret = nvkm_volt_new_(&gf117_volt, device, index, &volt); in gf117_volt_new()
55 *pvolt = volt; in gf117_volt_new()
59 return nvkm_voltgpio_init(volt); in gf117_volt_new()
H A Dgm20b.c70 struct gk20a_volt *volt; in gm20b_volt_new() local
79 volt = kzalloc(sizeof(*volt), GFP_KERNEL); in gm20b_volt_new()
80 if (!volt) in gm20b_volt_new()
82 *pvolt = &volt->base; in gm20b_volt_new()
88 ARRAY_SIZE(gm20b_na_cvb_coef), vmin, volt); in gm20b_volt_new()
91 ARRAY_SIZE(gm20b_cvb_coef), vmin, volt); in gm20b_volt_new()
H A Dpriv.h5 #include <subdev/volt.h>
26 int nvkm_voltpwm_init(struct nvkm_volt *volt);
27 int nvkm_voltpwm_get(struct nvkm_volt *volt);
28 int nvkm_voltpwm_set(struct nvkm_volt *volt, u32 uv);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dvolt.c26 #include <subdev/bios/volt.h>
32 u32 volt = 0; in nvbios_volt_table() local
36 volt = nvbios_rd32(bios, bit_P.offset + 0x0c); in nvbios_volt_table()
39 volt = nvbios_rd32(bios, bit_P.offset + 0x10); in nvbios_volt_table()
41 if (volt) { in nvbios_volt_table()
42 *ver = nvbios_rd08(bios, volt + 0); in nvbios_volt_table()
46 *cnt = nvbios_rd08(bios, volt + 2); in nvbios_volt_table()
47 *len = nvbios_rd08(bios, volt + 1); in nvbios_volt_table()
48 return volt; in nvbios_volt_table()
50 *hdr = nvbios_rd08(bios, volt + 1); in nvbios_volt_table()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mach-s3c/
H A Dmach-rx1950.c165 { .volt = 4100, .cur = 156, .level = 100},
166 { .volt = 4050, .cur = 156, .level = 95},
167 { .volt = 4025, .cur = 141, .level = 90},
168 { .volt = 3995, .cur = 144, .level = 85},
169 { .volt = 3957, .cur = 162, .level = 80},
170 { .volt = 3931, .cur = 147, .level = 75},
171 { .volt = 3902, .cur = 147, .level = 70},
172 { .volt = 3863, .cur = 153, .level = 65},
173 { .volt = 3838, .cur = 150, .level = 60},
174 { .volt = 3800, .cur = 153, .level = 55},
[all …]
H A Dmach-h1940.c270 { .volt = 4070, .cur = 162, .level = 100},
271 { .volt = 4040, .cur = 165, .level = 95},
272 { .volt = 4016, .cur = 164, .level = 90},
273 { .volt = 3996, .cur = 166, .level = 85},
274 { .volt = 3971, .cur = 168, .level = 80},
275 { .volt = 3951, .cur = 168, .level = 75},
276 { .volt = 3931, .cur = 170, .level = 70},
277 { .volt = 3903, .cur = 172, .level = 65},
278 { .volt = 3886, .cur = 172, .level = 60},
279 { .volt = 3858, .cur = 176, .level = 55},
[all …]
/OK3568_Linux_fs/kernel/drivers/regulator/
H A Dda9055-regulator.c71 struct da9055_volt_reg volt; member
136 ret = da9055_reg_read(regulator->da9055, info->volt.reg_b); in da9055_ldo_get_mode()
140 if (ret >> info->volt.sl_shift) in da9055_ldo_get_mode()
150 struct da9055_volt_reg volt = info->volt; in da9055_ldo_set_mode() local
163 return da9055_reg_update(regulator->da9055, volt.reg_b, in da9055_ldo_set_mode()
164 1 << volt.sl_shift, in da9055_ldo_set_mode()
165 val << volt.sl_shift); in da9055_ldo_set_mode()
172 struct da9055_volt_reg volt = info->volt; in da9055_regulator_get_voltage_sel() local
188 ret = da9055_reg_read(regulator->da9055, volt.reg_a); in da9055_regulator_get_voltage_sel()
190 ret = da9055_reg_read(regulator->da9055, volt.reg_b); in da9055_regulator_get_voltage_sel()
[all …]
/OK3568_Linux_fs/u-boot/include/power/
H A Dmax77686_pmic.h185 /* For regulator hex<->volt conversion */
194 /* Buck1 1 volt value */
196 /* Buck1 1.05 volt value */
199 /* Buck2 1.3 volt value */
202 /* Buck3 1.0125 volt value */
205 /* Buck4 1.2 volt value */
208 /* LDO2 1.5 volt value */
210 /* LDO3 1.8 volt value */
212 /* LDO5 1.8 volt value */
214 /* LDO10 1.8 volt value */
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/
H A Drockchip-cpu-avs.txt12 - min-volt: The minimum voltage in uV. Even though opp's voltage will be
16 - leakage-adjust-volt: The property is an array of 3-tuples items, and
18 <min-leakage-mA max-leakage-mA volt-uV>.
21 volt: voltage offset in uV to apply to the opp table entries.
30 min-volt = <800000>; /* uV */
32 leakage-adjust-volt = <
41 min-volt = <800000>; /* uV */
43 leakage-adjust-volt = <
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dbase.c33 #include <subdev/volt.h>
83 struct nvkm_volt *volt = clk->subdev.device->volt; in nvkm_cstate_valid() local
102 if (!volt) in nvkm_cstate_valid()
105 voltage = nvkm_volt_map(volt, cstate->voltage, temp); in nvkm_cstate_valid()
108 return voltage <= min(max_volt, volt->max_uv); in nvkm_cstate_valid()
116 struct nvkm_volt *volt = device->volt; in nvkm_cstate_find_best() local
122 if (!volt) in nvkm_cstate_find_best()
125 max_volt = volt->max_uv; in nvkm_cstate_find_best()
126 if (volt->max0_id != 0xff) in nvkm_cstate_find_best()
128 nvkm_volt_map(volt, volt->max0_id, clk->temp)); in nvkm_cstate_find_best()
[all …]
/OK3568_Linux_fs/kernel/include/trace/events/
H A Dthermal_ipa_power.h12 u32 temp_scaling_factor, u32 volt, u32 volt_scaling_factor,
15 TP_ARGS(leakage, coefficient, temp, temp_scaling_factor, volt,
23 __field(u32, volt)
33 __entry->volt = volt;
39 __entry->temp_scaling_factor, __entry->volt,
/OK3568_Linux_fs/kernel/drivers/cpufreq/
H A Domap-cpufreq.c46 unsigned long freq, volt = 0, volt_old = 0, tol = 0; in omap_target() local
69 volt = dev_pm_opp_get_voltage(opp); in omap_target()
71 tol = volt * OPP_TOLERANCE / 100; in omap_target()
77 new_freq / 1000, volt ? volt / 1000 : -1); in omap_target()
81 r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol); in omap_target()
93 r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol); in omap_target()
/OK3568_Linux_fs/kernel/Documentation/hwmon/
H A Dabituguru-datasheet.rst191 - Sensor 3 CPU core volt
192 - Sensor 4 DDR volt
193 - Sensor 10 DDR Vtt volt
198 volt and temp sensors, this is motherboard specific. The uGuru however does
202 Volt sensors use a linear scale, a reading 0 corresponds with 0 volt and a
205 in use result in ranges of: 0-4361mV, 0-6248mV or 0-14510mV. 3.3 volt sources
206 use the 0-4361mV range, 5 volt the 0-6248mV and 12 volt the 0-14510mV .
227 Give an alarm if measured volt is over the max threshold (RW) [2]_
230 Give an alarm if measured volt is under the min threshold (RW) [2]_
239 1 if alarm cause measured volt is over the max threshold (R)
[all …]
/OK3568_Linux_fs/u-boot/board/freescale/common/
H A Dmc34vr500.c29 debug("%s: Get SW%u volt from swxvolt_addr = 0x%x\n", in mc34vr500_get_sw_volt()
48 printf("%s: Failed to get SW%u volt\n", __func__, sw + 1); in mc34vr500_get_sw_volt()
54 /* The base of SW volt is 625mV and increase by step 25mV */ in mc34vr500_get_sw_volt()
57 debug("%s: SW%u volt = %dmV\n", __func__, sw + 1, sw_volt); in mc34vr500_get_sw_volt()
68 debug("%s: Set SW%u volt to %dmV\n", __func__, sw + 1, sw_volt); in mc34vr500_set_sw_volt()
69 /* The least SW volt is 625mV, and only 4 SW outputs */ in mc34vr500_set_sw_volt()
84 /* The base of SW volt is 625mV and increase by step 25mV */ in mc34vr500_set_sw_volt()
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dvexpress-v2p-ca9.dts215 volt-vd10 {
217 compatible = "arm,vexpress-volt";
224 volt-vd10-s2 {
226 compatible = "arm,vexpress-volt";
233 volt-vd10-s3 {
235 compatible = "arm,vexpress-volt";
242 volt-vcc1v8 {
244 compatible = "arm,vexpress-volt";
251 volt-ddr2vtt {
253 compatible = "arm,vexpress-volt";
[all …]
/OK3568_Linux_fs/kernel/drivers/soc/rockchip/
H A Drockchip_opp_select.c51 unsigned int volt; member
72 u8 volt; member
311 if (of_property_read_u32(np, "rockchip,pvtm-volt", &pvtm->volt)) in rockchip_parse_pvtm_config()
388 ret = regulator_set_voltage(reg, pvtm->volt, pvtm->volt); in rockchip_get_pvtm_specific_value()
531 dev_err(dev, "Failed to get leakage volt\n"); in rockchip_adjust_leakage()
700 dev_info(dev, "leakage-volt-sel=%d\n", *volt_sel); in rockchip_of_get_lkg_sel()
762 ret = of_property_read_u32(np, "rockchip,pvtpll-volt-step", &info->pvtpll_volt_step); in rockchip_pvtpll_parse_dt()
848 unsigned long volt = 0, volt_mem = 0; in rockchip_pvtpll_calibrate_opp() local
900 volt = max(volt, info->opp_table[i].u_volt); in rockchip_pvtpll_calibrate_opp()
912 if (rockchip_pvtpll_set_volt(info->dev, reg, volt, volt_max, "vdd")) in rockchip_pvtpll_calibrate_opp()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A Dbase.c488 .volt = nv40_volt_new,
514 .volt = nv40_volt_new,
540 .volt = nv40_volt_new,
566 .volt = nv40_volt_new,
592 .volt = nv40_volt_new,
618 .volt = nv40_volt_new,
644 .volt = nv40_volt_new,
670 .volt = nv40_volt_new,
696 .volt = nv40_volt_new,
722 .volt = nv40_volt_new,
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mach-omap2/
H A Dvoltage.c74 unsigned long volt = 0; in voltdm_scale() local
96 volt = voltdm->volt_data[i].volt_nominal; in voltdm_scale()
101 if (!volt) { in voltdm_scale()
107 ret = voltdm->scale(voltdm, volt); in voltdm_scale()
109 voltdm->nominal_volt = volt; in voltdm_scale()
169 * @volt: the voltage to be searched in the voltage table
172 * domain and tries to find a matching entry for the passed voltage volt.
176 * Returns pointer to the voltage table entry corresponding to volt on
181 unsigned long volt) in omap_voltage_get_voltdata() argument
197 if (voltdm->volt_data[i].volt_nominal == volt) in omap_voltage_get_voltdata()
/OK3568_Linux_fs/kernel/drivers/rknpu/
H A Drknpu_drv.c950 "failed to set volt %lu uV for mem reg\n", in npu_opp_helper()
958 "failed to set volt %lu uV for vdd reg\n", in npu_opp_helper()
982 "failed to set volt %lu uV for vdd reg\n", in npu_opp_helper()
990 "failed to set volt %lu uV for mem reg\n", in npu_opp_helper()
1044 LOG_DEV_INFO(dev, "set rknpu freq: %lu, volt: %lu\n", in npu_devfreq_target()
1063 unsigned long volt, old_volt = rknpu_dev->current_volt; in npu_devfreq_target() local
1078 volt = dev_pm_opp_get_voltage(opp); in npu_devfreq_target()
1088 if (old_volt == volt) in npu_devfreq_target()
1090 ret = regulator_set_voltage(rknpu_dev->vdd, volt, INT_MAX); in npu_devfreq_target()
1092 LOG_DEV_ERROR(dev, "failed to set volt %lu\n", volt); in npu_devfreq_target()
[all …]

1234567891011