Lines Matching +full:resistance +full:- +full:temp +full:- +full:table

1 /* SPDX-License-Identifier: GPL-2.0-only */
226 /* Run-time specific power supply configuration */
348 int temp; /* celsius */ member
349 int resistance; /* internal resistance percent */ member
354 int ri_uohm; /* Internal resistance in microohm */
358 * struct power_supply_maintenance_charge_table - setting for maintenace charging
391 * +-------------------------------------------------------------------> t
393 * Practically this means that the Li-ions are wandering back and forth in the
404 * +-------------------------------------------------------------------> t
406 * Maintenance charging uses the voltages from this table: a table of settings
415 * As an example, a Samsung EB425161LA Lithium-Ion battery is CC/CV charged
430 * the expected stand-by current. Also overvoltage protection will be applied
442 * struct power_supply_battery_info - information about batteries
501 * @factory_internal_resistance_uohm: the internal resistance of the battery
502 * at fabrication time, expressed in microohms. This resistance will vary
504 * nominal ballpark figure. This internal resistance is given for the state
506 * @factory_internal_resistance_charging_uohm: the internal resistance of the
508 * The charging process will affect the internal resistance of the battery
509 * so this value provides a better resistance under these circumstances.
510 * This resistance will vary depending on the lifetime and charge of the
514 * indicating which capacity table to use for a certain temperature, since
540 * @resist_table: this is a table that correlates a battery temperature to the
541 * expected internal resistance at this temperature. The resistance is given
543 * resistance of the battery is usually necessary for calculating the open
546 * by temperature: highest temperature with lowest resistance first, lowest
547 * temperature with highest resistance last.
549 * @vbat2ri_discharging: this is a table that correlates Battery voltage (VBAT)
550 * to internal resistance (Ri). The resistance is given in microohm for the
551 * corresponding voltage in microvolts. The internal resistance is used to
553 * of the battery. These voltages to resistance tables apply when the battery
554 * is discharging. The table must be ordered descending by voltage: highest
557 * table.
560 * internal resistance characteristics so a separate table is needed.*
561 * The table must be ordered descending by voltage: highest voltage first.
563 * table.
564 * @bti_resistance_ohm: The Battery Type Indicator (BIT) nominal resistance
568 * @bti_resistance_tolerance: The tolerance in percent of the BTI resistance,
569 * for example 10 for +/- 10%, if the bti_resistance is set to 7000 and the
570 * tolerance is 10% we will detect a proper battery if the BTI resistance
578 * The default field value is -EINVAL or NULL for pointers.
587 * | --- overvoltage_limit_uv
600 * +------------------------------------------------------------------> time
617 * +-----------------------------------------------------------------> time
628 * 2. Next a small initial pre-charge current (precharge_current_ua)
669 * many chargers uses a so-called fuel gauge or coloumb counter that measure
670 * how much charge goes into the battery and how much goes out (+/- leak
674 * the open circuit voltage with a look-up table to determine the rough
676 * with an ideal voltage source (V) in series with an internal resistance (Ri)
679 * +-------> IBAT >----------------+
683 * o <---------- | |
685 * .---. | | |
687 * '---' | | |
689 * GND +-------------------------------+
691 * If we disconnect the load (here simplified as a fixed resistance Rload)
704 * OCV = VBAT - (IBAT * Ri)
712 * resistance change, and it will affect the VBAT under load, so correlating
720 * the purpose of the table resist_table: this will take a temperature and
798 extern int power_supply_ocv2cap_simple(struct power_supply_battery_ocv_table *table,
802 int temp, int *table_len);
804 int ocv, int temp);
806 power_supply_temp2resist_simple(struct power_supply_resistance_temp_table *table,
807 int table_len, int temp);
813 int resistance);
834 return ((info->vbat2ri_discharging != NULL) && in power_supply_supports_vbat2ri()
835 info->vbat2ri_discharging_size > 0); in power_supply_supports_vbat2ri()
841 return ((info->resist_table != NULL) && in power_supply_supports_temp2ri()
842 info->resist_table_size > 0); in power_supply_supports_temp2ri()
848 static inline int power_supply_is_system_supplied(void) { return -ENOSYS; } in power_supply_is_system_supplied()
974 return -EOPNOTSUPP; in power_supply_charge_behaviour_show()
980 return -EOPNOTSUPP; in power_supply_charge_behaviour_parse()