| /OK3568_Linux_fs/kernel/drivers/power/supply/ |
| H A D | sc27xx_fuel_gauge.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/nvmem-consumer.h> 82 * @total_cap: the total capacity of the battery in mAh 83 * @init_cap: the initial capacity of the battery in mAh 84 * @alarm_cap: the alarm capacity 89 * @table_len: the capacity table length 90 * @resist_table_len: the resistance table length 94 * @cap_table: capacity table with corresponding ocv 95 * @resist_table: resistance percent table with corresponding temperature 124 static int sc27xx_fgu_cap_to_clbcnt(struct sc27xx_fgu_data *data, int capacity); [all …]
|
| H A D | power_supply_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 49 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by() 53 if (supply->supplied_from) { in __power_supply_is_supplied_by() 54 if (!supplier->desc->name) in __power_supply_is_supplied_by() 56 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by() 57 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by() 60 if (!supply->desc->name) in __power_supply_is_supplied_by() 62 for (i = 0; i < supplier->num_supplicants; i++) in __power_supply_is_supplied_by() 63 if (!strcmp(supplier->supplied_to[i], supply->desc->name)) in __power_supply_is_supplied_by() 76 if (pst->desc->external_power_changed) in __power_supply_changed_work() [all …]
|
| H A D | rk817_battery.c | 18 #define pr_fmt(fmt) "rk817-bat: " fmt 56 #define SFT_SET_KB 1 58 #define DIV(x) ((x) ? (x) : 1) 81 #define CAPACITY_TO_ADC(capacity, samp_res) \ argument 82 (capacity * samp_res * 3600 / 172 * 1000) 102 #define MIN_ACCURACY 1 137 #define SAMPLE_RES_DIV1 1 144 #define LOW_PWR_SLP_CURR_MIN 1 160 #define VIRTUAL_PRESET 1 279 [CUR_ADC_DITH_SEL] = REG_FIELD(0x51, 1, 3), [all …]
|
| H A D | rk816_battery.c | 5 * Author: chenjh <chenjh@rock-chips.com> 51 #define BAT_INFO(fmt, args...) pr_info("rk816-bat: "fmt, ##args) 77 #define VIRTUAL_PRESET 1 78 #define VIRTUAL_AC_ONLINE 1 100 #define MIN_ACCURACY 1 130 #define POWER_ON_SEC_BASE 1 296 #define DIV(x) ((x) ? (x) : 1) 316 return (get_boot_sec() > x) ? (get_boot_sec() - x) : 0; in base2sec() 326 static u32 interpolate(int value, u32 *table, int size) in interpolate() argument 332 if (value < table[i]) in interpolate() [all …]
|
| H A D | rk818_battery.c | 5 * chenjh <chenjh@rock-chips.com> 51 #define BAT_INFO(fmt, args...) pr_info("rk818-bat: "fmt, ##args) 76 #define SAMPLE_RES_DIV1 1 83 #define VIRTUAL_PRESET 1 103 #define MIN_ACCURACY 1 120 #define POWER_ON_SEC_BASE 1 261 #define DIV(x) ((x) ? (x) : 1) 275 return (get_boot_sec() > x) ? (get_boot_sec() - x) : 0; in base2sec() 285 static u32 interpolate(int value, u32 *table, int size) in interpolate() argument 291 if (value < table[i]) in interpolate() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/ |
| H A D | battery.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 14 In smart batteries, these are typically stored in non-volatile memory 16 no appropriate non-volatile memory, or it is unprogrammed/incorrect. 27 Batteries must be referenced by chargers and/or fuel-gauges using a phandle. 28 The phandle's property should be named "monitored-battery". 32 const: simple-battery 34 over-voltage-threshold-microvolt: [all …]
|
| H A D | sc27xx-fg.txt | 4 - compatible: Should be one of the following: 5 "sprd,sc2720-fgu", 6 "sprd,sc2721-fgu", 7 "sprd,sc2723-fgu", 8 "sprd,sc2730-fgu", 9 "sprd,sc2731-fgu". 10 - reg: The address offset of fuel gauge unit. 11 - battery-detect-gpios: GPIO for battery detection. 12 - io-channels: Specify the IIO ADC channels to get temperature and charge voltage. 13 - io-channel-names: Should be "bat-temp" or "charge-vol". [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/sprd/ |
| H A D | sp9860g-1h10.dts | 6 * SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 /dts-v1/; 17 compatible = "sprd,sp9860g-1h10", "sprd,sc9860"; 34 stdout-path = "serial1:115200n8"; 37 reserved-memory { 38 #address-cells = <2>; 39 #size-cells = <2>; 44 compatible = "simple-battery"; 45 charge-full-design-microamp-hours = <1900000>; 46 charge-term-current-microamp = <120000>; [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power_supply/ |
| H A D | rk816-battery.txt | 1 rk816-battery 5 - compatible: "rk816-battery" 6 - ocv_table: ocv voltage and soc relation table 7 - design_capacity: real capacity tested by tool 8 - design_qmax: nominal capacity * 1.1 9 - max_input_current: maximum current from adapter 10 - max_chrg_current: maximum current for battery charge 11 - max_chrg_voltage: maximum charge voltage for battery 14 - sleep_enter_current: current threshold of enter relax mode 15 - sleep_exit_current: current threshold of exit relax mode [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | power_supply.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 30 * For systems where the charger determines the maximum battery capacity 262 /* Run-time specific power supply configuration */ 276 ANDROID_KABI_RESERVE(1); 319 ANDROID_KABI_RESERVE(1); 362 ANDROID_KABI_RESERVE(1); 385 int ocv; /* microVolts */ member 386 int capacity; /* percent */ member 401 * The default field value is -EINVAL. 406 int energy_full_design_uwh; /* microWatt-hours */ [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/power/fuel_gauge/ |
| H A D | fg_rk817.c | 4 * SPDX-License-Identifier: GPL-2.0+ 14 #include <dm/uclass-internal.h> 19 #include <linux/usb/phy-rockchip-usb2.h> 31 #define DIV(value) ((value) ? (value) : 1) 165 #define SAMPLE_RES_DIV1 1 168 #define CHRG_CT_EN BIT(1) 185 #define CAPACITY_TO_ADC(capacity, samp_res) \ argument 186 (capacity * samp_res * 3600 / 172 * 1000) 207 POWER_SUPPLY_TYPE_USB_FLOATING, /* DCP without shorting D+/D- */ 262 static u32 interpolate(int value, u32 *table, int size) in interpolate() argument [all …]
|
| H A D | fg_rk816.c | 4 * SPDX-License-Identifier: GPL-2.0+ 16 #include <dm/uclass-internal.h> 21 #include <linux/usb/phy-rockchip-usb2.h> 34 #define BAT_INFO(fmt, args...) printf("rk816-bat: "fmt, ##args) 50 #define CHRG_TERM_DIG_SIGNAL (1 << 5) 51 #define CHRG_TIMER_CCCV_EN (1 << 2) 56 #define CHRG_CT_EN (1 << 7) 62 #define PLUG_IN_STS (1 << 6) 65 #define BAT_CON (1 << 4) 66 #define VOL_INSTANT (1 << 0) [all …]
|
| H A D | fg_rk818.c | 4 * SPDX-License-Identifier: GPL-2.0+ 15 #include <dm/uclass-internal.h> 20 #include <linux/usb/phy-rockchip-usb2.h> 33 #define BAT_INFO(fmt, args...) printf("rk818-bat: "fmt, ##args) 49 #define CHRG_TERM_DIG_SIGNAL (1 << 5) 51 #define CHRG_TIMER_CCCV_EN (1 << 2) 52 #define CHRG_TERM_SIG_MSK (1 << 5) 59 #define CHRG_CT_EN (1 << 7) 65 #define PLUG_IN_STS (1 << 6) 68 #define BAT_CON (1 << 4) [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/include/ |
| H A D | wlioctl.h | 26 * <<Broadcom-WL-IPTag/Dual:>> 62 * BCME_.. error codes are extended by various features - e.g. FTM, NAN, SAE etc. 69 * The error codes -4096 ... -5119 are reserved for firmware signing. 71 * Next available (inclusive) range: [-8*1024 + 1, -7*1024] 76 /* 11ax trigger frame format - versioning info */ 81 chanspec_t list[1]; 91 #define WL_ASSOC_START_EVT_DATA_VERSION 1 122 (sizeof(wl_dfs_forced_t) + (((n) < 1) ? (0) : (((n) - 1)* sizeof(chanspec_t)))) 142 #define DFS_SCAN_S_IDLE -1 144 #define DFS_SCAN_S_RADAR_FOUND 1 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/ |
| H A D | wlioctl.h | 26 * <<Broadcom-WL-IPTag/Dual:>> 62 * BCME_.. error codes are extended by various features - e.g. FTM, NAN, SAE etc. 69 * The error codes -4096 ... -5119 are reserved for firmware signing. 71 * Next available (inclusive) range: [-8*1024 + 1, -7*1024] 76 /* 11ax trigger frame format - versioning info */ 81 chanspec_t list[1]; 91 #define WL_ASSOC_START_EVT_DATA_VERSION 1 122 (sizeof(wl_dfs_forced_t) + (((n) < 1) ? (0) : (((n) - 1)* sizeof(chanspec_t)))) 142 #define DFS_SCAN_S_IDLE -1 144 #define DFS_SCAN_S_RADAR_FOUND 1 [all …]
|
| /OK3568_Linux_fs/kernel/android/ |
| H A D | abi_gki_aarch64.xml | 1 <abi-corpus-group version='2.0' architecture='elf-arm-aarch64'> 2 <abi-corpus version='2.0' path='vmlinux' architecture='elf-arm-aarch64'> 3 <elf-function-symbols> 4 …<elf-symbol name='PDE_DATA' type='func-type' binding='global-binding' visibility='default-visibili… 5 …<elf-symbol name='__ClearPageMovable' type='func-type' binding='global-binding' visibility='defaul… 6 …<elf-symbol name='__SetPageMovable' type='func-type' binding='global-binding' visibility='default-… 7 …<elf-symbol name='___pskb_trim' type='func-type' binding='global-binding' visibility='default-visi… 8 …<elf-symbol name='___ratelimit' type='func-type' binding='global-binding' visibility='default-visi… 9 …<elf-symbol name='__alloc_disk_node' type='func-type' binding='global-binding' visibility='default… 10 …<elf-symbol name='__alloc_pages_nodemask' type='func-type' binding='global-binding' visibility='de… [all …]
|