25 lines
699 B
C
25 lines
699 B
C
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||
|
|
/*
|
||
|
|
* Copyright (c) 2017, 2019-2020 The Linux Foundation. All rights reserved.
|
||
|
|
* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
|
||
|
|
*/
|
||
|
|
#ifndef __BATTERY_H
|
||
|
|
#define __BATTERY_H
|
||
|
|
|
||
|
|
struct charger_param {
|
||
|
|
u32 fcc_step_delay_ms;
|
||
|
|
u32 fcc_step_size_ua;
|
||
|
|
u32 fcc_step_start_ua;
|
||
|
|
u32 smb_version;
|
||
|
|
u32 hvdcp2_max_icl_ua;
|
||
|
|
u32 hvdcp3_max_icl_ua;
|
||
|
|
u32 qc4_max_icl_ua;
|
||
|
|
u32 forced_main_fcc;
|
||
|
|
int (*iio_read)(struct device *dev, int iio_chan, int *val);
|
||
|
|
int (*iio_write)(struct device *dev, int iio_chan, int val);
|
||
|
|
};
|
||
|
|
|
||
|
|
int qcom_batt_init(struct device *dev, struct charger_param *param);
|
||
|
|
void qcom_batt_deinit(void);
|
||
|
|
#endif /* __BATTERY_H */
|