ab8500-bm.h (3aca6ecdab44b30e812001ab4de19b79001a3fbd) | ab8500-bm.h (6252c706cdb003da0046ced1a088b9f31af1fd9b) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ 2 3#ifndef _AB8500_CHARGER_H_ 4#define _AB8500_CHARGER_H_ 5 6#include <linux/kernel.h> 7 8/* --- 446 unchanged lines hidden (view full) --- 455 int usb_volt_max; 456 int usb_curr_max; 457 int ac_volt_max; 458 int ac_curr_max; 459}; 460 461/** 462 * struct ab8500_bm_data - ab8500 battery management data | 1/* SPDX-License-Identifier: GPL-2.0-only */ 2 3#ifndef _AB8500_CHARGER_H_ 4#define _AB8500_CHARGER_H_ 5 6#include <linux/kernel.h> 7 8/* --- 446 unchanged lines hidden (view full) --- 455 int usb_volt_max; 456 int usb_curr_max; 457 int ac_volt_max; 458 int ac_curr_max; 459}; 460 461/** 462 * struct ab8500_bm_data - ab8500 battery management data |
463 * @temp_under under this temp, charging is stopped 464 * @temp_low between this temp and temp_under charging is reduced 465 * @temp_high between this temp and temp_over charging is reduced 466 * @temp_over over this temp, charging is stopped | 463 * @bi battery info from device tree |
467 * @temp_now present battery temperature 468 * @temp_interval_chg temperature measurement interval in s when charging 469 * @temp_interval_nochg temperature measurement interval in s when not charging 470 * @main_safety_tmr_h safety timer for main charger 471 * @usb_safety_tmr_h safety timer for usb charger 472 * @bkup_bat_v voltage which we charge the backup battery with 473 * @bkup_bat_i current which we charge the backup battery with 474 * @no_maintenance indicates that maintenance charging is disabled --- 11 unchanged lines hidden (view full) --- 486 * @gnd_lift_resistance Battery ground to phone ground resistance (mOhm) 487 * @maxi maximization parameters 488 * @cap_levels capacity in percent for the different capacity levels 489 * @bat_type table of supported battery types 490 * @chg_params charger parameters 491 * @fg_params fuel gauge parameters 492 */ 493struct ab8500_bm_data { | 464 * @temp_now present battery temperature 465 * @temp_interval_chg temperature measurement interval in s when charging 466 * @temp_interval_nochg temperature measurement interval in s when not charging 467 * @main_safety_tmr_h safety timer for main charger 468 * @usb_safety_tmr_h safety timer for usb charger 469 * @bkup_bat_v voltage which we charge the backup battery with 470 * @bkup_bat_i current which we charge the backup battery with 471 * @no_maintenance indicates that maintenance charging is disabled --- 11 unchanged lines hidden (view full) --- 483 * @gnd_lift_resistance Battery ground to phone ground resistance (mOhm) 484 * @maxi maximization parameters 485 * @cap_levels capacity in percent for the different capacity levels 486 * @bat_type table of supported battery types 487 * @chg_params charger parameters 488 * @fg_params fuel gauge parameters 489 */ 490struct ab8500_bm_data { |
494 int temp_under; 495 int temp_low; 496 int temp_high; 497 int temp_over; | 491 struct power_supply_battery_info bi; |
498 int temp_now; 499 int temp_interval_chg; 500 int temp_interval_nochg; 501 int main_safety_tmr_h; 502 int usb_safety_tmr_h; 503 int bkup_bat_v; 504 int bkup_bat_i; 505 bool no_maintenance; --- 53 unchanged lines hidden (view full) --- 559struct ab8500_fg *ab8500_fg_get(void); 560int ab8500_fg_inst_curr_blocking(struct ab8500_fg *dev); 561int ab8500_fg_inst_curr_start(struct ab8500_fg *di); 562int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *res); 563int ab8500_fg_inst_curr_started(struct ab8500_fg *di); 564int ab8500_fg_inst_curr_done(struct ab8500_fg *di); 565int ab8500_bm_of_probe(struct power_supply *psy, 566 struct ab8500_bm_data *bm); | 492 int temp_now; 493 int temp_interval_chg; 494 int temp_interval_nochg; 495 int main_safety_tmr_h; 496 int usb_safety_tmr_h; 497 int bkup_bat_v; 498 int bkup_bat_i; 499 bool no_maintenance; --- 53 unchanged lines hidden (view full) --- 553struct ab8500_fg *ab8500_fg_get(void); 554int ab8500_fg_inst_curr_blocking(struct ab8500_fg *dev); 555int ab8500_fg_inst_curr_start(struct ab8500_fg *di); 556int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *res); 557int ab8500_fg_inst_curr_started(struct ab8500_fg *di); 558int ab8500_fg_inst_curr_done(struct ab8500_fg *di); 559int ab8500_bm_of_probe(struct power_supply *psy, 560 struct ab8500_bm_data *bm); |
561void ab8500_bm_of_remove(struct power_supply *psy, 562 struct ab8500_bm_data *bm); |
|
567 568extern struct platform_driver ab8500_fg_driver; 569extern struct platform_driver ab8500_btemp_driver; 570extern struct platform_driver ab8500_chargalg_driver; 571 572#endif /* _AB8500_CHARGER_H_ */ | 563 564extern struct platform_driver ab8500_fg_driver; 565extern struct platform_driver ab8500_btemp_driver; 566extern struct platform_driver ab8500_chargalg_driver; 567 568#endif /* _AB8500_CHARGER_H_ */ |