| /rk3399_rockchip-uboot/drivers/input/ |
| H A D | adc_key.c | 16 u32 voltage, chn[2]; in adc_key_ofdata_to_platdata() local 42 voltage = dev_read_u32_default(dev, "press-threshold-microvolt", -ENODATA); in adc_key_ofdata_to_platdata() 43 if (voltage < 0) in adc_key_ofdata_to_platdata() 51 if (t > voltage && t < up_threshold) in adc_key_ofdata_to_platdata() 53 else if (t < voltage && t > down_threshold) in adc_key_ofdata_to_platdata() 60 down_threshold = voltage - volt_margin; in adc_key_ofdata_to_platdata() 61 up_threshold = voltage + volt_margin; in adc_key_ofdata_to_platdata() 66 uc_key->center = voltage; in adc_key_ofdata_to_platdata() 74 uc_key->min = down_threshold + (voltage - down_threshold) / 2; in adc_key_ofdata_to_platdata() 76 uc_key->max = voltage + (up_threshold - voltage) / 2; in adc_key_ofdata_to_platdata()
|
| H A D | spl_adc_key.c | 39 int mV, cd, voltage = -1; in key_read() local 82 voltage = fdtdec_get_int(fdt_blob, offset, in key_read() 84 if (voltage < 0) { in key_read() 92 if (voltage < 0) in key_read() 105 if (t > voltage && t < up_threshold) in key_read() 107 else if (t < voltage && t > down_threshold) in key_read() 114 down_threshold = voltage - volt_margin; in key_read() 115 up_threshold = voltage + volt_margin; in key_read() 125 min = down_threshold + (voltage - down_threshold) / 2; in key_read() 127 max = voltage + (up_threshold - voltage) / 2; in key_read() [all …]
|
| /rk3399_rockchip-uboot/drivers/power/ |
| H A D | Kconfig | 102 int "axp pmic dcdc1 voltage" 107 Set the voltage (mV) to program the axp pmic dcdc1 at, set to 0 to 109 generic 3.3V IO voltage for external devices like the lcd-panal and 116 int "axp pmic dcdc2 voltage" 124 Set the voltage (mV) to program the axp pmic dcdc2 at, set to 0 to 134 int "axp pmic dcdc3 voltage" 142 Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to 153 int "axp pmic dcdc4 voltage" 160 Set the voltage (mV) to program the axp pmic dcdc4 at, set to 0 to 169 int "axp pmic dcdc5 voltage" [all …]
|
| H A D | charge_animation.c | 502 int voltage, soc, charging = 1; in charge_extrem_low_power() local 506 voltage = fuel_gauge_get_voltage(fg); in charge_extrem_low_power() 507 if (voltage < 0) in charge_extrem_low_power() 510 while (voltage < pdata->low_power_voltage + 50) { in charge_extrem_low_power() 545 pdata->low_power_voltage, voltage); in charge_extrem_low_power() 551 voltage = fuel_gauge_get_voltage(fg); in charge_extrem_low_power() 552 if (voltage < 0) { in charge_extrem_low_power() 553 printf("get voltage failed: %d\n", voltage); in charge_extrem_low_power() 582 int soc, voltage, current, key_state; in charge_animation_show() local 630 voltage = fuel_gauge_get_voltage(fg); in charge_animation_show() [all …]
|
| H A D | tps6586x.c | 137 static int calculate_next_voltage(int voltage, int target, int step) in calculate_next_voltage() argument 139 int diff = voltage < target ? step : -step; in calculate_next_voltage() 141 if (abs(target - voltage) > step) in calculate_next_voltage() 142 voltage += diff; in calculate_next_voltage() 144 voltage = target; in calculate_next_voltage() 146 return voltage; in calculate_next_voltage()
|
| H A D | palmas.c | 27 int lp873x_mmc1_poweron_ldo(uint voltage) in lp873x_mmc1_poweron_ldo() argument 30 voltage)) { in lp873x_mmc1_poweron_ldo() 45 int palmas_mmc1_poweron_ldo(uint voltage) in palmas_mmc1_poweron_ldo() argument 55 ret = palmas_i2c_write_u8(TPS65903X_CHIP_P1, LDO1_VOLTAGE, voltage); in palmas_mmc1_poweron_ldo()
|
| /rk3399_rockchip-uboot/board/freescale/common/ |
| H A D | zm7300.c | 172 int zm_write_voltage(int voltage) in zm_write_voltage() argument 178 vid = (voltage - 5000) / ZM_STEP; in zm_write_voltage() 196 int voltage; in zm_read_voltage() local 200 voltage = hex_to_1_10mv[ret]; in zm_read_voltage() 201 debug("Voltage read is %dmV\n", voltage/10); in zm_read_voltage() 202 return voltage; in zm_read_voltage()
|
| H A D | zm7300.h | 17 int zm_write_voltage(int voltage);
|
| /rk3399_rockchip-uboot/drivers/power/fuel_gauge/ |
| H A D | fg_cw201x.c | 206 int voltage; in cw201x_get_vol() local 241 voltage = value16_1 * 312 / 1024; in cw201x_get_vol() 242 if (voltage <= 0 && retry < 10) { in cw201x_get_vol() 252 voltage = voltage * (res1 + res2) / res2; in cw201x_get_vol() 256 voltage *= 2; in cw201x_get_vol() 258 debug("the cw201x voltage=%d\n", voltage); in cw201x_get_vol() 259 return voltage; in cw201x_get_vol()
|
| H A D | Kconfig | 68 int "Set the low voltage threshold" 72 Set the low voltage threshold. If the voltage, which is detected, 73 is lower than the low voltage threshold, load and boot the U-Boot
|
| H A D | fg_cw221x.c | 114 int voltage; member 208 int voltage; in cw221x_get_vol() local 220 voltage = value16_2 * 5 / 16; in cw221x_get_vol() 222 return voltage; in cw221x_get_vol() 225 voltage = value16 * 5 / 16; in cw221x_get_vol() 226 CW_DBG("cw221x: voltage:%d\n", voltage); in cw221x_get_vol() 228 return voltage; in cw221x_get_vol()
|
| /rk3399_rockchip-uboot/board/freescale/t4qds/ |
| H A D | README | 69 - VTT/MVREF automatically track operating voltage 121 T4240 has a VID feature. U-Boot reads the VID efuses and adjust the voltage 122 accordingly. The voltage can also be override by command vdd_override. The 125 vdd_override <voltage in mV>, eg. 1050 is for 1.050v. 127 Upon success, the actual voltage will be read back. The value is checked 128 for safety and any invalid value will not adjust the voltage. 133 setenv t4240qds_vdd_mv <voltage in mV> 137 The override voltage takes effect when booting. 139 Note: voltage adjustment needs to be done step by step. Changing voltage too 140 rapidly may cause current surge. The voltage stepping is done by software. [all …]
|
| /rk3399_rockchip-uboot/drivers/power/regulator/ |
| H A D | Kconfig | 35 which includes voltage limits. 67 controlled by a device tree node which includes voltage limits. 73 Enable support for the PWM regulator functions which voltage are 77 which includes voltage limits. 93 for enable and get only for voltage value. 108 voltage value. 115 This driver is controlled by a device tree node which includes voltage limits. 123 controlled by a device tree node which includes voltage limits. 132 which includes voltage limits. 154 regulators. The driver implements get/set api for: voltage, current, [all …]
|
| /rk3399_rockchip-uboot/drivers/video/drm/rk628/ |
| H A D | rk628_rgb.c | 74 int voltage = 0; in rk628_rgb_encoder_enable() local 100 voltage = regulator_get_value(rk628->rgb.vccio_rgb); in rk628_rgb_encoder_enable() 102 switch (voltage) { in rk628_rgb_encoder_enable() 288 int voltage = 0; in rk628_bt1120_encoder_enable() local 316 voltage = regulator_get_value(rk628->rgb.vccio_rgb); in rk628_bt1120_encoder_enable() 318 switch (voltage) { in rk628_bt1120_encoder_enable()
|
| /rk3399_rockchip-uboot/include/ |
| H A D | palmas.h | 132 int palmas_mmc1_poweron_ldo(uint voltage); 133 int lp873x_mmc1_poweron_ldo(uint voltage);
|
| H A D | generic-phy-dp.h | 47 unsigned int voltage[4]; member
|
| /rk3399_rockchip-uboot/arch/arm/dts/ |
| H A D | sun7i-a20-olinuxino-micro.dts | 150 voltage = <191274>; 157 voltage = <392644>; 164 voltage = <601151>; 171 voltage = <795090>; 178 voltage = <987387>; 185 voltage = <1184678>; 192 voltage = <1398804>;
|
| H A D | sun7i-a20-olimex-som-evb.dts | 127 voltage = <190000>; 134 voltage = <390000>; 141 voltage = <600000>; 148 voltage = <800000>; 155 voltage = <980000>; 162 voltage = <1180000>; 169 voltage = <1400000>;
|
| H A D | sun4i-a10-inet97fv2.dts | 116 voltage = <200000>; 123 voltage = <600000>; 130 voltage = <800000>; 137 voltage = <1000000>; 144 voltage = <1200000>;
|
| H A D | sun5i-a13-olinuxino.dts | 116 voltage = <191274>; 123 voltage = <392644>; 130 voltage = <601151>; 137 voltage = <795090>; 144 voltage = <987387>;
|
| /rk3399_rockchip-uboot/doc/device-tree-bindings/pmic/ |
| H A D | max77686.txt | 20 - voltage-regulators: subnode list of each device's regulator 29 voltage-regulators {
|
| /rk3399_rockchip-uboot/test/dm/ |
| H A D | regulator.c | 240 int voltage; member 267 .voltage = SANDBOX_LDO1_AUTOSET_EXPECTED_UV, 272 .voltage = SANDBOX_LDO2_AUTOSET_EXPECTED_UV, 314 expected_setting_list[i].voltage); in dm_test_power_regulator_autoset_list()
|
| /rk3399_rockchip-uboot/arch/arm/mach-omap2/omap5/ |
| H A D | Kconfig | 57 and value of voltage ramp needed. 66 Select the Operating Performance Point(OPP) for the MPU voltage 80 Select the Operating Performance Point(OPP) for the DSPEVE voltage 104 Select the Operating Performance Point(OPP) for the IVA voltage 128 Select the Operating Performance Point(OPP) for the GPU voltage
|
| H A D | hwinit.c | 458 void vmmc_pbias_config(uint voltage) in vmmc_pbias_config() argument 471 if (voltage == LDO_VOLT_3V0) in vmmc_pbias_config() 472 voltage = 0x19; in vmmc_pbias_config() 473 else if (voltage == LDO_VOLT_1V8) in vmmc_pbias_config() 474 voltage = 0xa; in vmmc_pbias_config() 475 lp873x_mmc1_poweron_ldo(voltage); in vmmc_pbias_config() 477 palmas_mmc1_poweron_ldo(voltage); in vmmc_pbias_config()
|
| /rk3399_rockchip-uboot/board/freescale/b4860qds/ |
| H A D | b4860qds.c | 140 int existing_voltage, temp_voltage, voltage; /* all in 1/10 mV */ in adjust_vdd() local 175 unsigned voltage; in adjust_vdd() member 235 voltage = roundup(vdd_target, ZM_STEP); in adjust_vdd() 236 debug("VID: rounded up voltage = %d\n", voltage); in adjust_vdd() 249 if ((existing_voltage >= voltage) && in adjust_vdd() 250 (existing_voltage < (voltage + ZM_STEP))) { in adjust_vdd() 256 existing_voltage/10, voltage/10); in adjust_vdd() 266 if (existing_voltage > voltage) { in adjust_vdd() 268 while (temp_voltage >= voltage) { in adjust_vdd() 284 while (temp_voltage < (voltage + ZM_STEP)) { in adjust_vdd()
|