qg-battery-profile.h 544 B

123456789101112131415
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2018, 2020, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #ifndef __QG_BATTERY_PROFILE_H__
  7. #define __QG_BATTERY_PROFILE_H__
  8. int qg_batterydata_init(struct device_node *node);
  9. void qg_batterydata_exit(void);
  10. int lookup_soc_ocv(u32 *soc, u32 ocv_uv, int batt_temp, bool charging);
  11. int qg_get_nominal_capacity(u32 *nom_cap_uah, int batt_temp, bool charging);
  12. #endif /* __QG_BATTERY_PROFILE_H__ */