Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53f2a206 authored by Guru Das Srinagesh's avatar Guru Das Srinagesh
Browse files

power: qpnp-fg-gen4: Add snapshot of driver and its dependencies



Add snapshot of the qpnp-fg-gen4 driver as of msm-4.14
'commit 7e16ff6cdde5 ("defconfig: qcs405: enable WLAN configs
for 32-bit QCS405")'.

This driver adds support for the GEN4 Fuel Gauge (FG) peripheral that is
present on PM8150B and similar chips. The FG measures and provides
various battery parameters like Voltage, Current, State of Charge,
Temperature to the clients upon request.

Changed use of cancel_work() to cancel_work_sync() as the former has
been made obsolete.

Change-Id: I60c7476e95e660507447e9a256bf3fcde6bb335c
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent e756dfd3
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -46,4 +46,14 @@ config QPNP_QNOVO5
	  the hardware module. It also allows userspace code to read diagnostics
	  of voltage and current measured during certain phases of the pulses.

config QPNP_FG_GEN4
	tristate "QPNP GEN4 fuel gauge driver"
	depends on MFD_SPMI_PMIC
	help
	  Say Y here to enable the GEN4 Fuel Gauge driver. This adds support
	  for battery fuel gauging and state of charge of battery connected to
	  the device that has QTI PMICs like PM8150B. The state of charge is
	  reported through a BMS power supply property and also sends uevents
	  when the capacity is updated.

endmenu
+1 −0
Original line number Diff line number Diff line
@@ -4,3 +4,4 @@ obj-$(CONFIG_QPNP_SMB5) += step-chg-jeita.o battery.o qpnp-smb5.o smb5-lib.o pm
obj-$(CONFIG_SMB1390_CHARGE_PUMP_PSY)       += smb1390-charger-psy.o pmic-voter.o
obj-$(CONFIG_SMB1355_SLAVE_CHARGER)   += smb1355-charger.o pmic-voter.o
obj-$(CONFIG_QPNP_QNOVO5)       += qpnp-qnovo5.o battery.o pmic-voter.o
obj-$(CONFIG_QPNP_FG_GEN4)     += qpnp-fg-gen4.o fg-memif.o fg-util.o fg-alg.o pmic-voter.o
Loading